Difference between revisions of "Template:EstcatCountryDecade/doc"

From blackwiki
Jump to navigation Jump to search
imported>Fayenatic london
(→‎Change of country name: {{As of|September 2015}} this is a new feature. Please leave a note at Template talk:EstcatCountry if you use this parameter, in case it changes.)
imported>Fayenatic london
(→‎Usage: better example that does use this naming format)
Line 19: Line 19:
  
 
; Example
 
; Example
'''<nowiki>{{</nowiki>EstcatCountryDecade|19|7|20th|Burma|Burma|Myanmar<nowiki>}}</nowiki>'''
+
'''<nowiki>{{</nowiki>EstcatCountryDecade|19|2|20th|Siam|Siam|Thailand<nowiki>}}</nowiki>'''
  
The parent categories will be [[:Category:Establishments in Myanmar by decade]], but still [[:Category:20th-century establishments in Burma]].
+
The parent categories will be [[:Category:Establishments in Thailand by decade]], but still [[:Category:20th-century establishments in Siam]].
  
 
== See also ==
 
== See also ==

Revision as of 22:28, 23 March 2016

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.

As of September 2015 this is a new feature. Please leave a note at Template talk:EstcatCountry if you use this parameter, in case it changes.

Example

{{EstcatCountryDecade|19|2|20th|Siam|Siam|Thailand}}

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

See also