Template:Class: Difference between revisions
From Halopedia, the Halo wiki
m (rv forget it) |
mNo edit summary |
||
Line 11: | Line 11: | ||
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: | ||
Code: '''<nowiki>[[CCS-class | Code: '''<nowiki>[[CCS-class battlecruiser|''CCS''-class battlecruiser]]</nowiki>''' | ||
Result: [[CCS-class | Result: [[CCS-class battlecruiser|''CCS''-class battlecruiser]] | ||
==Usage== | ==Usage== | ||
Most cases we want to provide a direct link to the article with the minimum of fuss. | Most cases we want to provide a direct link to the article with the minimum of fuss. | ||
Code: '''<nowiki>{{Class|CCS| | Code: '''<nowiki>{{Class|CCS|battlecruiser}}</nowiki>''' | ||
Result: {{Class|CCS| | Result: {{Class|CCS|battlecruiser}} | ||
Sometimes, we don't want to use the ship's ''type'' as the follow on text. | Sometimes, we don't want to use the ship's ''type'' as the follow on text. | ||
Code: '''<nowiki>{{Class|CCS| | Code: '''<nowiki>{{Class|CCS|battlecruiser|ship}}</nowiki>''' | ||
Result: {{Class|CCS| | Result: {{Class|CCS|battlecruiser|ship}} | ||
If we want to leave out the follow-on text altogether, we make the third parameter empty. | If we want to leave out the follow-on text altogether, we make the third parameter empty. | ||
Code: '''<nowiki>{{Class|CCS| | Code: '''<nowiki>{{Class|CCS|battlecruiser|}}</nowiki> and the text that comes after.''' | ||
Result: {{Class|CCS| | Result: {{Class|CCS|battlecruiser|}} and the text that comes after. | ||
[[Category: Templates]] | [[Category: Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 12:38, June 30, 2011
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.