Changes

Jump to navigation Jump to search
Imported page
<!--
;Diagnostics for [[Template:Year in country category/outer core]]
* year = {{{year|}}}
* calcyear = {{{calcyear|}}}
* yearparam = {{{yearparam|}}}
* yearparamcheck = {{{yearparamcheck|}}}
* year = {{{year|}}}
* country = {{{country|}}}
* prefix = {{{prefix|}}}
* continent = {{{continent|}}}
* continent2 = {{{continent2|}}}
* continent3 = {{{continent3|}}}
* continent4 = {{{continent4|}}}
* newname = {{{newname|}}}
* newnamestart = {{{newnamestart|}}}
* newnamestartcheck = {{{newnamestartcheck|}}}
* nocountrycentury = {{{nocountrycentury|}}}
* min = {{{min|}}}
* max = {{{max|}}}
* nocat = {{{nocat|}}}
----
--><includeonly><!--
###################################################################################
# The outer core just processes the results of a few sanity checks on parameters. #
# It adds tracking categories as needed, then calls the inner core. #
###################################################################################



# END tracking categories


# Track usage of the {{{year}}} parameter
-->{{#ifeq: {{{yearparamcheck|}}}|OK<!--
-->|[[Category:Template Year in country category with year parameter]]<!--
-->}}<!--


# Track usage of the {{{nocat}}} parameter
-->{{#ifeq: {{{nocat|}}}|yes<!--
-->|[[Category:Template Year in country category with nocat]]<!--
-->}}<!--


# Track usage of the {{{nocountrycentury}}} parameter
-->{{#ifeq: {{{nocountrycentury|}}}|yes<!--
-->|[[Category:Template Year in country category with nocountrycentury]]<!--
-->}}<!--

# Tracking usage of the {{{newname}}} parameter is a bit more complex
# the {{{newname param is used only if {{{newnamestart}}} exists, and is a valid 3- or 4-digit year
# If one is supplied without the other, generate an error message, and track the error
-->{{#if: {{{newname|}}}<!--
#
-->|{{#ifeq: {{{newnamestartcheck|}}}|OK<!--
-->|<!--
# We have {{{newname}}}, and {{newnamestart|}}} is OK, so we'e using them
-->[[Category:Template Year in country category with newname parameter]]<!--
-->|<!--
# We have {{{newname}}} ... but {{newnamestart|}}} is bad or missing
-->{{Error|[[Template:Year in county category]] has been used with the "newname" <!--
-->parameter, to indicate that the county later adopted a new name.<br /><!--
-->However the accompanying "newnamestart" parameter is either missing or <!--
-->is not a valid 3-or 4-digit year.<br /><!--
-->The "newname" parameter will therefore be ignored.}}<!--
-->[[Category:Errors reported by other category header templates]]<!--
-->}}<!--
-->|<!--
# No newname
-->{{#if: {{{newnamestart|}}}<!--
-->|<!--
# We have {{{newnamestart}}} ... but {{newname|}}} is missing
-->{{Error|[[Template:Year in county category]] has been used with the "newnamestart" <!--
-->parameter, to indicate the year when the county later adopted a new name.<br /><!--
-->However the accompanying "newname" parameter missing, so the template doesn't <!--
-->know what the newname is.<br /><!--
-->The "newnamestart" parameter will therefore be ignored.}}<!--
-->[[Category:Errors reported by other category header templates]]<!--
-->|<!--
# We have neither {{{newname}}} nor {{newnamestart|}}}, which is fine
# Most uses have neither.
# So we do nothing here
-->}}<!--
-->}}<!--
# END tracking categories



# Invoke the inner core
-->{{Year in country category/inner core<!--
-->|year=<!--
-->{{#ifeq: {{{yearparamcheck|}}}|OK<!--
-->|{{{yearparam|}}}<!-- # We have {{{yearparam}}}, and it's OK, so use it
-->|{{{calcyear|}}}<!-- Normal usage: not using {{{yearparam}}}
-->}}<!--
-->|country = {{{country|}}}<!--
-->|prefix = {{{prefix|}}}<!--
-->|countrydab = {{{countrydab|}}}<!--
-->|continent1 = {{{continent1|}}}<!--
-->|continent2 = {{{continent2|}}}<!--
-->|continent3 = {{{continent3|}}}<!--
-->|continent4 = {{{continent4|}}}<!--
-->|newname=<!--
# Use newame only if newnamestartcheck is OK
-->{{#ifeq: {{{newnamestartcheck|}}}|OK<!--
-->|{{{newname|}}}<!--
-->}}<!--
-->|newnamestart=<!--
# Use newnamestart only if newnamestartcheck is OK
# Otherwise set it to silly negative number, so that it fails comparison tests
-->{{#ifeq: {{{newnamestartcheck|}}}|OK<!--
-->|{{{newnamestart|}}}<!--
-->|-99999<!--
-->}}<!--
-->|nocat={{{nocat|}}}<!--
-->|min={{{min|}}}<!--
-->|max={{{max|}}}<!--
-->|nocountrycentury={{{nocountrycentury|}}}<!--
-->}}<!--
--></includeonly><!--
--><noinclude><!--
-->{{Documentation|content=This is a sub-template of [[Template:{{ROOTPAGENAME}}]]}}<!--
Add categories and interwikis to the /doc subpage, please, not here!
--></noinclude>
Bureaucrats, Check users, editor, emailconfirmed, Interface administrators, reviewer, smwadministrator, smwcurator, smweditor, Suppressors, Administrators
12,798

edits

Navigation menu