Difference between revisions of "Template:Cathead ships built in"

From blackwiki
Jump to navigation Jump to search
imported>Bellhalla
m (add optional country sort)
imported>Timrollpickering
m (update cat)
Line 3: Line 3:
 
[[Category:Ships of {{#if:{{{the|}}}|{{cathead the}}|}}{{{1}}}|Built]]
 
[[Category:Ships of {{#if:{{{the|}}}|{{cathead the}}|}}{{{1}}}|Built]]
 
[[Category:Ships by country of construction|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}]]
 
[[Category:Ships by country of construction|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}]]
{{#ifexist:Category:Industry of {{#if:{{{the|}}}|{{cathead the}}|}}{{{1}}}|[[Category:Industry of {{#if:{{{the|}}}|{{cathead the}}|}}{{{1}}}]]|[[Category:Economy of {{#if:{{{the|}}}|{{cathead the}}|}}{{{1}}}]]}}
+
{{#ifexist:Category:Industry of {{#if:{{{the|}}}|{{cathead the}}|}}{{{1}}}|[[Category:Industry in {{#if:{{{the|}}}|{{cathead the}}|}}{{{1}}}]]|[[Category:Economy of {{#if:{{{the|}}}|{{cathead the}}|}}{{{1}}}]]}}
 
{{#ifexist:Category:Goods manufactured in {{#if:{{{the|}}}|{{cathead the}}|}}{{{1}}}|[[Category:Goods manufactured in {{#if:{{{the|}}}|{{cathead the}}|}}{{{1}}}]]|}}
 
{{#ifexist:Category:Goods manufactured in {{#if:{{{the|}}}|{{cathead the}}|}}{{{1}}}|[[Category:Goods manufactured in {{#if:{{{the|}}}|{{cathead the}}|}}{{{1}}}]]|}}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 19:39, 30 July 2011

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

This template is for creating a standardized appearance for categories of ships by country of construction, and categorized in Category:Ships by country of construction.

Usage

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

  • {{cathead ships built in | Country name }}

where 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 ships built in | the = yes | Country name }}

For countries that should sort under something other than their full name—like "Republic of China" sorting under C for China, rather than R for Republic—use an optional sort parameter, as in this example:

  • {{cathead ships built in | the = yes | Republic of China | China, Republic of }}

(This works with or without the parameter the.)

See also