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

From blackwiki
Jump to navigation Jump to search
imported>Bellhalla
(make "Industry of…" preferred over "Economy of…"; conditionally add "Goods manufactured in…")
imported>Bellhalla
m (change sortkey(s))
Line 1: Line 1:
 
{{catexp|[[ship]]s built in {{#if:{{{the|}}}|{{cathead the}}|}}[[{{{1}}}]]}}
 
{{catexp|[[ship]]s built in {{#if:{{{the|}}}|{{cathead the}}|}}[[{{{1}}}]]}}
 
<includeonly>
 
<includeonly>
[[Category:Ships of {{#if:{{{the|}}}|{{cathead the}}|}}{{{1}}}]]
+
[[Category:Ships of {{#if:{{{the|}}}|{{cathead the}}|}}{{{1}}}|Built]]
 
[[Category:Ships by country of construction|{{{1}}}]]
 
[[Category:Ships by country of construction|{{{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 of {{#if:{{{the|}}}|{{cathead the}}|}}{{{1}}}]]|[[Category:Economy of {{#if:{{{the|}}}|{{cathead the}}|}}{{{1}}}]]}}

Revision as of 15:32, 29 October 2009

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