Difference between revisions of "Template:Decade nationality television seasons category"
Jump to navigation
Jump to search
imported>BrownHairedGirl (tweaks) |
imported>BrownHairedGirl (err msgs) |
||
| Line 6: | Line 6: | ||
-->{{#ifeq: {{#invoke:String|match|s={{PAGENAME}}|pattern=^%d%d%d0s %a.+ television seasons$|start=1|match=1|plain=false|nomatch=%%nomatch%%}}|%%nomatch%%<!-- | -->{{#ifeq: {{#invoke:String|match|s={{PAGENAME}}|pattern=^%d%d%d0s %a.+ television seasons$|start=1|match=1|plain=false|nomatch=%%nomatch%%}}|%%nomatch%%<!-- | ||
-->|<!-- # Doesn't match | -->|<!-- # Doesn't match | ||
| − | -->{{Error|[[Template:Decade nationality television seasons]] is for use only on category pages whose title is of the form "YYY0s Fooish television seasons", where YYYY is a 4-digit decade and "Fooish" is a nationality (e.g. "Russian" or "Egyptian")}}<!-- | + | -->{{Error|Invalid category name.<br />[[Template:Decade nationality television seasons]] is for use only on category pages whose title is of the form "YYY0s Fooish television seasons", where YYYY is a 4-digit decade and "Fooish" is a nationality (e.g. "Russian" or "Egyptian")}}<!-- |
-->[[Category:{{TVChronoCatsErrCatName}}]]<!-- | -->[[Category:{{TVChronoCatsErrCatName}}]]<!-- | ||
-->|<!-- ############### We have a valid category ############################### | -->|<!-- ############### We have a valid category ############################### | ||
| Line 16: | Line 16: | ||
-->}}<!-- | -->}}<!-- | ||
-->|<!-- ############### Not a category ############################### | -->|<!-- ############### Not a category ############################### | ||
| − | -->{{Error|[[Template:Decade nationality television seasons]] is for use only on category pages whose title is of the form "YYY0s Fooish television seasons", where YYY0s is a 4-digit decade and "Fooish" is a nationality (e.g. "Russian" or "Egyptian")}}<!-- | + | -->{{Error|This is not a category page.<br >[[Template:Decade nationality television seasons]] is for use only on category pages whose title is of the form "YYY0s Fooish television seasons", where YYY0s is a 4-digit decade and "Fooish" is a nationality (e.g. "Russian" or "Egyptian")}}<!-- |
-->[[Category:{{TVChronoCatsErrCatName}}]]<!-- | -->[[Category:{{TVChronoCatsErrCatName}}]]<!-- | ||
-->}}</includeonly><noinclude> | -->}}</includeonly><noinclude> | ||
Latest revision as of 19:36, 8 March 2020
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
| 40x40px | This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
Creates a category of the form "YYY0s nationality television seasons", where YYY0s is a 4-digit decade and nationality is a valid nationality.
e.g.
- Category:1970s American television seasons
- Category:1980s Japanese television seasons
- Category:2010s Chinese television seasons
Usage
{{Decade nationality television seasons category}}
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)
Script error: No such module "Purge".
Errors include:
- The page is not in the category namespace
- The page's title does not take the form form "YYY0s nationality television seasons"
- 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 nationality television seasons 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. |