Difference between revisions of "Template:Amusement rides closed year"

From blackwiki
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

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.

The template creates navigation tables and puts the page into the correct parent categories

Usage

{{Amusement rides closed year}}

No parameters needed.

See also