Difference between revisions of "Template:Decade in nationality television category"
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
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.
- Category:1950s in Japanese television
- Category:1980s in Brazilian television
- Category:2010s in Icelandic television
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:
- [[:Category:Template:TVChronoCatsErrCatName]] (population: Template:PAGESINCATEGORY)
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
The above documentation is transcluded from Template:Decade in nationality television category/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |