Template:CoaInfobox

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Coat of arms of
Blazon
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:CoaInfobox/doc.

This is used in Template:COAInformation/old.

Usage

{{CoaInfobox
 |lang =
 |COA =
 |blaz =
 |ref =
}}

Template parameters

ParameterDescriptionDefaultStatus
langAdd the language code as parameter value (e.g.|lang=en).emptyrequired
COA
coa
What the image is the coat of arms ofemptyrequired
blaz
blazon
The blazonemptyrequired
ref
reference
Referencesemptyoptional
showblank-COAshow blank "COA" fieldShow an "unspecified" text in "COA" field instead of nothingemptyoptional
showblank-blazshow blank "blaz" fieldShow an "unspecified" text in "COA" field instead of nothingemptyoptional
showblank-refshow blank "ref" fieldShow an "unspecified" text in "COA" field instead of nothingemptyoptional
<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.


Wikipedia's help about TemplateDataCommons-specific information

This is used in [[Template:COAInformation/old]].

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
COA coa

What the image is the coat of arms of

Stringrequired
blaz blazon

The blazon

Stringrequired
lang

Add the language code as parameter value (e.g.<code>|lang=en</code>).

Stringrequired
ref reference

References

Stringoptional
show blank "COA" fieldshowblank-COA

Show an "unspecified" text in "COA" field instead of nothing

Unknownoptional
show blank "blaz" fieldshowblank-blaz

Show an "unspecified" text in "COA" field instead of nothing

Unknownoptional
show blank "ref" fieldshowblank-ref

Show an "unspecified" text in "COA" field instead of nothing

Unknownoptional

Additional information

The template is intended to be used in the following namespaces: no namespace specified

The template is intended to be used by the following user groups: no user group specified

Localization

català  čeština  dansk  Deutsch  English  Esperanto  español  euskara  suomi  français  galego  magyar  italiano  македонски  norsk bokmål  Plattdüütsch  Nederlands  norsk nynorsk  norsk  polski  português  русский  sicilianu  slovenčina  slovenščina  svenska

This template is localized through {{Autotranslate}}. The layout of the template can be found under Template:CoaInfobox/layout.

To add your language to the list of languages supported by this template, please copy the code of Template:CoaInfobox/en (or any other language version you prefer to translate) and replace the text strings in there (the form below can be used to create a translation, the English version is preloaded in the edit box). Please change the parameter lang from en (or whatever language you are translating) to the language code of your language.


The main template page doesn't autotranslate itself by default, because the text doesn't depend on interface language, only on text language.

Example of use / Exemple d'utilisation