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 ######...')
 
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

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.

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

Usage

{{Amusement rides closed year}}

No parameters needed.

See also