Open main menu

mtgpq wiki β

Changes

Template:RCJ

770 bytes added, 01:59, 18 February 2019
Created page with "<noinclude> ==Usage== Format amounts of resources with icons and separators, e.g. for display in a rewards table. * The first parameter is the amount of Runes. * The first par..."
<noinclude>
==Usage==
Format amounts of resources with icons and separators, e.g. for display in a rewards table.
* The first parameter is the amount of Runes.
* The first parameter is the amount of Crystals.
* The first parameter is the amount of Jewels.
Leaving a parameter blank omits it from the formatted output.

==Example==

The following shorthand:

<pre><nowiki>
{{RCJ|1,000|100|85}}

{{RCJ|1,000|30}}

{{RCJ||75|25}}
</nowiki></pre>

Produces:

{{RCJ|1,000|100|85}}

{{RCJ|1,000|30}}

{{RCJ||75|25}}

</noinclude><includeonly><!--
-->{{#if:{{{1|}}}|{{Runes|{{{1}}}}}{{#if:{{{2|}}}{{{3|}}}|&nbsp;'''·'''&nbsp;}}}}<!--
-->{{#if:{{{2|}}}|{{Crystals|{{{2}}}}}{{#if:{{{3|}}}|&nbsp;'''·'''&nbsp;}}}}<!--
-->{{#if:{{{3|}}}|{{Jewels|{{{3}}}}}}}<!--
--></includeonly>