Difference between revisions of "Template:EstcatCountryCentury/doc"

From blackwiki
Jump to navigation Jump to search
imported>Funandtrvl
(add cat)
imported>Fayenatic london
(document new parameter)
Line 3: Line 3:
  
 
== Usage ==
 
== Usage ==
'''<nowiki>{{</nowiki>EstcatCountryCentury|''''' YY | century | previous century | next century | millennium | country [ | sort key] ''}}
+
'''<nowiki>{{</nowiki>EstcatCountryCentury|''''' YY | century | previous century | next century | millennium | country [ | sort key [ | new name ]] ''}}
  
 
;Examples
 
;Examples
Line 10: Line 10:
  
 
'''<nowiki>{{</nowiki>EstcatCountryCentury|20|21st|20th|22nd|3rd|Belgium<nowiki>}}</nowiki>''' – for Category:21st-century establishments in Belgium
 
'''<nowiki>{{</nowiki>EstcatCountryCentury|20|21st|20th|22nd|3rd|Belgium<nowiki>}}</nowiki>''' – for Category:21st-century establishments in Belgium
 +
 +
===Change of country name===
 +
The optional 8th parameter sort key can also be used to override the country name in the parent categories, "Establishments in 'X' by century" and "NNth-millennium establishments in 'X'".
 +
 +
This is useful where a country has changed its name, and the only parent categories by century & millennium use the new name..
 +
 +
; Example
 +
'''<nowiki>{{</nowiki>EstcatCountryCentury|18|19th|18th|20th|2nd|Burma|Burma|Myamnar<nowiki>}}</nowiki>'''
 +
 +
The parent categories will be [[:Category:Establishments in Myanmar by century]] and [[:Category:2nd-millennium establishments in Myanmar]].
  
 
== See also ==
 
== See also ==

Revision as of 21:09, 5 September 2015

Usage

{{EstcatCountryCentury| YY | century | previous century | next century | millennium | country [ | sort key [ | new name ]] }}

Examples

{{EstcatCountryCentury|19|20th|19th|21st|2nd|the United States|United States}} – for Category:20th-century establishments in the United States

{{EstcatCountryCentury|20|21st|20th|22nd|3rd|Belgium}} – for Category:21st-century establishments in Belgium

Change of country name

The optional 8th parameter sort key can also be used to override the country name in the parent categories, "Establishments in 'X' by century" and "NNth-millennium establishments in 'X'".

This is useful where a country has changed its name, and the only parent categories by century & millennium use the new name..

Example

{{EstcatCountryCentury|18|19th|18th|20th|2nd|Burma|Burma|Myamnar}}

The parent categories will be Category:Establishments in Myanmar by century and Category:2nd-millennium establishments in Myanmar.

See also