Template:Class: Difference between revisions

From Halopedia, the Halo wiki

mNo edit summary
m (rv forget it)
Line 1: Line 1:
<includeonly>{{#ifeq:{{{3|+}}}
<includeonly>{{#ifeq:{{{3|}}}
|{{{3|-}}}
|{{{3|u}}}
|{{#if:{{{3|}}}
|{{#ifeq:{{{3|}}}
|[[{{{1}}}-class {{{2}}}|''{{{1}}}''-class {{{3}}}]]
  |" "
|[[{{{1}}}-class {{{2}}}|''{{{1}}}''-class]]}}
  |[[{{{1}}}-class {{{2}}}|''{{{1}}}''-class]]
|[[{{{1}}}-class {{{2}}}|''{{{1}}}''-class {{{2}}}]]}}
  |[[{{{1}}}-class {{{2}}}|''{{{1}}}''-class {{{3}}}]]
</includeonly>
  }}
<noinclude>
|[[{{{1}}}-class {{{2}}}|''{{{1}}}''-class {{{2}}}]]
}}</includeonly><noinclude>
==Purpose==
==Purpose==
To avoid having to enter the following code to achieve the proper link and italics:
To avoid having to enter the following code to achieve the proper link and italics:

Revision as of 05:32, May 25, 2008

Purpose

To avoid having to enter the following code to achieve the proper link and italics:

Code: [[CCS-class Battlecruiser|''CCS''-class Battlecruiser]]

Result: CCS-class Battlecruiser

Usage

Most cases we want to provide a direct link to the article with the minimum of fuss.

Code: {{Class|CCS|Battlecruiser}}

Result: CCS-class Battlecruiser

Sometimes, we don't want to use the ship's type as the follow on text.

Code: {{Class|CCS|Battlecruiser|ship}}

Result: CCS-class ship

If we want to leave out the follow-on text altogether, we make the third parameter empty.

Code: {{Class|CCS|Battlecruiser|}} and the text that comes after.

Result: CCS-class and the text that comes after.