Difference between revisions of "Template:EstcatCountryCentury/doc"

From blackwiki
Jump to navigation Jump to search
imported>Fayenatic london
(Millennium parameter is now optional)
imported>Fayenatic london
(interwiki link is at Wikidata)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- Categories and interwikis go at the bottom of this page. -->
+
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
  
 
== Usage ==
 
== Usage ==
Line 33: Line 33:
  
 
<includeonly>
 
<includeonly>
<!-- Categories and interwikis go here: -->
+
<!-- Categories go here: -->
 
[[Category:Establishments-by-century templates]]
 
[[Category:Establishments-by-century templates]]
 
[[Category:Country templates]]
 
[[Category:Country templates]]
 
[[Category:Works-by-century templates]]
 
[[Category:Works-by-century templates]]
[[ar:قالب:تأسيس بلد قرن]]
 
 
</includeonly>
 
</includeonly>

Revision as of 14:24, 28 January 2016

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

The 5th parameter is optional. If it is omitted, the millennium category will not be populated; e.g. {{EstcatCountryCentury|15|16th|15th|17th||Aragon}} will not put the century category into a parent Category:2nd-millennium establishments in Aragon. Consensus at WP:CFD discussions points to not having millennium categories for territories that only existed during one millennium.

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 "Nth-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..

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

{{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