Template:Price: Difference between revisions
Jump to navigation
Jump to search
(Simply, striking backwards compat) |
HiddenDragon (talk | contribs) mNo edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><span>{{SmallIcon|Gold Icon.png}} Price: {{{1|}}} gp {{#if:{{{2|}}}|/ {{{2}}} gp{{honour}}}}</span></includeonly><noinclude> | <includeonly><span>{{SmallIcon|Gold Icon.png}} Price: {{{1|}}} gp {{#if:{{{2|}}}|/ {{{2}}} gp{{honour}}}}</span></includeonly><noinclude>{{Documentation|content= | ||
Displays the price in gold. | |||
== Examples == | |||
{{Template demo | |||
| style = table | |||
| <nowiki>{{Price|20}}</nowiki> | |||
| <nowiki>{{Price|20|40}}</nowiki> | |||
}} | |||
[[Category: | == Template data== | ||
<templatedata> | |||
{ | |||
"description": "Displays the price in gold.", | |||
"format": "inline", | |||
"params": { | |||
"1": { | |||
"label": "Cost", | |||
"description": "The standard cost in gold.", | |||
"type": "number", | |||
"required": true | |||
}, | |||
"2": { | |||
"label": "Honour mode cost", | |||
"description": "The cost in honour mode only.", | |||
"type": "number" | |||
} | |||
} | |||
} | |||
</templatedata> | |||
}} | |||
[[Category:Templates]] | |||
</noinclude> | </noinclude> |
Latest revision as of 21:07, 19 January 2025
Template documentation
Displays the price in gold.
Examples
Markup | Renders as |
---|---|
{{Price|20}} | ![]() |
{{Price|20|40}} | ![]() |
Template data
Displays the price in gold.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Cost | 1 | The standard cost in gold. | Number | required |
Honour mode cost | 2 | The cost in honour mode only. | Number | optional |