Difference between revisions of "Template:Amusement rides closed year"
Jump to navigation
Jump to search
blackwiki>BrownHairedGirl (←Created page with '<includeonly><!-- # The first step is to check whether this is a category page -->{{Category other<!-- -->|<!-- ############### It is a category ######...') |
blackwiki>BrownHairedGirl (fix pattern) |
||
| Line 5: | Line 5: | ||
# So check that it matches the required format: "Amusement rides introduced in YYYY" | # So check that it matches the required format: "Amusement rides introduced in YYYY" | ||
-->{{#ifeq: {{#expr:<!-- | -->{{#ifeq: {{#expr:<!-- | ||
| − | -->{{#invoke:String|find|{{PAGENAME}}|^Amusement rides closed in %d%d%d%d$|plain=false}}<!-- | + | -->{{#invoke:String|find|{{PAGENAME}}|^Amusement rides that closed in %d%d%d%d$|plain=false}}<!-- |
-->}}<!-- | -->}}<!-- | ||
-->|0<!-- | -->|0<!-- | ||
-->|<!-- # Doesn't match | -->|<!-- # Doesn't match | ||
| − | -->{{Error|Invalid page name.<br />[[Template:Amusement rides closed year]] is for use only on category pages whose title is of the form {{nowrap|"Amusement rides closed in YYYY"}}, where YYYY is a 4-digit year (e.g. "1926)".}}<!-- | + | -->{{Error|Invalid page name.<br />[[Template:Amusement rides closed year]] is for use only on category pages whose title is of the form {{nowrap|"Amusement rides that closed in YYYY"}}, where YYYY is a 4-digit year (e.g. "1926)".}}<!-- |
-->[[Category:Errors reported by other category header templates]]<!-- | -->[[Category:Errors reported by other category header templates]]<!-- | ||
-->|<!-- | -->|<!-- | ||
| Line 28: | Line 28: | ||
-->}}<!-- | -->}}<!-- | ||
-->|<!-- ############### Not a category ############################### | -->|<!-- ############### Not a category ############################### | ||
| − | -->{{Error|This page is not in the [[Wikipedia:Namespace|category namespace]].<br />[[Template:Amusement rides closed year]] is for use only on category pages whose title is of the form {{nowrap|"Amusement rides closed in YYYY"}}, where YYYY is a 4-digit year (e.g. "1926)".}}<!-- | + | -->{{Error|This page is not in the [[Wikipedia:Namespace|category namespace]].<br />[[Template:Amusement rides closed year]] is for use only on category pages whose title is of the form {{nowrap|"Amusement rides that closed in YYYY"}}, where YYYY is a 4-digit year (e.g. "1926)".}}<!-- |
-->[[Category:Errors reported by other category header templates]]<!-- | -->[[Category:Errors reported by other category header templates]]<!-- | ||
-->}}</includeonly><!-- | -->}}</includeonly><!-- | ||
Revision as of 13:40, 11 August 2020
Amusement rides closed year is used to create categories of the form "Amusement rides closed year", where YYYY is a 4-digit year.
e.g.
It is not for use on other types of categories, e.g.
- Category:Amusement rides introduced in 2007

- Category:Amusement park attractions introduced in 1994

- Category:Amusement park attractions that closed in 1993

The template creates navigation tables and puts the page into the correct parent categories
Usage
{{Amusement rides closed year}}
No parameters needed.
See also
- Template:Amusement park attractions introduced year
- Template:Amusement park attractions closed year
- Template:Amusement rides introduced year
- Template:Amusement rides closed year
- Template:Roller coasters introduced year
| The above documentation is transcluded from Template:Amusement rides closed year/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. |