Sto banner 20180605 X4-launch.jpg

Congratulations to Damixon, SFC and PiralDorrm, STOWiki's newest administrators.

We are re-indexing our search results on the top 100 wikis on the platform, starting June 25th and ending later this week. If you experience search issues, that means your wiki is currently being re-indexed. Thanks for your patience.

Template:Icon

From Star Trek Online Wiki
Jump to: navigation, search


The following documentation is transcluded from Template:Icon/doc (edit):

The Icon template creates an item icon image with a rarity border overlay. It is a floating element added to the left of the body. There are 5 parameters:

  1. The name of the item. If omitted, uses the current page name
  2. Mk Level. If omitted or missing, will use the base image
  3. The rarity level (Common, Uncommon, Rare, Very Rare, Ultra Rare, Unique) - case-insensitive
  4. The icon size in pixels
  5. The article to link to (optional, by default this is identical to the first parameter)

Example:

{{icon|Phaser Beam Array|Mk III|Rare}} produces:

Phaser Beam Array Mk III icon.png
Rare icon.png


{{icon|Phaser Beam Array||Very rare}} produces:

Phaser Beam Array icon.png
Very rare icon.png


{{icon|Phaser Beam Array||Uncommon|24px}} produces:

Phaser Beam Array icon.png
Uncommon icon.png


Notes[edit source]

  • Very Rare must be typed instead of veryrare (with the space).
  • You can also omit the parameter and just use {{icon}} to use the current page name. For example, if used on the "Large Hypo" page, it would look for "Large Hypo icon.png". If no rarity is provided, the template will attempt to use Property:Is of rarity to determine the overlay. If that fails, it will default to Common (no overlay).

Promotional Content