Difference between revisions of "Template:EstcatCountryDecade/doc"
Jump to navigation
Jump to search
imported>Fayenatic london (→Usage: expand) |
imported>Fayenatic london (→Usage: revise) |
||
| Line 3: | Line 3: | ||
== Usage == | == Usage == | ||
| − | '''<nowiki>{{</nowiki>EstcatCountryDecade|''''' YY | Y | century | country [ | sort key] ''}} | + | '''<nowiki>{{</nowiki>EstcatCountryDecade|''''' YY | Y | century | country [ | sort key [ | new name]] ''}} |
;Examples | ;Examples | ||
| Line 12: | Line 12: | ||
===Change of country name=== | ===Change of country name=== | ||
| − | The optional | + | 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 | + | 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. |
; Example | ; Example | ||
| − | '''<nowiki>{{</nowiki>EstcatCountryDecade|19|7|20th|Burma|Myanmar<nowiki>}}</nowiki>''' | + | '''<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]]. | The parent categories will be [[:Category:Establishments in Myanmar by decade]], but still [[:Category:20th-century establishments in Burma]]. | ||
Revision as of 18:59, 4 September 2015
| This is a documentation subpage for Template:EstcatCountryDecade. It contains usage information, categories and other content that is not part of the original template page. |
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".
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.
- 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
- Template:EstcatCountry
- Template:EstcatCountryCentury
- Template:EstcatCountry2ndMillennium
- Template:EstcatCountry3rdMillennium
- Template:EstcatUSstateDecade