Template:Rarity item: Difference between revisions
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.
Inserts an item's icon, rarity colours, and name into a page. Specialization of Template:ItemIcon.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | The name of the item | Page name | required |
2 | 2 | (optional) Size of the item's icon. Default 25 | Number | optional |
alias | alias | (optional) If specified, renames link text to this. | Unknown | optional |
override_icon | override_icon | If specified, overrides the icon. | Unknown | optional |
override_rarity | override_rarity | If specified along with override_icon, sets the rarity. | Unknown | optional |