<?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%3AYear_in_country_category</id>
	<title>Template:Year in country category - 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%3AYear_in_country_category"/>
	<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:Year_in_country_category&amp;action=history"/>
	<updated>2026-04-04T10:02:14Z</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:Year_in_country_category&amp;diff=39789&amp;oldid=prev</id>
		<title>Wikipedia&gt;BrownHairedGirl: if no prefix parameter is supplied, use Template:CountryPrefixThe</title>
		<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:Year_in_country_category&amp;diff=39789&amp;oldid=prev"/>
		<updated>2020-03-21T03:08:28Z</updated>

		<summary type="html">&lt;p&gt;if no prefix parameter is supplied, use &lt;a href=&quot;/wiki/Template:CountryPrefixThe&quot; title=&quot;Template:CountryPrefixThe&quot;&gt;Template:CountryPrefixThe&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;{{Distinguish|Template:Year by country category}}&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;&amp;lt;!--&lt;br /&gt;
  # The first step is to check whether this uses the old-style year parameters, of the form {{Year in country category|1|9|7|3|Ruritania|Europe|Asia|prefix}}&lt;br /&gt;
  # The new form is {{Year in country category|Ruritania|Europe|Asia|prefix}}&lt;br /&gt;
  # If it is then all parameters should be passed to the old template ... if not, then use the new core&lt;br /&gt;
  #&lt;br /&gt;
  # We check this by concatenating the first 4 parameters, and then checking that they are all digits.&lt;br /&gt;
