Difference between revisions of "Template:Decade in nationality music category/doc"

From blackwiki
Jump to navigation Jump to search
imported>BrownHairedGirl
imported>BrownHairedGirl
 
Line 34: Line 34:
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Works-by-decade templates]]
 
[[Category:Works-by-decade templates]]
[[Category:Music category header templates]]
+
[[Category:Music chronology category header templates|Nationality]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 14:35, 1 June 2020

Makes a category of the form "YYY0s in nationality music", e.g. Category:2000s in French music or Category:1960s in Irish music

Normal usage

{{Decade in nationality music category}}

The template needs to know the nationality and country. (e.g. on Category:1980s in Irish music, the nationality is "Irish" and the country is "Ireland").

By default, the template takes the nationality from the title, and uses Template:GetCountryNameFromAdjective to get the name of the country.

Exceptional usage

{{Decade in nationality music category|CountryName|Nationality}} In some rare cases, the Template:GetCountryNameFromAdjective may not find a country to match the nationality. If so, the country and nationality may be supplied as parameters

e.g.

  • {{Decade in nationality music category|China|Chinese}}
  • {{Decade in nationality music category|United Kingdom|British}}

In all cases, the decade is drawn from the category's title, and cannot be overridden.

Note that if parameters are supplied, the page is categorised in a tracking category:

Errors

If this template is used on an invalid page, then an error message is displayed, and the page is categorised in a tracking category:

See also