Template:Rarity item: Difference between revisions

Jump to navigation Jump to search
m
m (add doc tag)
m (Willowisp moved page Template:RarityItem to Template:Rarity item)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly><onlyinclude>{{ItemIcon
<includeonly><onlyinclude>{{ItemIcon
|name={{{1}}}
|name={{{1}}}
|uid={{{uid|}}}
|size={{{2|25}}}
|size={{{2|25}}}
|alias={{{alias|}}}
|alias={{{alias|}}}
Line 8: Line 9:
|override_icon={{{override_icon|}}}  
|override_icon={{{override_icon|}}}  
|override_rarity={{{override_rarity|}}}
|override_rarity={{{override_rarity|}}}
}}</onlyinclude></includeonly><noinclude>{{documentation|content=
}}</onlyinclude></includeonly><noinclude>


{| class="wikitable"
{| class="wikitable"
Line 17: Line 18:
|-
|-
|<code><nowiki>{{RarityItem|Potion of Supreme Healing|alias=Supremey Boi}}</nowiki></code> || {{RarityItem|Potion of Supreme Healing|alias=Supremey Boi}}
|<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}}
|}
|}


Line 29: Line 32:
"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": {
Line 43: Line 53:
"override_rarity": {
"override_rarity": {
"description": "If specified along with override_icon, sets the 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>
</templatedata>


[[Category:Templates]]
[[Category:Templates]]
}}</noinclude>
</noinclude>
8,856
edits

Navigation menu