Template:Drop table gold: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Rename alt->alias. Make it work)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><onlyinclude>{{DropTableRow|icon={{DropTableGold/Icon|{{{lower}}} }}|item=Gold|quantity={{{lower}}}{{#if:{{{upper|}}}| &nbsp;- {{{upper}}} }}|rarity={{{chance|Always}}}|note={{{note|}}} }}</onlyinclude></includeonly><noinclude>
<includeonly><onlyinclude>{{Drop table row|icon={{Drop table gold/Icon|{{{lower}}} }}|item=Gold|alias={{{alias|}}}|quantity={{{lower}}}{{#if:{{{upper|}}}| &nbsp;- {{{upper}}} }}|rarity={{{chance|Always}}}|note={{{note|}}} }}</onlyinclude></includeonly><noinclude>


{{DropTableStart}}
{{Drop table start}}
{{DropTableGold|lower=1}}
{{Drop table gold|lower=1}}
{{DropTableGold|lower=10|upper=100}}
{{Drop table gold|lower=10|upper=100}}
{{DropTableGold|lower=532|chance=1/6}}
{{Drop table gold|lower=532|chance=1/6}}
{{DropTableGold|lower=99|note={{#tag:ref|Only if you are a Flaming Sphere. }} }}
{{Drop table gold|lower=99|note={{#tag:ref|Only if you are a Flaming Sphere. }} }}
{{DropTableEnd}}
{{Drop table gold|alias=Fool's Gold|lower=99}}
{{Drop table end}}


<templatedata>
<templatedata>
Line 25: Line 26:
"description": "(optional) The chance that this is dropped.",
"description": "(optional) The chance that this is dropped.",
"default": "Always"
"default": "Always"
},
"alias": {
"description": "Alternative display name.",
"type": "string"
}
}
},
},
Line 31: Line 36:
"upper",
"upper",
"chance",
"chance",
"note"
"note",
"alias"
]
]
}
}
</templatedata></noinclude>
</templatedata></noinclude>

Latest revision as of 16:34, 18 October 2023


Item Quantity Chance
Gold 1 Always
Gold 10 - 100 Always
Gold 532 1/6
Gold [1] 99 Always
Gold 99 Always
  1. Only if you are a Flaming Sphere.

No description.

Template parameters

ParameterDescriptionTypeStatus
lowerlower

Either the amount of gold to be displayed, or the lower bound of the amount of gold to be displayed.

Numberrequired
upperupper

(optional) The upper bound of the amount to be displayed.

Unknownoptional
chancechance

(optional) The chance that this is dropped.

Default
Always
Unknownoptional
notenote

Can be used to provide a <ref/> note.

Unknownoptional
aliasalias

Alternative display name.

Stringoptional