Difference between revisions of "Template:Currency"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
m
Line 3: Line 3:
| xp
| xp
| experience = {{experience|{{{1|}}}}}
| experience = {{experience|{{{1|}}}}}
| company seal = {{company seal|{{{1|}}}}}
| mgp = {{MGP|{{{1|}}}}}
| #default = <span style="position:relative;bottom:2px;">{{#if:{{{icon|}}}|[[File:{{{icon}}}|20px|link={{{2|}}}]]|[[{{#show:{{{2}}}|?Has game icon|link=none|default=File:Blank.png}}|20px|link={{{2|}}}]]}}</span>{{#if:{{{1|}}}|&nbsp;{{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.png}}|20px|link={{{2|}}}]]}}</span>{{#if:{{{1|}}}|&nbsp;{{formatnum:{{{1}}}}}}}{{#if: {{{text|}}} | [[{{{2}}}]] }}
}}</includeonly><noinclude>__NOTOC__
}}</includeonly><noinclude>__NOTOC__
Line 31: Line 33:
| Company seal || <code><nowiki>{{company seal}}</nowiki></code> || {{company seal}}
| Company seal || <code><nowiki>{{company seal}}</nowiki></code> || {{company seal}}
|-
|-
| Gold Saucer points || <code><nowiki>{{gold saucer point‎‎}}</nowiki></code> || {{gold saucer point‎‎}}
| Manderville Gold Saucer points || <code><nowiki>{{MGP}}</nowiki></code> || {{MGP‎‎}}
|}
|}


Line 45: Line 47:
|}
|}


== See also ==
* [[:Template:Relations]]
* [[:Template:Tomestone]]


[[Category:Icon templates|Currency]]
[[Category:Icon templates|Currency]]</noinclude>
 
</noinclude>

Revision as of 13:16, 20 November 2017


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

Currency Code Icon
Gil {{gil}} Gil
Company seal {{company seal}} Company seal
Manderville Gold Saucer points {{MGP}} MGP

Examples

Currency Code Icon
Gil {{currency|123|gil}} Gil 123
Allagan Tomestone of Poetics {{currency|5|Allagan Tomestone of Poetics}} Blank.png 5
Any text; specific icon {{currency|5|Any text; specific icon|icon=Gil.png}} Gil.png 5

See also