Template:Price: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Template support for honour specific values) |
||
Line 1: | Line 1: | ||
<includeonly>{{SmallIcon|Gold Icon.png}} Price: {{trim | {{{ | <includeonly><!-- | ||
To maintain compatibility with existing templates, the honour mode specific value can be | |||
either specified as the second argument or in the first argument separated by : | |||
-->{{#lvardef:base|{{ #explode: {{{1}}}|:|0}}}}<!-- | |||
Split parameter into base price and honour price on the : | |||
-->{{#lvardef:honour|{{ #explode: {{{1}}}|:|1}}}}<!-- | |||
-->{{#if: {{{2|{{#lvar: honour}}}}} | |||
| {{SmallIcon|Gold Icon.png}} Price: {{trim | {{#lvar: base}} }}{{nbts}}gp / {{trim | {{{2|{{#lvar: honour}}}}} }}{{nbts}}gp{{honour}} | |||
| {{SmallIcon|Gold Icon.png}} Price: {{trim | {{#lvar: base}} }}{{nbts}}gp | |||
}}</includeonly><noinclude> <!-- #8239 is non-breaking thin space --> | |||
Usage: {{code|<nowiki>{{Price|20}}</nowiki>}} | Usage: {{code|<nowiki>{{Price|20}}</nowiki>}} | ||
Result: {{Price|20}} | Result: {{Price|20}} | ||
Usage: {{code|<nowiki>{{Price|20:40}}</nowiki>}} | |||
Result: {{Price|20:40}} | |||
Usage: {{code|<nowiki>{{Price|20|40}}</nowiki>}} | |||
Result: {{Price|20|40}} | |||
[[Category:Weapon Property Templates]] | [[Category:Weapon Property Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 06:32, 3 December 2023
Usage: {{Price|20}}
Result: Price: 20 gp
Usage: {{Price|20:40}}
Result: Price: 20 gp / 40 gpHHonour
Usage: {{Price|20|40}}
Result: Price: 20 gp / 40 gpHHonour