Template:Charms calculator

From Darkan
Jump to navigation Jump to search

[view] [edit] [purge] Template documentation

This documentation is transcluded from Template:Charms calculator/doc.

This template displays a calculator for charms.

Usage

This template can be used by entering the following onto a relevant Charm page.

A basic line of code looks like this:

{{#if:{{{1}}} | {{#if{{{2}}} > 49 | {{{1}}}/{{{2}}} }} }}

This is interpreted as follows: If (The first value is set) Then:

If(The second value is greater than 49) Then:
Calculate First Value/Second Value, and return that.

Each line adds two more numbers in the same format

{{Charms calculator}}