Template:Price: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Simply, striking backwards compat)
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=
Usage: {{code|<nowiki>{{Price|20}}</nowiki>}}
Displays the price in gold.


Result: {{Price|20}}
== Examples ==
 
{{Template demo
Usage: {{code|<nowiki>{{Price|20|40}}</nowiki>}}
| style = table
 
| <nowiki>{{Price|20}}</nowiki>
Result: {{Price|20|40}}
| <nowiki>{{Price|20|40}}</nowiki>
 
}}
[[Category:Weapon Property Templates]]
== 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 gp
{{Price|20|40}}
Price: 20 gp / 40 gpHHonour

Template data

Displays the price in gold.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Cost1

The standard cost in gold.

Numberrequired
Honour mode cost2

The cost in honour mode only.

Numberoptional