Difference between revisions of "Template:Cathead navy destroyers"
imported>Bellhalla m (fix syntax error) |
imported>Bellhalla (rework cathead template) |
||
Line 1: | Line 1: | ||
− | {{catexp|[[destroyer]]s commissioned | + | {{catexp|[[destroyer]]s commissioned or otherwise operated by the [[{{{1}}}]]. For destroyers by era or conflict, or destroyers designed or built in {{#if:{{{the|}}}|{{cathead the}}|}}[[{{{2}}}]] for use by other navies (if any), see [[:Category:Destroyers of {{#if:{{{the|}}}|{{cathead the}}|}}{{{2}}}]]}} |
+ | |||
+ | {{#ifexist:List of destroyers of the {{{1}}}| | ||
+ | ;See also<nowiki>:</nowiki> | ||
+ | * [[List of destroyers of the {{{1}}}]]|}} | ||
<includeonly> | <includeonly> | ||
[[Category:Destroyers by navy|{{#if:{{{3|}}}|{{{3}}}|{{{1}}}}}]] | [[Category:Destroyers by navy|{{#if:{{{3|}}}|{{{3}}}|{{{1}}}}}]] | ||
− | [[Category:Ships of the {{{1}}}]] | + | [[Category:Ships of the {{{1}}}|Destroyers]] |
− | [[Category:Destroyers of {{{2}}}{{#if:{{{4|}}}|{{!}}{{{4}}}|}}]]</includeonly><noinclude> | + | [[Category:Destroyers of {{#if:{{{the|}}}|{{cathead the}}|}}{{{2}}}{{#if:{{{4|}}}|{{!}}{{{4}}}|}}]]</includeonly><noinclude> |
− | + | {{documentation}} | |
− | |||
− | |||
</noinclude> | </noinclude> |
Latest revision as of 12:09, 2 October 2009
This template is for creating a standardized appearance for categories of destroyers organized by navy.
Usage
For countries not prefixed with the definite article the, like "Belgium" or "France", use:
{{cathead navy destroyers | Navy name | Country name }}
where Navy name is replaced by the specific navy's name and Country name is replaced by the specific country's name. For countries that are prefixed with the definite article, like "the Netherlands" or "the United Kingdom", use:
{{cathead navy destroyers | the = yes | Navy name | Country name }}
For more complex cases, where the category shouldn't sort under the navy's full name, like wanting to sort "Royal Thai Navy" under T for Thai rather than R for Royal, an optional sort parameter may be used
{{cathead navy destroyers | Royal Thai Navy | Thailand | Thai Navy, Royal }}
For a country with more than one navy through its history, like Japan with the Imperial Japanese Navy (IJN) and the Japan Maritime Self-Defense Force (JMSDF), another optional sort parameter may be used to sort the categories in chronological order
{{cathead navy destroyers | Japan Maritime Self-Defense Force | Japan | | Japan 1946 }}
Using "Japan 1946" will cause the JMSDF category to sort after the IJN category
See also
The above documentation is transcluded from Template:Cathead navy destroyers/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |