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 ######...') |
m (5 revisions imported) |
||
| (4 intermediate revisions by one other user not shown) | |||
| 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]]<!-- | ||
-->|<!-- | -->|<!-- | ||
#### BEGIN the section that creates the category #### | #### BEGIN the section that creates the category #### | ||
| + | -->{{Portal<!-- | ||
| + | -->|Engineering<!-- | ||
| + | -->|{{FindYDCportal|{{Title year}}}}<!-- | ||
| + | -->}}<!-- | ||
-->This category is for '''[[amusement ride]]s''' which were '''closed''' in the '''year [[{{Title year}}]]'''. | -->This category is for '''[[amusement ride]]s''' which were '''closed''' in the '''year [[{{Title year}}]]'''. | ||
{{Navseasoncats}} | {{Navseasoncats}} | ||
| Line 19: | Line 23: | ||
[[Category:Amusement rides by closing year|{{Title year}}]] | [[Category:Amusement rides by closing year|{{Title year}}]] | ||
| − | [[Category:Amusement rides closed in the {{Century name from title year}}|{{Title year}}]] | + | [[Category:Amusement rides that closed in the {{Century name from title year}}|{{Title year}}]] |
| − | {{#ifexist: Category:Amusement park attractions closed in {{Title year}}<!-- | + | {{#ifexist: Category:Amusement park attractions that closed in {{Title year}}<!-- |
| − | -->|[[Category:Amusement park attractions closed in {{Title year}}{{!}} Rides]]<!-- | + | -->|[[Category:Amusement park attractions that closed in {{Title year}}{{!}} Rides]]<!-- |
-->}} | -->}} | ||
[[Category:Buildings and structures demolished in {{Title year}}]]<!-- | [[Category:Buildings and structures demolished in {{Title year}}]]<!-- | ||
| Line 28: | Line 32: | ||
-->}}<!-- | -->}}<!-- | ||
-->|<!-- ############### 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><!-- | ||
Latest revision as of 04:24, 21 October 2020
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
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 File:Red x.svg
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. |