14,321
editsAd placeholder
Template:Rarity item: Difference between revisions
Jump to navigation
Jump to search
no edit summary
(add alias) |
No edit summary |
||
(11 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{ItemIcon|name={{{1}}}|size={{{2|25}}}|alias={{{alias|}}}|show_name=true|show_rarity=true}}</onlyinclude></includeonly><noinclude> | <includeonly><onlyinclude>{{ItemIcon | ||
{{RarityItem|Potion of Supreme Healing}} | |name={{{1}}} | ||
{{RarityItem|Potion of Supreme Healing|40}} | |uid={{{uid|}}} | ||
{{RarityItem|Potion of Supreme Healing|alias=Supremey Boi}} | |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" | |||
|- | |||
|<code><nowiki>{{RarityItem|Potion of Supreme Healing}}</nowiki></code> || {{RarityItem|Potion of Supreme Healing}} | |||
|- | |||
|<code><nowiki>{{RarityItem|Potion of Supreme Healing|40}}</nowiki></code> || {{RarityItem|Potion of Supreme Healing|40}} | |||
|- | |||
|<code><nowiki>{{RarityItem|Potion of Supreme Healing|alias=Supremey Boi}}</nowiki></code> || {{RarityItem|Potion of Supreme Healing|alias=Supremey Boi}} | |||
|- | |||
|<code><nowiki>{{RarityItem|Leather Armour|uid=UNI_Leather_Minsc}}</nowiki></code> || {{RarityItem|Leather Armour|uid=UNI_Leather_Minsc}} | |||
|} | |||
See [[Template:ItemIcon/Family]] for more variations of ItemIcon. | |||
Examples: | |||
* {{RarityItem|Handmaiden's Mace}} | |||
* {{RarityItem|Handmaiden's Mace|override_icon=Ring G Faded.png|override_rarity=uncommon}} - with an alternative icon | |||
Other options | |||
* [[Template:LgRarityItem]]- sets the default size to 40 instead of 25 | |||
* [[Template:MdRarityItem]] - sets the default size to 30 instead of 25 | |||
* [[Template:SmRarityItem]] - sets the default size to 20 instead of 25 | |||
<templatedata> | <templatedata> | ||
Line 10: | Line 39: | ||
"description": "The name of the item ", | "description": "The name of the item ", | ||
"type": "wiki-page-name", | "type": "wiki-page-name", | ||
"required": true | "required": true, | ||
"label": "name" | |||
}, | }, | ||
"2": { | "2": { | ||
"description": "(optional) Size of the item's icon. Default 25", | "description": "(optional) Size of the item's icon. Default 25", | ||
"type": "number" | "type": "number", | ||
"label": "size", | |||
"suggestedvalues": [ | |||
"25", | |||
"30", | |||
"40" | |||
] | |||
}, | }, | ||
"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." | |||
}, | |||
"uid": { | |||
"description": "The uid of the item. If specified, will search by UID *instead of* item name. Must be specified with the name parameter as well." | |||
} | } | ||
}, | }, | ||
"description": "Inserts an item's icon, rarity colours, and name into a page. Specialization of Template:ItemIcon." | "description": "Inserts an item's icon, rarity colours, and name into a page. Specialization of Template:ItemIcon.", | ||
"paramOrder": [ | |||
"1", | |||
"2", | |||
"uid", | |||
"alias", | |||
"override_icon", | |||
"override_rarity" | |||
] | |||
} | } | ||
</templatedata></noinclude> | </templatedata> | ||
[[Category:Icon templates]] | |||
[[Category:Templates]] | |||
</noinclude> |