Difference between revisions of "Template:EstcatCountryDecade/doc"

From blackwiki
Jump to navigation Jump to search
imported>Fayenatic london
(→‎Change of country name: error if 5th parameter is left blank)
imported>Fayenatic london
(→‎Change of country name: trim after removing conditional logic)
Line 14: Line 14:
 
The optional 6th parameter sort key can also be used to override the country name in the parent category, "Establishments in 'X' by decade".
 
The optional 6th parameter sort key can also be used to override the country name in the parent category, "Establishments in 'X' by decade".
  
If a category exists using the new name instead of the country in that category, the template will use the new name. This is useful where a country has changed its name.  
+
This is useful where a country has changed its name, and the only parent category by decade uses the new name.  
  
 
; Example
 
; Example

Revision as of 20:55, 5 September 2015

Usage

{{EstcatCountryDecade| YY | Y | century | country [ | sort key [ | new name]] }}

Examples

{{EstcatCountryDecade|19|3|20th|the United States|United States}}

{{EstcatCountryDecade|20|7|21st|Belgium}}

Change of country name

The optional 6th parameter sort key can also be used to override the country name in the parent category, "Establishments in 'X' by decade".

This is useful where a country has changed its name, and the only parent category by decade uses the new name.

Example

{{EstcatCountryDecade|19|7|20th|Burma|Burma|Myanmar}}

The parent categories will be Category:Establishments in Myanmar by decade, but still Category:20th-century establishments in Burma.

See also