1,900 bytes added
, 21:38, 8 February 2022
<includeonly><!--
# The first step is to check whether this uses the old-style year parameters, of the form {{EstcatCountry| YYY | Y | country [ | sort key ] }}
# The new form is {{EstcatCountry| country [ | sort key ] }}
# If it is then all parameters should be passed to the old template ... if not, then use the new core
#
# We check this by concatenating the first 2 parameters, and then checking that they are all digits.
-->{{#ifeq: {{#invoke:String|match|s={{{1}}}{{{2}}}|pattern=^%d%d%d%d?$|start=1|match=1|plain=false|nomatch=%%nomatch%%}}|%%nomatch%%<!--
-->|<!--
# NOT using the old-style parameters
# So invoke the new core
-->{{EstcatCountry/core
| year = {{{year|{{Title year}}}}} <!-- allow year param for demonstration purposes -->
| country = {{{1|}}}
| sortkey = {{{2|}}}
| decadeparent = {{{decadeparent|}}}
| nocat={{{nocat|}}}
| min={{{min|}}}
| dab={{{dab|}}}
}}<!--
# Tracking usage of new versions of the template
-->{{Category other|[[Category:Pages using new version of Template EstcatCountry]]}}<!--
-->|<!--
# FOUND the old-style parameters
# So issue an error warning
-->{{error|ERROR! Unexpected numerical parameter in [[Template:EstcatCountry]]<br /><!--
-->Note that from September 2019, year parameters are not needed, and not supported}}<!--
# Tracking usage of old versions of the template
-->{{Category other|[[Category:Errors reported by establishment and disestablishment templates]]}}<!--
-->}}</includeonly><!--
# Note {{CatAutoTOC}} needs to be available whether or not this template page has been transcluded
-->{{CatAutoTOC}}<noinclude>
{{Documentation}}<!--
Add categories and interwikis to the /doc subpage, please, not here!
--></noinclude>