Template:Price: Difference between revisions
Template page
More actions
Content deleted Content added
No edit summary |
No edit summary |
||
| (13 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> |
<includeonly><div class="template-price">{{#if:{{{2}}}| |
||
{{#if:{{{2}}}| |
|||
{{#switch:{{{2}}} |
{{#switch:{{{2}}} |
||
|#default=[[File:RaiderCredits.png|link=|{{{iconsize|22px}}}]] |
|#default=[[File:RaiderCredits.png|link=|{{{iconsize|22px}}}]] |
||
| Line 9: | Line 8: | ||
|Assorted Seeds=[[File:Icon Loot Nature.png|link=|{{{iconsize|22px}}}]] |
|Assorted Seeds=[[File:Icon Loot Nature.png|link=|{{{iconsize|22px}}}]] |
||
}} |
}} |
||
|}}{{{1}}}</div><templatestyles src="Template:Price/styles.css" /></includeonly> |
|||
|}} |
|||
<noinclude>{{Documentation}} |
|||
{{{1}}} |
|||
[[Category:Formatting templates]]</noinclude> |
|||
</includeonly> |
|||
<noinclude> |
|||
===Template:Price=== |
|||
'''Parameters:''' ''Amount'', ''Currency'', ''Icon size'' |
|||
'''Amount:''' Must be entered. |
|||
<br>'''Currency:''' Optional. (Default value: 'RaiderCredits') |
|||
<br> '''Icon size:''' Optional. (Default value: '22px') |
|||
===Example=== |
|||
<div style="width:min-content"> |
|||
<pre>{{Price|2,400}} |
|||
{{Price|2,400|RaiderCredits|iconsize=28px}} |
|||
{{Price|70|Cred|iconsize=32px}} |
|||
{{Price|250|Token|iconsize=36px}} |
|||
{{Price|1|Augment|iconsize=64px}} |
|||
{{Price|10|Assorted Seeds}} |
|||
</pre></div> |
|||
Output: |
|||
{{Price|1,100}} |
|||
{{Price|2,400|RaiderCredits|iconsize=48px}} |
|||
{{Price|70|Cred}} |
|||
{{Price|250|Token|iconsize=64px}} |
|||
{{Price|1|Augment|iconsize=20px}} |
|||
{{Price|10|Assorted Seeds}} |
|||
</noinclude> |
|||
Latest revision as of 22:01, 8 November 2025
Template:Price
Parameters: Amount, Currency, Icon size
Amount: Must be entered.
Currency: Optional. (Default value: 'RaiderCredits')
Icon size: Optional. (Default value: '22px')
Example
{{Price|2,400}}
{{Price|2,400|RaiderCredits|iconsize=28px}}
{{Price|70|Cred|iconsize=32px}}
{{Price|250|Token|iconsize=36px}}
{{Price|1|Augment|iconsize=64px}}
{{Price|10|Assorted Seeds}}
Output: