Difference between revisions of "Template:Cathead navy submarines"

From blackwiki
Jump to navigation Jump to search
imported>Eliyak
imported>Bellhalla
(rework cathead template)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''{{{1}}} submarines''' include [[submarine]]s and other [[submersible]]s commissioned into [[{{{1}}}]] service.
+
{{catexp|[[submarine]]s commissioned or otherwise operated by the [[{{{1}}}]]. For submarines by era or conflict, or submarines designed or built in {{#if:{{{the|}}}|{{cathead the}}|}}[[{{{2}}}]] for use by other navies (if any), see [[:Category:Submarines of {{#if:{{{the|}}}|{{cathead the}}|}}{{{2}}}]]}}
<includeonly>[[Category:{{{1}}} ships|Submarines]][[Category:Submarines of {{{2}}}]]</includeonly><noinclude>
 
 
 
[[Category:Military cathead templates]]
 
  
 +
{{#ifexist:List of submarines of the {{{1}}}|
 +
;See also<nowiki>:</nowiki>
 +
* [[List of submarines of the {{{1}}}]]|}}
 +
<includeonly>
 +
[[Category:Submarines by navy|{{#if:{{{3|}}}|{{{3}}}|{{{1}}}}}]]
 +
[[Category:Ships of the {{{1}}}|Submarines]]
 +
[[Category:Submarines of {{#if:{{{the|}}}|{{cathead the}}|}}{{{2}}}{{#if:{{{4|}}}|{{!}}{{{4}}}|}}]]</includeonly><noinclude>
 +
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 06:33, 2 October 2009


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

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

Usage

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

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

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

See also