Difference between revisions of "Template:EstcatUSstateCentury"

From blackwiki
Jump to navigation Jump to search
imported>BrownHairedGirl
(test 6 param)
imported>BrownHairedGirl
(fix test)
Line 36: Line 36:
 
<!-- testing -->{{#if:{{{8|}}}| [[Category:Template EstcatUSstateCentury with 8th parameter]]}}
 
<!-- testing -->{{#if:{{{8|}}}| [[Category:Template EstcatUSstateCentury with 8th parameter]]}}
 
   {{#ifeq: {{{6}}}<!--
 
   {{#ifeq: {{{6}}}<!--
   -->|{{#invoke:String|replace|source={{PAGENAME}}|pattern=^(%d%d)[snrt][tdh].century establishments in (.+)%$|replace=%1|start=1|match=1|plain=false}}<!--
+
   -->|{{#invoke:String|replace|source={{PAGENAME}}|pattern=^%d%d[snrt][tdh].century establishments in (.+)$|replace=%1|start=1|match=1|plain=false}}<!--
 
-->|[[Category:Template EstcatUSstateCentury with 6th parameter matching page title]]<!--
 
-->|[[Category:Template EstcatUSstateCentury with 6th parameter matching page title]]<!--
 
-->|[[Category:Template EstcatUSstateCentury with 6th parameter NOT matching page title]]<!--
 
-->|[[Category:Template EstcatUSstateCentury with 6th parameter NOT matching page title]]<!--

Revision as of 00:39, 2 March 2020

Template documentation[view] [edit] [history] [purge]

This template is a modified version of Template:EstcatCountryCentury.

Usage

{{EstcatUSstateCentury|19|20th|19th|21st|2nd|Wisconsin}} – for Category:20th-century establishments in Wisconsin
{{EstcatUSstateCentury|16|17th|16th|18th|2nd|New York||New York (state)}} - using 8th parameter to fit the pre-statehood name into the post-statehood hierarchy

See also