Template:Icon2
- The following documentation is transcluded from Template:Icon2/doc (edit):
This template is a modified version of {{icon}} for use in templates and other places where there is the possibility of too many {{#ifexist}} calls (and the corresponding error). It mostly functions identically to {{icon}}, with the same parameters. It will not show File:No icon.png if the icon doesn't exist in the first place.
- The name of the item. If omitted, uses the current page name
- Mk Level (Mk I - XV, Shuttle and Leveless)
- The rarity level (Common, Uncommon, Rare, Very Rare, Ultra Rare, Epic)
- The icon size in pixels (49px is default)
- The article to link to (optional, by default this is identical to the first parameter)
Usage
{{icon2|Phaser Beam Array}} produces:
{{icon2|Phaser Beam Array|Mk XII}} produces:
{{icon2|Phaser Beam Array||uncommon}} produces:
{{icon2|Phaser Beam Array|||30px}} produces:
To add link to icon:
{{icon2|Phaser Beam Array||Uncommon|30px|Damage type (space)#Phaser}} produces: