Difference between revisions of "Template:Cathead navy minelayers"

From blackwiki
Jump to navigation Jump to search
imported>Bellhalla
(create new cathead template)
 
imported>Bellhalla
(change sortkey(s))
Line 6: Line 6:
 
<includeonly>
 
<includeonly>
 
[[Category:Minelayers by navy|{{#if:{{{3|}}}|{{{3}}}|{{{1}}}}}]]
 
[[Category:Minelayers by navy|{{#if:{{{3|}}}|{{{3}}}|{{{1}}}}}]]
[[Category:Mine warfare vessels of the {{{1}}}|Minelayers]]
+
[[Category:Mine warfare vessels of the {{{1}}}|Layers]]
 
[[Category:Minelayers of {{#if:{{{the|}}}|{{cathead the}}|}}{{{2}}}{{#if:{{{4|}}}|{{!}}{{{4}}}|}}]]</includeonly><noinclude>
 
[[Category:Minelayers of {{#if:{{{the|}}}|{{cathead the}}|}}{{{2}}}{{#if:{{{4|}}}|{{!}}{{{4}}}|}}]]</includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 14:25, 13 October 2009


Template documentation[view] [edit] [history] [purge]

This template is for creating a standardized appearance for categories of minelayers organized by navy.

Usage

For countries not prefixed with the definite article the, like "Belgium" or "France", use:

  • {{cathead navy minelayers | 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 minelayers | 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 minelayers | 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 minelayers | Japan Maritime Self-Defense Force | Japan | | Japan 1946 }}

Using "Japan 1946" will cause the JMSDF category to sort after the IJN category

See also