Difference between revisions of "Template:EstcatUSstateCentury"
Jump to navigation
Jump to search
imported>BrownHairedGirl (<!-- testing -->{{#if:{{{8|}}}| Category:Template EstcatUSstateCentury with 8th parameter}}) |
imported>BrownHairedGirl (test 6 param) |
||
| Line 34: | Line 34: | ||
{{#if:{{{5}}}| [[Category:{{{5}}}-millennium establishments in {{{8|{{{6}}}}}}]] | {{#if:{{{5}}}| [[Category:{{{5}}}-millennium establishments in {{{8|{{{6}}}}}}]] | ||
|}} | |}} | ||
| − | |||
<!-- testing -->{{#if:{{{8|}}}| [[Category:Template EstcatUSstateCentury with 8th parameter]]}} | <!-- testing -->{{#if:{{{8|}}}| [[Category:Template EstcatUSstateCentury with 8th parameter]]}} | ||
| + | {{#ifeq: {{{6}}}<!-- | ||
| + | -->|{{#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 NOT matching page title]]<!-- | ||
| + | -->}} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 00:34, 2 March 2020
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
| The above documentation is transcluded from Template:EstcatUSstateCentury/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |