Template:Class: Difference between revisions
From Halopedia, the Halo wiki
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{#ifeq: | {{ #ifeq: {{{1| }}} | {{{1|u}}} | defined | undefined }} | ||
}} | |||
<noinclude> | <noinclude> | ||
{{Class}} | |||
==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 22:41, November 12, 2007
undefined
undefined
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: {{ShipClass|CCS|Battlecruiser}}
Result: Template:ShipClass
Sometimes, we don't want to use the ship's type as the follow on text.
Code: {{ShipClass|CCS|Battlecruiser|ship}}
Result: Template:ShipClass
If we want to leave out the follow-on text altogether, we make the third parameter an empty space. Note that the third parameter's space is not included in the output.
Code: {{ShipClass|CCS|Battlecruiser|ship}} and the text that comes after.
Result: Template:ShipClass and the text that comes after.