Difference between revisions of "Template:EstcatUSstateDecade"

From blackwiki
Jump to navigation Jump to search
imported>BrownHairedGirl
(make parameterless, after testing Template:EstcatUSstateDecade/sandbox)
imported>BrownHairedGirl
(cleanup)
Line 1: Line 1:
<includeonly>{{Category other
+
<includeonly><!--
 +
-->{{Category other
 
     |<!--
 
     |<!--
 
       # It is a category, so proceed
 
       # It is a category, so proceed
Line 7: Line 8:
 
               # Not a valid page
 
               # Not a valid page
 
           -->{{Error|ERROR. [[Template:EstcatUSstateDecade]] is for use only on pages with a title of the form "Category:YYY0s establishments in Foo", where YYY0s is a 4-digit decade.}}<!--
 
           -->{{Error|ERROR. [[Template:EstcatUSstateDecade]] is for use only on pages with a title of the form "Category:YYY0s establishments in Foo", where YYY0s is a 4-digit decade.}}<!--
           -->[[Category:Template EstcatUSstateDecade on invalid page]]
+
           -->[[Category:Template EstcatUSstateDecade on invalid page]]<!--
 
       -->|<!--
 
       -->|<!--
 
               # A valid page
 
               # A valid page
           -->{{EstcatUSstateDecade/core
+
           -->{{EstcatUSstateDecade/core<!--
                | decade={{#invoke:String|replace|source={{PAGENAME}}|pattern=^(%d%d%d0)s .+$|replace=%1|start=1|match=1|plain=false}}<!--
+
              -->| decade={{#invoke:String|replace|source={{PAGENAME}}|pattern=^(%d%d%d0)s .+$|replace=%1|start=1|match=1|plain=false}}<!--
              -->| state={{#invoke:String|replace|source={{PAGENAME}}|pattern=^%d%d%d0s establishments in |replace=|count=1|plain=false}}<!--
+
              -->| state={{#invoke:String|replace|source={{PAGENAME}}|pattern=^%d%d%d0s establishments in |replace=|count=1|plain=false}}<!--
           -->}}</includeonly>{{CatAutoTOC}}<includeonly><!--
+
           -->}}<!--
 
     -->}}<!--
 
     -->}}<!--
 
  -->|<!--
 
  -->|<!--
 
     # Not a category
 
     # Not a category
 
   -->|{{Error|message=ERROR.  [[Template:EstcatUSstateDecade]] is for use only on category pages}}<!--
 
   -->|{{Error|message=ERROR.  [[Template:EstcatUSstateDecade]] is for use only on category pages}}<!--
   -->[[Category:Template EstcatUSstateDecade on invalid page]]
+
   -->[[Category:Template EstcatUSstateDecade on invalid page]]<!--
[[Category:United States category header templates]]
+
-->}}<!--
<!--
+
--></includeonly><!--
-->}}</includeonly><noinclude>
+
# Note {{CatAutoTOC}} needs to be available whether or not this template page has been transcluded
<!-- Add categories and interwikis to the /doc subpage, please, not here! -->  
+
-->{{CatAutoTOC}}<!--
 +
--><noinclude><!-- Add categories and interwikis to the /doc subpage, please, not here! -->  
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 12:53, 16 March 2020