|
|
(15 intermediate revisions by 9 users not shown) |
Line 1: |
Line 1: |
| <includeonly>[[File:{{{1}}} Icon {{#switch:{{{3|{{{currency|cash}}}}}} | | <includeonly>{{#invoke:Cost|main}}</includeonly><noinclude> |
| |pe=Power Egg
| | Template invocation of [[Module:Cost]]. |
| |sss=Super Sea Snail
| |
| |ge=Golden Egg
| |
| |sard=Sardinium Shadow
| |
| |ac=Ability Chunk Generic
| |
| |cqp=CQ Points
| |
| |cash
| |
| |#default=Cash}}.png|{{#iferror:{{#expr:{{{4|24}}}}}|24}}px|{{#switch:{{{3|{{{currency|cash}}}}}}
| |
| |pe=Power Egg{{#ifeq:{{{2}}}|1||s}}
| |
| |sss=Super Sea Snail{{#ifeq:{{{2}}}|1||s}}
| |
| |ge=Golden Egg{{#ifeq:{{{2}}}|1||s}}
| |
| |sard=Sardinium
| |
| |ac=Ability Chunk{{#ifeq:{{{2}}}|1||s}}
| |
| |cqp=CQ Point{{#ifeq:{{{2}}}|1||s}}
| |
| |cash
| |
| |#default=Cash}}|link={{#switch:{{{3|{{{currency|cash}}}}}}
| |
| |pe=Power Egg
| |
| |sss=Super Sea Snail
| |
| |ge=Golden Egg
| |
| |sard=Sardinium
| |
| |ac=Ability Chunk
| |
| |cqp=CQ Points
| |
| |cash
| |
| |#default=Cash}}]]<span style="display: inline-block; text-align: right; {{#if:{{{6|}}}|width:{{{6|}}}px}}">{{#if:{{{2|}}}| {{#ifeq:{{{5|{{{4|}}}}}}|link|[[{{#switch:{{{3|{{{currency|cash}}}}}}
| |
| |pe=Power Egg
| |
| |sss=Super Sea Snail
| |
| |ge=Golden Egg
| |
| |sard=Sardinium
| |
| |ac=Ability Chunk
| |
| |cqp=CQ Points
| |
| |cash
| |
| |#default=Cash}}|{{{2}}}]]|{{{2}}}}}}}</span></includeonly><noinclude>__NOTOC__
| |
| Displays an inline currency icon with a text link.
| |
|
| |
|
| === Usage ===
| | {{:Module:Cost/doc}} |
| {{t|Cost|game|price|currency|size|link|textwidth}} | |
| | |
| {| class="wikitable sitecolor-generic"
| |
| | style="vertical-align:top" |<code>game</code>
| |
| | style="vertical-align:top" |Unnamed, required
| |
| | colspan="3" |The game that the cost belongs to. Must be one of the following:
| |
| * <code>S</code> for ''Splatoon''
| |
| * <code>S2</code> for ''Splatoon 2''
| |
| |-
| |
| | style="vertical-align:top" |<code>price</code>
| |
| | style="vertical-align:top" |Unnamed, required
| |
| | colspan="3" |The number / string to show as the cost.<br />If set empty, the template will show the icon but no number.<br />Use <code>0</code> or <code>Free</code> for free items.
| |
| |-
| |
| | rowspan="9" style="vertical-align:top" |<code>currency</code>
| |
| | rowspan="9" style="vertical-align:top" |Unnamed, optional
| |
| | colspan="3" |The currency to use.<br />The default value is <code>cash</code>.
| |
| |-
| |
| |Must be one of the following:
| |
| |width="24px" | S
| |
| |width="24px" | S2
| |
| |-
| |
| |<code>cash</code> || {{Cost|S| |cash}} || {{Cost|S2| |cash}}
| |
| |-
| |
| |<code>pe</code> || {{Cost|S| |pe}} || {{Cost|S2| |pe}}
| |
| |-
| |
| |<code>sss</code> || {{Cost|S| |sss}} || {{Cost|S2| |sss}}
| |
| |-
| |
| |<code>ge</code> || || {{Cost|S2| |ge}}
| |
| |-
| |
| |<code>sard</code> || || {{Cost|S2| |sard}}
| |
| |-
| |
| |<code>ac</code> || || {{Cost|S2| |ac}}
| |
| |-
| |
| |<code>cqp</code> || || {{Cost|S2| |cqp}}
| |
| |-
| |
| | style="vertical-align:top" |<code>size</code>
| |
| | style="vertical-align:top" |Unnamed, optional
| |
| | colspan="3" |The icon size for the currency icon. The default is <code>24</code>.
| |
| |-
| |
| | style="vertical-align:top" |<code>link</code>
| |
| | style="vertical-align:top" |Unnamed, optional
| |
| | colspan="3" |If present, the amount text will be a link to the currency's page.
| |
| |-
| |
| | style="vertical-align:top" |<code>textwidth</code>
| |
| | style="vertical-align:top" |Unnamed, optional
| |
| | colspan="3" |Requries <code>size</code> and <code>link</code> to both be present.<br />If specified, the label will be set inside a right-aligned rectangle of the specified width
| |
| |}
| |
| | |
| === Markup ===
| |
| <pre>
| |
| *{{Cost|S|200}}
| |
| *{{Cost|S2|200}}
| |
| *{{Cost|S|}}
| |
| *{{Cost|S|1|sss}}
| |
| *{{Cost|S2| |ac}}
| |
| *{{Cost|S|200|cash|48}}
| |
| *{{Cost|S|200|cash|link}}
| |
| *{{Cost|S|200|cash|48|link}}
| |
| *{{Cost|S|200|cash|24|link|60}}
| |
| *{{Cost|S|200|cash|24| |60}}
| |
| </pre>
| |
| | |
| === Output ===
| |
| *{{Cost|S|200}}
| |
| *{{Cost|S2|200}}
| |
| *{{Cost|S|}}
| |
| *{{Cost|S|1|sss}}
| |
| *{{Cost|S2| |ac}}
| |
| *{{Cost|S|200|cash|48}}
| |
| *{{Cost|S|200|cash|link}}
| |
| *{{Cost|S|200|cash|48|link}}
| |
| *{{Cost|S|200|cash|24|link|60}}
| |
| *{{Cost|S|200|cash|24| |60}}
| |
| </noinclude> | | </noinclude> |