--&amp;gt;{{#ifeq: {{#invoke:String|match|s={{{1}}}{{{2|}}}{{{3|}}}{{{4|}}}|pattern=^%d%d%d%d?$|start=1|match=1|plain=false|nomatch=%%nomatch%%}}|%%nomatch%%&amp;lt;!--&lt;br /&gt;
    --&amp;gt;|&amp;lt;!--&lt;br /&gt;
        # NOT using the old-style parameters, so proceed&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        # Track use of an unnamed 4th and 5th parameters, and new prefix parameter. &lt;br /&gt;
        # Some of these can later be moved to inner core &lt;br /&gt;
&lt;br /&gt;
        --&amp;gt;{{Category other|&amp;lt;!--&lt;br /&gt;
           # Note:there are lots of tracking categories here.  Most of them are temporary,&lt;br /&gt;
           # while User:BrownHairedGirl is developing the template&lt;br /&gt;
&lt;br /&gt;
           --&amp;gt;{{#if: {{{4|}}}|[[Category:Template Year in country category with unnamed 4th parameter]]}}&amp;lt;!--&lt;br /&gt;
           --&amp;gt;{{#if: {{{5|}}}|[[Category:Template Year in country category with unnamed 5th parameter]]}}&amp;lt;!--&lt;br /&gt;
           --&amp;gt;{{#if: {{{prefix|}}}|[[Category:Template Year in country category with prefix parameter]]}}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
           --&amp;gt;{{#if: {{CountryPrefixThe|{{{1|}}}|onlythe=yes}}&amp;lt;!--&lt;br /&gt;
               --&amp;gt;|&amp;lt;!--&lt;br /&gt;
                   # a prefix is available&lt;br /&gt;
                   --&amp;gt;[[Category:Template Year in country category with prefix available though CountryPrefixThe]]&amp;lt;!--&lt;br /&gt;
                   # Now see if it is the same prefix as is supplied by parameters&lt;br /&gt;
                   --&amp;gt;{{#ifeq: {{CountryPrefixThe|{{{1|}}}|onlythe=yes}} | {{{prefix|{{{4|}}}}}}&amp;lt;!--&lt;br /&gt;
                       --&amp;gt;|[[Category:Template Year in country category with prefix parameter matching that in CountryPrefixThe]]&amp;lt;!--&lt;br /&gt;
                   --&amp;gt;}}&amp;lt;!--&lt;br /&gt;
            --&amp;gt;}}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
           --&amp;gt;{{#if: {{{prefix|{{{4|}}}}}}&amp;lt;!--&lt;br /&gt;
               --&amp;gt;|&amp;lt;!--&lt;br /&gt;
                   # a prefix is available&lt;br /&gt;
                   --&amp;gt;[[Category:Template Year in country category with prefix available though CountryPrefixThe]]&amp;lt;!--&lt;br /&gt;
                   # Now see if it is the same prefix as is supplied by parameters&lt;br /&gt;
                   --&amp;gt;{{#ifeq: {{CountryPrefixThe|{{{1|}}}|onlythe=yes}} | {{{prefix|{{{4|}}}}}}&amp;lt;!--&lt;br /&gt;
                       --&amp;gt;|&amp;lt;!-- do nothing if true.  This test is to track the no matches&lt;br /&gt;
                       --&amp;gt;|[[Category:Template Year in country category with prefix parameter NOT matching that in CountryPrefixThe]]&amp;lt;!--&lt;br /&gt;
                   --&amp;gt;}}&amp;lt;!--&lt;br /&gt;
            --&amp;gt;}}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
        --&amp;gt;}}&amp;lt;!-- # End of Category other&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        --&amp;gt;{{Year in country category/outer core&amp;lt;!--&lt;br /&gt;
            --&amp;gt;|yearparam={{{year|}}} &amp;lt;!-- pass it through to the outer core, which decides whether to use it&lt;br /&gt;
            --&amp;gt;|yearparamcheck=&amp;lt;!--&lt;br /&gt;
                --&amp;gt;{{#ifeq: {{#invoke:String|find|{{{year|}}}|^%d%d%d%d?$|1|false}}|0&amp;lt;!--&lt;br /&gt;
                    --&amp;gt;|FAIL&amp;lt;!--&lt;br /&gt;
                    --&amp;gt;|OK&amp;lt;!--&lt;br /&gt;
                --&amp;gt;}}&amp;lt;!--&lt;br /&gt;
            --&amp;gt;|calcyear={{#invoke:String|replace|{{PAGENAME}}|^(%d%d%d%d?).+$|%1|1|false}}&amp;lt;!--&lt;br /&gt;
            --&amp;gt;|country = {{{1}}}&amp;lt;!--&lt;br /&gt;
            --&amp;gt;|countrydab = {{{countrydab|}}}&amp;lt;!--&lt;br /&gt;
            --&amp;gt;|prefix = {{{prefix|{{{4|{{CountryPrefixThe|{{{1|}}}|onlythe=yes}}}}}}}}&amp;lt;!--&lt;br /&gt;
            --&amp;gt;|continent1 = {{{2|}}}&amp;lt;!--&lt;br /&gt;
            --&amp;gt;|continent2 = {{{3|}}}&amp;lt;!--&lt;br /&gt;
            --&amp;gt;|newname= {{{newname|}}}&amp;lt;!--&lt;br /&gt;
            --&amp;gt;|newnamestart={{{newnamestart|}}}&amp;lt;!--&lt;br /&gt;
            --&amp;gt;|newnamestartcheck=&amp;lt;!--&lt;br /&gt;
                --&amp;gt;{{#ifeq: {{#invoke:String|find|{{{newnamestart|}}}|^%d%d%d%d?$|1|false}}|0&amp;lt;!--&lt;br /&gt;
                    --&amp;gt;|FAIL&amp;lt;!--&lt;br /&gt;
                    --&amp;gt;|OK&amp;lt;!--&lt;br /&gt;
                --&amp;gt;}}&amp;lt;!--&lt;br /&gt;
            --&amp;gt;|nocat={{yesno-no|{{{nocat|}}}}}&amp;lt;!--&lt;br /&gt;
            --&amp;gt;|min={{{min|}}}&amp;lt;!--&lt;br /&gt;
            --&amp;gt;|nocountrycentury={{yesno-no|{{{nocountrycentury|}}}}}&amp;lt;!--&lt;br /&gt;
        --&amp;gt;}}&amp;lt;!--&lt;br /&gt;
    --&amp;gt;|&amp;lt;!--&lt;br /&gt;
        # FOUND the old-style parameters&lt;br /&gt;
        # Treat this as an error&lt;br /&gt;
         --&amp;gt;{{Error|ERROR!&amp;lt;br /&amp;gt;[[Template:Year in country category]] no longer supports year parameters.  The year is derived automatically from the page title.}}&amp;lt;!--&lt;br /&gt;
         --&amp;gt;[[Category:Errors reported by other category header templates]]&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;
{{Documentation}}&amp;lt;!--&lt;br /&gt;
Add categories and interwikis to the /doc subpage, please, not here!&lt;br /&gt;
--&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;BrownHairedGirl</name></author>
	</entry>
</feed>