Template:Country data Switzerland

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Template documentationpurge ]

Template:Country data Switzerland is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as {{flag}}, {{flagcountry}}, and others.

Standard parameters

Parameter nameValueMeaning
aliasSwitzerlandMain article name (Switzerland)
flag aliasFlag of Switzerland.svgImage name (File:Flag of Switzerland.svg, shown on right)

Flag variants

These variants cannot be used unless the line | variant = {{{variant|}}} is added to this template.

LabelFlag image (40px)Image name
civilCivil Ensign of Switzerland.svg

Redirect aliases

This template can also be used via an alias name (implemented as a redirect to this template):

Alias name{{flag|alias}} output{{flagcountry|alias}} output
CHE (view)Template:Country data CHETemplate:Country data CHE
SUI (view)Template:Country data SUITemplate:Country data SUI
CH (view)Template:Country data CHTemplate:Country data CH

See What links here for a full list of redirects.

Example usage

  • {{flag|Switzerland}}  Switzerland
  • {{flagicon3|Switzerland}}Switzerland

Using a flag variant

  • {{flag|Switzerland|civil}}  Switzerland
  • {{flagicon3|Switzerland|civil}}Switzerland

Using a redirect alias

Related templates

Please see the following related country_data templates:

Other information

Country_data templates are also available for each of the twenty-six cantons of Switzerland:

Template:Country data Aargau Template:Country data Aargau
Template:Country data Appenzell Ausserrhoden Template:Country data Appenzell Ausserrhoden
Template:Country data Appenzell Innerrhoden Template:Country data Appenzell Innerrhoden
Template:Country data Basel-Landschaft Template:Country data Basel-Landschaft
Template:Country data Basel-Stadt Template:Country data Basel-Stadt
Template:Country data Bern Template:Country data Bern
Template:Country data Fribourg Template:Country data Fribourg
Template:Country data Geneva Template:Country data Geneva
Template:Country data Glarus Template:Country data Glarus
Template:Country data Graubünden Template:Country data Graubünden
Template:Country data Jura Template:Country data Jura
Template:Country data Lucerne Template:Country data Lucerne
Template:Country data Neuchâtel Template:Country data Neuchâtel
Template:Country data Nidwalden Template:Country data Nidwalden
Template:Country data Obwalden Template:Country data Obwalden
Template:Country data Schaffhausen Template:Country data Schaffhausen
Template:Country data Schwyz Template:Country data Schwyz
Template:Country data Solothurn Template:Country data Solothurn
Template:Country data St. Gallen Template:Country data St. Gallen
Template:Country data Thurgau Template:Country data Thurgau
Template:Country data Ticino Template:Country data Ticino
Template:Country data Uri Template:Country data Uri
Template:Country data Valais Template:Country data Valais
Template:Country data Vaud Template:Country data Vaud
Template:Country data Zug Template:Country data Zug
Template:Country data Zürich Template:Country data Zürich

TemplateData

<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.

Discussion
There is an ongoing discussion about that matter. Feel invited to comment if you are experienced in either way, your time permits and if you like to share your opinion or to make a suggestion.


Wikipedia's help about TemplateDataCommons-specific information

This template should not be used directly. It is used indirectly by flag templates such as Template:Flag and Template:Flagicon. See Category:Flag template system for a full list of flag templates and Wikipedia:WikiProject Flag Template for further documentation.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
No parameters specified