Difference between revisions of "Template:EstcatCountryDecade/doc"

From blackwiki
Jump to navigation Jump to search
imported>Funandtrvl
(add cat)
imported>Fayenatic london
(→‎Usage: expand)
Line 10: Line 10:
  
 
'''<nowiki>{{</nowiki>EstcatCountryDecade|20|7|21st|Belgium<nowiki>}}</nowiki>'''
 
'''<nowiki>{{</nowiki>EstcatCountryDecade|20|7|21st|Belgium<nowiki>}}</nowiki>'''
 +
 +
===Change of country name===
 +
The optional 5th 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 sort key instead of the country in that category name, the template will use the sort key. This is useful where a country has changed its name.
 +
 +
; Example
 +
'''<nowiki>{{</nowiki>EstcatCountryDecade|19|7|20th|Burma|Myanmar<nowiki>}}</nowiki>'''
 +
 +
The parent categories will be [[:Category:Establishments in Myanmar by decade]], but still [[:Category:20th-century establishments in Burma]].
  
 
== See also ==
 
== See also ==

Revision as of 18:53, 4 September 2015

Usage

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

Examples

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

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

Change of country name

The optional 5th 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 sort key instead of the country in that category name, the template will use the sort key. This is useful where a country has changed its name.

Example

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

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

See also