<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3A%28Dis%29estCatUSstateCentury</id>
	<title>Template:(Dis)estCatUSstateCentury - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3A%28Dis%29estCatUSstateCentury"/>
	<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:(Dis)estCatUSstateCentury&amp;action=history"/>
	<updated>2026-04-12T17:30:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://moasspedia.org/w/index.php?title=Template:(Dis)estCatUSstateCentury&amp;diff=3906&amp;oldid=prev</id>
		<title>Wikipedia&gt;MusikBot II: Protected &quot;Template:(Dis)estCatUSstateCentury&quot;: High-risk template or module: 330 transclusions (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:(Dis)estCatUSstateCentury&amp;diff=3906&amp;oldid=prev"/>
		<updated>2021-10-05T19:13:56Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/wiki/Template:(Dis)estCatUSstateCentury&quot; title=&quot;Template:(Dis)estCatUSstateCentury&quot;&gt;Template:(Dis)estCatUSstateCentury&lt;/a&gt;&amp;quot;: &lt;a href=&quot;https://en.wikipedia.org/wiki/High-risk_templates&quot; class=&quot;extiw&quot; title=&quot;wikipedia:High-risk templates&quot;&gt;High-risk template or module&lt;/a&gt;: 330 transclusions (&lt;a href=&quot;/w/index.php?title=User:MusikBot_II/TemplateProtector&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User:MusikBot II/TemplateProtector (page does not exist)&quot;&gt;more info&lt;/a&gt;) ([Edit=Require autoconfirmed or confirmed access] (indefinite))&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;includeonly&amp;gt;{{Category other&lt;br /&gt;
    |&amp;lt;!-- ############a## It is a category ###############################&lt;br /&gt;
          # So check that it matches the required format:  &amp;quot;YYYY (dis)establishments in Foo&amp;quot;&lt;br /&gt;
          # No regexes, so check separately for &amp;quot;establishments&amp;quot; and &amp;quot;disestablishments&amp;quot;&lt;br /&gt;
          # In each case, the find function returns 0 for a nomatch, and 1 for a match,&lt;br /&gt;
          # so we add the two together and take a total of 0 as an error&lt;br /&gt;
        --&amp;gt;{{#ifeq: {{#expr: {{#invoke:String|find|{{PAGENAME}}|^%d%d...century establishments in %a.+$|plain=false}} + &amp;lt;!--&lt;br /&gt;
                   --&amp;gt;{{#invoke:String|find|{{PAGENAME}}|^%d%d...century disestablishments in %a.+$|plain=false}} }}&amp;lt;!--&lt;br /&gt;
            --&amp;gt;|0|&amp;lt;!--&lt;br /&gt;
               # Not a valid page&lt;br /&gt;
               --&amp;gt;{{Error|ERROR. [[Template:(Dis)estCatUSstateCentury]] is for use only on pages with a title of the form &amp;quot;Category:YYth-century establishments in Foo&amp;quot; or &amp;quot;Category:YYth-century disestablishments in Foo&amp;quot;, where YY is a 2-digit century and &amp;quot;Foo&amp;quot; is a state of the United States.}}&amp;lt;!--&lt;br /&gt;
               --&amp;gt;[[Category:Template (Dis)estCatUSstateCentury on invalid page]]&amp;lt;!--&lt;br /&gt;
            --&amp;gt;|&amp;lt;!--&lt;br /&gt;
              # A valid page&lt;br /&gt;
              --&amp;gt;{{(Dis)estCatUSstateCentury/core&amp;lt;!--&lt;br /&gt;
                  --&amp;gt;|centurynum={{#invoke:String|replace|source={{PAGENAME}}|pattern=^(%d%d)[snrt][tdh].century d?i?s?establishments in %a.+$|replace=%1|start=1|match=1|plain=false}}&amp;lt;!--&lt;br /&gt;
                  --&amp;gt;|MC={{#expr: {{#invoke:String|replace|source={{PAGENAME}}|pattern=^(%d%d)[snrt][tdh].century d?i?s?establishments in %a.+$|replace=%1|start=1|match=1|plain=false}} - 1}}&amp;lt;!--&lt;br /&gt;
                  --&amp;gt;|state={{#invoke:String|replace|source={{PAGENAME}}|pattern=^%d%d[snrt][tdh].century d?i?s?establishments in (%a.+)$|replace=%1|count=1|plain=false}}&amp;lt;!--&lt;br /&gt;
                  --&amp;gt;|type={{#invoke:String|replace|source={{PAGENAME}}|pattern=^%d%d[snrt][tdh].century (d?i?s?establishments) in %a.+$|replace=%1|count=1|plain=false}}&amp;lt;!--&lt;br /&gt;
                  --&amp;gt;|comma={{{comma|}}}&amp;lt;!--&lt;br /&gt;
              --&amp;gt;}}&amp;lt;!--&lt;br /&gt;
        --&amp;gt;}}&amp;lt;!--&lt;br /&gt;
 --&amp;gt;|&amp;lt;!--&lt;br /&gt;
     # Not a category&lt;br /&gt;
  --&amp;gt;{{Error|message=ERROR.  [[Template:(Dis)estCatUSstateCentury]] is for use only on category pages}}&amp;lt;!--&lt;br /&gt;
  --&amp;gt;[[Category:Template (Dis)estCatUSstateCentury on invalid page]]&amp;lt;!--&lt;br /&gt;
--&amp;gt;}}&amp;lt;/includeonly&amp;gt;&amp;lt;!--&lt;br /&gt;
 # Note {{CatAutoTOC}} needs to be available whether or not this template page has been transcluded&lt;br /&gt;
--&amp;gt;{{CatAutoTOC}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&amp;lt;!-- Add categories and interwikis to the /doc subpage, please, not here! --&amp;gt; &lt;br /&gt;
{{Documentation}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;MusikBot II</name></author>
	</entry>
</feed>