Template:Icon2

From Star Trek Online Wiki
Jump to: navigation, search
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.

  1. The name of the item. If omitted, uses the current page name
  2. Mk Level (Mk I - XV, Shuttle and Leveless)
  3. The rarity level (Common, Uncommon, Rare, Very Rare, Ultra Rare, Epic)
  4. The icon size in pixels (49px is default)
  5. The article to link to (optional, by default this is identical to the first parameter)

Usage

{{icon2|Phaser Beam Array}} produces:

Phaser Beam Array icon.png
Common icon.png


{{icon2|Phaser Beam Array|Mk XII}} produces:

Phaser Beam Array icon.png
Common icon.png
Mk XII icon.png


{{icon2|Phaser Beam Array||uncommon}} produces:

Phaser Beam Array icon.png
Uncommon icon.png


{{icon2|Phaser Beam Array|||30px}} produces:

Phaser Beam Array icon.png
Common icon.png


To add link to icon:
{{icon2|Phaser Beam Array||Uncommon|30px|Damage type (space)#Phaser}} produces:

Phaser Beam Array icon.png
Uncommon icon.png