Template:Drop table gold: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(add alt)
(Rename alt->alias. Make it work)
 
Line 1: Line 1:
<includeonly><onlyinclude>{{DropTableRow|icon={{DropTableGold/Icon|{{{lower}}} }}|item={{{alt|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 26: Line 27:
"default": "Always"
"default": "Always"
},
},
"alt": {
"alias": {
"description": "Alternative display name.",
"description": "Alternative display name.",
"type": "string"
"type": "string"
Line 36: Line 37:
"chance",
"chance",
"note",
"note",
"alt"
"alias"
]
]
}
}
</templatedata></noinclude>
</templatedata></noinclude>

Latest revision as of 17:34, 18 October 2023


Item Quantity Chance
Gold 1 Always
Gold 10 - 100 Always
Gold 532 1/6
Gold [1] 99 Always
Fool's 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