Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Price: Difference between revisions

Template page
Content deleted Content added
Dread (talk | contribs)
removed the space between currency icon and the amount
No edit summary
 
(12 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>
|}}{{{1}}}
<noinclude>{{Documentation}}
</includeonly>
<noinclude>
[[Category:Formatting templates]]</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