Difference between revisions of "Template:Decade in nationality television category"

From blackwiki
Jump to navigation Jump to search
imported>BrownHairedGirl
(support country parameter)
imported>BrownHairedGirl
m (typo)
 
Line 11: Line 11:
 
                   -->{{Decade in nationality television category/core<!--
 
                   -->{{Decade in nationality television category/core<!--
 
                       -->| decade = {{Title decade}}<!--
 
                       -->| decade = {{Title decade}}<!--
                       -->| country = {{{country|{{GetCountryNameFromAdjective|{{#invoke:String|replace|source={{PAGENAME}}|pattern=%d%d%d0s in (.+) television$|replace=%1|count=1|plain= false}}}}}}<!--
+
                       -->| country = {{{country|{{GetCountryNameFromAdjective|{{#invoke:String|replace|source={{PAGENAME}}|pattern=%d%d%d0s in (.+) television$|replace=%1|count=1|plain= false}}}}}}}<!--
 
                       -->| nationality = {{#invoke:String|replace|source={{PAGENAME}}|pattern=%d%d%d0s in (.+) television$|replace=%1|count=1|plain= false}}<!--
 
                       -->| nationality = {{#invoke:String|replace|source={{PAGENAME}}|pattern=%d%d%d0s in (.+) television$|replace=%1|count=1|plain= false}}<!--
 
                   -->}}<!--
 
                   -->}}<!--

Latest revision as of 16:48, 21 March 2020

Template documentation[view] [edit] [history] [purge]

Creates a category of the form "YYY0s in nationality television", where YYY0s is a 4-digit decade and nationality is a valid nationality.

e.g.

Usage

{{Decade in nationality television}}

No parameters needed

Errors

If the template is used on invalid page, an error message is generated and the page is categorised in:

Errors include:

  • The page is not in the category namespace
  • The page's title does not take the form form "YYY0s in nationality television"
  • The value of "nationality" does not correspond to a country name. The conversion is made using {{GetCountryNameFromAdjective}}, so the problem may be a glitch in that template's lookup table

Template:Television chronology category header templates