Template:EstcatUSstateDecade and Template:EstcatUSstateDecade/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
add comma for Category:Establishments in Washington, D.C., ... |
fix |
||
Line 1: | Line 1: | ||
<includeonly> |
<includeonly>{{Category other |
||
-->{{Category other |
|||
|<!-- |
|<!-- |
||
# It is a category, so proceed |
# It is a category, so proceed |
||
Line 8: | Line 7: | ||
# 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}}<!-- |
|||
-->| 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 |
|||
⚫ | |||
-->{{CatAutoTOC}}<!-- |
|||
⚫ | |||
{{Documentation}} |
{{Documentation}} |
||
</noinclude> |
</noinclude> |