Difference between revisions of "Template:Currency"
Jump to navigation
Jump to search
JohnnySolas (talk | contribs) |
JohnnySolas (talk | contribs) |
||
Line 46: | Line 46: | ||
| skybuilders scrip = {{skybuilders scrip|{{{1|}}}|{{{3|}}}}} | | skybuilders scrip = {{skybuilders scrip|{{{1|}}}|{{{3|}}}}} | ||
| bozjan cluster = {{bozjan cluster|{{{1|}}}|{{{3|}}}}} | | bozjan cluster = {{bozjan cluster|{{{1|}}}|{{{3|}}}}} | ||
| company credit = {{company credit|{{{1|}}}|{{{3|}}}}} | |||
| #default = <span style="position:relative;bottom:2px;">{{#if:{{{icon|}}}|[[File:{{{icon}}}|20px|link={{{2|}}}]]|[[{{#show:{{{2}}}|?Has game icon|link=none|default=File:Blank_image.png}}|20px|link={{{2|}}}]]}}</span>{{#if:{{{hq|}}}| {{HQ|12|dark=y}}}}{{#if:{{{1|}}}| {{formatnum:{{{1}}}}}}}{{#if: {{{text|}}} | [[{{{2}}}]] }} | | #default = <span style="position:relative;bottom:2px;">{{#if:{{{icon|}}}|[[File:{{{icon}}}|20px|link={{{2|}}}]]|[[{{#show:{{{2}}}|?Has game icon|link=none|default=File:Blank_image.png}}|20px|link={{{2|}}}]]}}</span>{{#if:{{{hq|}}}| {{HQ|12|dark=y}}}}{{#if:{{{1|}}}| {{formatnum:{{{1}}}}}}}{{#if: {{{text|}}} | [[{{{2}}}]] }} | ||
}}</includeonly><noinclude>__NOTOC__ | }}</includeonly><noinclude>__NOTOC__ | ||
Line 161: | Line 162: | ||
|- | |- | ||
| Bozjan Cluster || <code><nowiki>{{bozjan cluster}}</nowiki></code> || {{Bozjan cluster}} | | Bozjan Cluster || <code><nowiki>{{bozjan cluster}}</nowiki></code> || {{Bozjan cluster}} | ||
|- | |||
| Company Credit || <code><nowiki>{{company credit}}</nowiki></code> || {{Company credit}} | |||
|} | |} | ||
Revision as of 21:15, 8 June 2021
Usage
This template creates an icon for the type of currency. Each currency is defined in a separate template. This template is not meant to be use directly if the currency is defined in its own template. If the currency isn't defined, a default currency icon is generated.
{{currency|<Value>|<Currency>}} {{currency|<Value>|<Currency>|icon=<Icon>}}
Parameters
- Unnamed parameter 1
- Value of currency to prefix to the icon.
- Unnamed parameter 2
- Name of the currency article. This is the article the icon links to.
- icon
- The file to use as the icon, include the extension. Defaults to {{{2}}}.png.
- text
- Optional. If set, this parameter will display the name of the item. Only works for irregular currencies not listed below.
Currencies
Examples
Currency | Code | Icon |
---|---|---|
Gil | {{currency|123|gil}} |
123 |
Allagan Tomestone of Poetics | {{currency|5|Allagan Tomestone of Poetics}} |
5 |
Any text; specific icon | {{currency|5|Any text; specific icon|icon=Gil.png|text=y}} |
5 Any text; specific icon |