Template:Rarity item: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Make it no_padding by default)
(add icon override)
Line 1: Line 1:
<includeonly><onlyinclude>{{ItemIcon|name={{{1}}}|size={{{2|25}}}|alias={{{alias|}}}|no_padding=true|show_name=true|show_rarity=true}}</onlyinclude></includeonly><noinclude>
<includeonly><onlyinclude>{{ItemIcon
|name={{{1}}}
|size={{{2|25}}}
|alias={{{alias|}}}
|no_padding=true
|show_name=true
|show_rarity=true
|override_icon={{{override_icon|}}}
|override_rarity={{{override_rarity|}}}
}}</onlyinclude></includeonly><noinclude>


{| class="wikitable"
{| class="wikitable"
Line 10: Line 19:
|}
|}


See [[Template:ItemIcon/Family]] for more variations of ItemIcon..
See [[Template:ItemIcon/Family]] for more variations of ItemIcon.
 


{{RarityItem|Shovel (item)}} {{RarityItem|Shovel (item)|override_icon=Ring G Faded.png|override_rarity=uncommon}}


<templatedata>
<templatedata>
Line 28: Line 37:
"alias": {
"alias": {
"description": "(optional) If specified, renames link text to this."
"description": "(optional) If specified, renames link text to this."
},
"override_icon": {
"description": "If specified, overrides the icon."
},
"override_rarity": {
"description": "If specified along with override_icon, sets the rarity."
}
}
},
},

Revision as of 22:14, 1 November 2023


{{RarityItem|Potion of Supreme Healing}} Potion of Supreme Healing
{{RarityItem|Potion of Supreme Healing|40}} Potion of Supreme Healing
{{RarityItem|Potion of Supreme Healing|alias=Supremey Boi}} Supremey Boi

See Template:ItemIcon/Family for more variations of ItemIcon.

Shovel (item) Shovel (item)

Inserts an item's icon, rarity colours, and name into a page. Specialization of Template:ItemIcon.

Template parameters

ParameterDescriptionTypeStatus
11

The name of the item

Page namerequired
22

(optional) Size of the item's icon. Default 25

Numberoptional
aliasalias

(optional) If specified, renames link text to this.

Unknownoptional
override_iconoverride_icon

If specified, overrides the icon.

Unknownoptional
override_rarityoverride_rarity

If specified along with override_icon, sets the rarity.

Unknownoptional