Template:Class: Difference between revisions
From Halopedia, the Halo wiki
mNo edit summary |
mNo edit summary |
||
Line 33: | Line 33: | ||
Result: {{Class|CCS|Battlecruiser| }} and the text that comes after. | Result: {{Class|CCS|Battlecruiser| }} and the text that comes after. | ||
If you don't have the space, the following happens: | |||
Code: '''<nowiki>{{Class|CCS|Battlecruiser|}}</nowiki> and the text that comes after.''' | |||
Result: {{Class|CCS|Battlecruiser|}} and the text that comes after. | |||
[[Category: Templates]] | [[Category: Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 00:16, November 13, 2007
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 an empty space. Note that the third parameter's space is not included in the output.
Code: {{Class|CCS|Battlecruiser| }} and the text that comes after.
Result: CCS-class and the text that comes after.
If you don't have the space, the following happens:
Code: {{Class|CCS|Battlecruiser|}} and the text that comes after.
Result: CCS-class and the text that comes after.