Star Trek Online Wiki
No edit summary
(should now account for all capitalization and spacing of rarities)
Line 1: Line 1:
<includeonly><span style="font-family: FuturaBody;" class="{{#ifeq: {{{3|}}} | very rare | veryrare | {{{3|{{#if: {{#show: {{{1|{{PAGENAME}}}}} | ?Is of rarity}} | {{#show: {{{1|{{PAGENAME}}}}} | ?Is of rarity}} | common }}}}}}}"><nowiki>[</nowiki>[[{{{link|{{{1|{{PAGENAME}}}}}}}}|<span class="{{#ifeq: {{{3|}}} | very rare | veryrare | {{{3|{{#if: {{#show: {{{1|{{PAGENAME}}}}} | ?Is of rarity}} | {{#show: {{{1|{{PAGENAME}}}}} | ?Is of rarity}} | common }}}}}}}">{{{1|{{PAGENAME}}}}}{{#if: {{{2|}}} | &nbsp;{{{2}}}}}</span>]]<nowiki>]</nowiki></span></includeonly><noinclude>
+
<includeonly><span style="font-family: FuturaBody;" class="{{#ifeq: {{lc:{{{3|{{#show: {{{1|{{PAGENAME}}}}} | ?Is of rarity}}}}}}} | very rare | veryrare | {{{3|{{#if: {{#show: {{{1|{{PAGENAME}}}}} | ?Is of rarity}} | {{lc:{{#show: {{{1|{{PAGENAME}}}}} | ?Is of rarity}}}} | common }}}}}}}"><nowiki>[</nowiki>[[{{{link|{{{1|{{PAGENAME}}}}}}}}|<span class="{{#ifeq: {{lc:{{{3|{{#show: {{{1|{{PAGENAME}}}}} | ?Is of rarity}}}}}}} | very rare | veryrare | {{{3|{{#if: {{#show: {{{1|{{PAGENAME}}}}} | ?Is of rarity}} | {{lc:{{#show: {{{1|{{PAGENAME}}}}} | ?Is of rarity}}}} | common }}}}}}}">{{{1|{{PAGENAME}}}}}{{#if: {{{2|}}} | &nbsp;{{{2}}}}}</span>]]<nowiki>]</nowiki></span></includeonly>
  +
<noinclude>
 
{{doc}}
 
{{doc}}
 
[[Category: Item Templates|{{PAGENAME}}]]
 
[[Category: Item Templates|{{PAGENAME}}]]

Revision as of 19:00, 9 May 2012


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

Template Description

This template is used to generate colorized item wiki links.

It can also now be used to generate self-links (which are formatted the same, but do not actually link) by omitting the first parameter.

Usage

Like so:

{{item|Subcategory Name - Name of Equipment|Mk Level|rarity|link=item link}}
{{item|Just the Name of Equipment||rarity}}
{{item}}

Please note the double-| above, which omits the Mk level of such items that do not have any.

Template usage examples:

* {{item|Body Armor - Pollyalloy Weave|Mk II|common}}
* {{item|Personal Shield|Mk II [Cap]|uncommon}}
* {{item|Phaser Beam Array|Mk II}}
* {{item|Romulan Osol Twist||rare}}
* {{item|Klingon Racht}}
* {{item}}

Result:

  • [Body Armor - Pollyalloy Weave Mk II]
  • [Name of the Current Page]


The first piece of equipment is named "Body Armor - Pollyalloy [sic] Weave Mk II" in the game, and is thus named Body Armor - Pollyalloy Weave on the wiki. The "Mk II" is simply appended to the link text, but not the article title itself. Since this particular item is Common, the link is that color.

In the last case, the name of whatever page on which the link appears will be displayed.

If no rarity is provided, the template will attempt to use Property:Is of rarity to determine the rarity. Barring that, it will default to "Common".