Template:CurrencyReportTableCell/doc
From Tears of Themis Wiki
Description[edit source]
Used in conjunction with Template:CRTR to create a Currency Income Report table.
Adds amount to the type variable defined in the CRTR template to be used in later expressions.
Takes any text value for the currency flag and handles them as follows:
- If not passed a currency type, defaults to S-Chip and adds amount to the total.
- If passed the "Gem" currency type, multiplies amount by 10 before adding to the total.
- If passed any other unhandled value, template assumes this is a type of Tears of Themis and multiplies amount by 180 before adding to the total.
Usage[edit source]
{{CRTC|type=|amount=}}
Example[edit source]
{| class="wikitable" {{CRTR|Events}} {{CRTC|type=Events|amount=100}} {{CRTC|type=Events|currency=Gem|amount=10}} {{CRTC|type=Events|currency=Tears of Themis - Limited|amount=10}} |'''Total:''' {{#var:Events}} |}
Events | 100 |
10 |
10 |
Total: 2000 |
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.