Template:Price/doc: Difference between revisions
Appearance
imported>Zornor m test |
imported>Zornor covering parameter changes |
||
| Line 9: | Line 9: | ||
<pre>{{Price|''amount''}}</pre> | <pre>{{Price|''amount''}}</pre> | ||
This template uses [[ | This template uses [[File:Gold.png|24px]] by default. To use different in-game currencies, add the appropriate name. | ||
<pre>{{Price|''amount''| | <pre>{{Price|''amount''|''currency''}}</pre> | ||
===Sample=== | ===Sample=== | ||
<pre> {{Price|30}}</pre> | <pre>{{Price|30}}</pre> | ||
results in... | results in... | ||
{{Price|30}} | {{Price|30}} | ||
<pre> {{Price|20| | <pre>{{Price|20|JOPK}} | ||
{{Price|20|Qi}} </pre> | |||
results in... | results in... | ||
| Line 28: | Line 30: | ||
==Amount== | ==Amount== | ||
This parameter accepts the amount of money. | This parameter accepts the amount of money. | ||
==Currency== | |||
This parameter accepts different currency types, but without input will simply output the standard gold coin. | |||
{| class="wikitable | |||
!Input | |||
!Output | |||
|- | |||
| | |||
|[[File:Gold.png|24px|link=]] | |||
|- | |||
|JOPK | |||
|[[File:JOPKCoin1.png|link=]] | |||
|- | |||
|Qi | |||
|[[File:QiCoin.png|link=]] | |||
|} | |||
<includeonly>[[Category:Transclusion templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | <includeonly>[[Category:Transclusion templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | ||
Revision as of 03:49, 20 March 2016
Description
This template is used to insert File:Gold.png in-line with text and the letter g after the amount.
If you want to set the price for items with different qualities in a table, use Template:Qualityprice instead
Usage
This template can be used by entering the following onto a relevant page.
{{Price|''amount''}}
This template uses
by default. To use different in-game currencies, add the appropriate name.
{{Price|''amount''|''currency''}}
Sample
{{Price|30}}
results in...
30g
{{Price|20|JOPK}}
{{Price|20|Qi}}
results in...
20
20
Amount
This parameter accepts the amount of money.
Currency
This parameter accepts different currency types, but without input will simply output the standard gold coin.
| Input | Output |
|---|---|
| JOPK | |
| Qi |