Difference between revisions of "Template:EstcatCountryDecade/doc"

From blackwiki
Jump to navigation Jump to search
imported>Fayenatic london
(→‎Usage: Where a different result is desired, it may be best to create a specific template like those in Category:20th-century establishments templates by country.)
imported>R'n'B
(document dab parameter)
Line 24: Line 24:
  
 
Where a different result is desired, it may be best to create a specific template like those in [[:Category:20th-century establishments templates by country]].
 
Where a different result is desired, it may be best to create a specific template like those in [[:Category:20th-century establishments templates by country]].
 +
 +
===Disambiguation===
 +
If the country name used in the category title is ambiguous, use the optional named '''dab''' parameter to link to the mainspace article about the country.
 +
 +
; Example
 +
'''<nowiki>{{</nowiki>estcatCountryDecade|19|4|20th|Malaya|Malaya|dab=Malayan Union<nowiki>}}</nowiki>'''
  
 
== See also ==
 
== See also ==

Revision as of 11:15, 14 March 2017

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.

Where a different result is desired, it may be best to create a specific template like those in Category:20th-century establishments templates by country.

Disambiguation

If the country name used in the category title is ambiguous, use the optional named dab parameter to link to the mainspace article about the country.

Example

{{estcatCountryDecade|19|4|20th|Malaya|Malaya|dab=Malayan Union}}

See also