Template:Railway stations in countryname opened or closed in the YYY0s category header/doc

From Wikipedia, the free encyclopedia

To make a category of the form "Railway stations in countryname opened in the YYY0s" or "Railway stations in countryname closed in the YYY0s", where "countryname" is the name of a country and "YYY0s" is a 4-digit decade

e.g.

The template detects which format is being used, and adjusts accordingly.

Usage[edit]

{{Railway stations in countryname opened or closed in the YYY0s category header}}

No parameters are needed, but an optional parameter is available: |parentcountry=OtherCountry

Optional parentcountry parameter[edit]

Use of this parameter causes the category to be parented in "Category:Railway stations in OtherCountry opened in the YYY0s", instead of the usual "Category:Railway stations opened in the YYY0s"

For example, in Category:Railway stations in Hong Kong opened in the 2000s, the template is used as follows: {{Railway stations in countryname opened in the YYY0s category header|parentcountry=China}}

This causes that page to be parented in Category:Railway stations in China opened in the 2000s, rather than in Category:Railway stations opened in the 2000s

Use of this parameter is monitored by a tracking category:

Purge page to update totals

Redirects[edit]

See also[edit]