Difference between revisions of "Template:EstcatUSstate"

From blackwiki
Jump to navigation Jump to search
imported>BrownHairedGirl
imported>BrownHairedGirl
(cleanup)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{Category other
+
<includeonly><!--
     |<!--
+
-->{{Category other<!--
 +
     -->|<!--
 
       # It is a category, so proceed
 
       # It is a category, so proceed
 
       # First check that this page's title is of the format "YYYY establishments in Foo"
 
       # First check that this page's title is of the format "YYYY establishments in Foo"
Line 7: Line 8:
 
               # Not a valid page
 
               # Not a valid page
 
           -->{{Error|ERROR. [[Template:EstcatUSstate]] is for use only on pages with a title of the form "Category:YYYY establishments in Foo", where YYYY is a 4-digit year.}}<!--
 
           -->{{Error|ERROR. [[Template:EstcatUSstate]] is for use only on pages with a title of the form "Category:YYYY establishments in Foo", where YYYY is a 4-digit year.}}<!--
           -->[[Category:Template EstcatUSstate on invalid page]]
+
           -->[[Category:Template EstcatUSstate on invalid page]]<!--
 
       -->|<!--
 
       -->|<!--
 
               # A valid page
 
               # A valid page
Line 13: Line 14:
 
                 | year={{#invoke:String|match|s={{PAGENAME}}|pattern=^%d%d%d%d|start=1|match=1|plain=false}}<!--
 
                 | year={{#invoke:String|match|s={{PAGENAME}}|pattern=^%d%d%d%d|start=1|match=1|plain=false}}<!--
 
               -->| state={{#invoke:String|replace|source={{PAGENAME}}|pattern=^%d%d%d%d establishments in |replace=|count=1|plain=false}}<!--
 
               -->| state={{#invoke:String|replace|source={{PAGENAME}}|pattern=^%d%d%d%d establishments in |replace=|count=1|plain=false}}<!--
           -->}}</includeonly>{{CatAutoTOC}}<includeonly><!--
+
           -->}}<!--
 
     -->}}<!--
 
     -->}}<!--
 
  -->|<!--
 
  -->|<!--
 
     # Not a category
 
     # Not a category
 
   -->|{{Error|message=ERROR.  [[Template:EstcatUSstate]] is for use only on category pages}}<!--
 
   -->|{{Error|message=ERROR.  [[Template:EstcatUSstate]] is for use only on category pages}}<!--
   -->[[Category:Template EstcatUSstate on invalid page]]
+
   -->[[Category:Template EstcatUSstate on invalid page]]<!--
[[Category:United States category header templates]]
+
-->}}</includeonly><!--
<!--
+
# Note {{CatAutoTOC}} needs to be available whether or not this template page has been transcluded
-->}}</includeonly><noinclude>
+
-->{{CatAutoTOC}}<!--
<!-- Add categories and interwikis to the /doc subpage, please, not here! -->  
+
--><noinclude><!--
{{Documentation}}
+
## Add categories and interwikis to the /doc subpage, please, not here!
 +
-->{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 12:49, 16 March 2020