|
|
(32 intermediate revisions by 12 users not shown) |
Line 1: |
Line 1: |
| <includeonly>[[File:{{#switch:{{#if:{{{currency|}}}|{{{currency}}}|cash}} | | <includeonly>{{#invoke:Cost|main}}</includeonly><noinclude> |
| |sss = Super Sea Snail.png
| | Template invocation of [[Module:Cost]]. |
| |pe = Power Egg.png
| |
| |#default = {{#if:{{{game|}}}|
| |
| {{#switch:{{{game}}}
| |
| |Splatoon = S_Cash.png
| |
| |Splatoon 2 = S2_Cash.png
| |
| |#default = S_Cash.png
| |
| }}|S_Cash.png}}}}|{{{2|24px}}}|{{#switch:{{#if:{{{currency|}}}|{{{currency}}}|cash}}
| |
| |sss = Super Sea Snails
| |
| |pe = Power Eggs
| |
| |#default = Cash
| |
| }}|link={{#switch:{{#if:{{{currency|}}}|{{{currency}}}|cash}}
| |
| |sss = Super Sea Snail
| |
| |pe = Power Egg
| |
| |#default = Cash
| |
| }}]]{{#ifeq:{{{icononly|}}}|true||<span style="display: inline-block; text-align: right; {{#if:{{{width|}}}|width: {{{width}}};}}"> [[{{#switch:{{#if:{{{currency|}}}|{{{currency}}}|cash}}
| |
| |sss = Super Sea Snail
| |
| |pe = Power Egg
| |
| |#default = Cash
| |
| }}|{{{1}}}]]</span>}}</includeonly><noinclude>__NOTOC__
| |
| Displays an inline currency icon with a text link.
| |
| | |
| === Parameters ===
| |
| {|
| |
| |- style="vertical-align: top;"
| |
| |<code>price</code>||Unnamed.||The numeric price to display.
| |
| |- style="vertical-align: top;"
| |
| |<code>size</code>||Unnamed, optional.||A MediaWiki image size value to use for the icon. The default size is 24px.
| |
| |- style="vertical-align: top;"
| |
| |<code>currency</code>||Optional.||The type of currency to display. The default value is "cash". Must be one of the following:
| |
| * [[File:S Cash.png|20px|link=]][[File:S2 Cash.png|20px|link=]] cash
| |
| * [[File:Power Egg.png|20px|link=]] pe
| |
| * [[File:Super Sea Snail.png|20px|link=]] sss
| |
| |- style="vertical-align: top;"
| |
| |<code>game</code>||Optional.||The game the cost applies to. The default value is "Splatoon". Must be one of the following:
| |
| *Splatoon
| |
| *Splatoon 2
| |
| |- style="vertical-align: top;"
| |
| |<code>icononly</code>||Optional.||If present and set to <code>true</code>, the text label will be omitted.
| |
| |- style="vertical-align: top;"
| |
| |<code>width</code>||Optional.||A CSS width value to use for the text label. The text itself will be right-aligned.
| |
| |}
| |
| | |
| === Examples ===
| |
| | |
| ==== Markup ====
| |
| <nowiki>{{Cost|200}}<br />
| |
| {{Cost|200|48px}}<br />
| |
| {{Cost|200|currency=pe}}<br />
| |
| {{Cost|currency=sss|icononly=true}}<br />
| |
| {{Cost|200|width=50px}}<br />
| |
| {{Cost|200|game=Splatoon 2}}</nowiki>
| |
| | |
| ==== Output ====
| |
| {{User:GuyPerfect/Cost|200}}<br />
| |
| {{User:GuyPerfect/Cost|200|48px}}<br />
| |
| {{User:GuyPerfect/Cost|200|currency=pe}}<br />
| |
| {{User:GuyPerfect/Cost|currency=sss|icononly=true}}<br />
| |
| {{User:GuyPerfect/Cost|200|width=50px}}<br />
| |
| {{User:GuyPerfect/Cost|200|game=Splatoon 2}}
| |
|
| |
|
| | {{:Module:Cost/doc}} |
| </noinclude> | | </noinclude> |