Templat:DisestcatCountry: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
kTidak ada ringkasan suntingan |
kTidak ada ringkasan suntingan |
||
Baris 1:
<includeonly><!--
# The first step is to check whether this uses the old-style year parameters, of the form {{DisestcatCountry| YYY | Y | country [ | sort key ] }}
# The new form is {{DisestcatCountry| country [ | sort key ] }}
# If it uses the old format, then issue an error message
#
# We check this by concatenating the first 2 parameters, and then checking that they start with digits.
-->{{#ifeq: {{#invoke:String|match|s={{{1}}}{{{2}}}|pattern=^%d+$|start=1|match=1|plain=false|nomatch=%%nomatch%%}}|%%nomatch%%<!--
-->|<!--
# NOT using the old-style parameters
# So invoke the new core
-->{{DisestcatCountry/core
| year = {{{year|{{Title year}}}}} <!-- allow year param for demonstration purposes -->
</includeonly><noinclude>▼
| country = {{{1|}}}
| sortkey = {{{2|}}}
{{Documentation}}▼
| decadeparent = {{{decadeparent|}}}
| nocat={{{nocat|}}}
</noinclude>▼
| min={{{min|}}}
| dab={{{dab|}}}
}}<!--
-->|<!--
# FOUND the old-style parameters
# So issue an error warning
-->{{error|ERROR! Unexpected numerical parameter in [[Template:DisestcatCountry]]<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]]}}<!--
# 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>
|