This page is protected against editing.

Template:COAInformation

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Coat of arms
InfoField
blazon of
Element of coat of arms
InfoField
elements
Ecclesiastical coat of arms
InfoField
ecclesial
Blazon
InfoField
blazon
Blazon reference
InfoField
reference
Tincture (GN)
InfoField
argentargent-dorazurecélestecarnationcendréegulespurpuresabletennévert
Date date
Object history additional description, provenience
Artist
InfoField
artist
Source source
Permission
(Reusing this file)
license for the artwork
Other versions other versions
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:COAInformation/doc.

An Infobox template customized for coats of arms

The template automatically sets the following categories: several; note Module:IgenCoa#Table_of_the_predefinitions among others[clarification needed]

Usage

{{COAInformation
 |blazon of   =
 |blazon      =
 |references  =
 |tincture    =
 |description =
 |date        =
 |artist      =
 |image       =
 |source      =
 |permission  =
 |versions    =
 |fields      =
}}

The InformationToCOA gadget (utility script) eases replacing {{Information}} with {{COAInformation}}. To enable it, you only need to edit your common.js adding the following line:

importScript('MediaWiki:Gadget-InformationToCOA.js');

After the script processing the description is displayed in edit mode. Corrections are now possible.[clarification needed]
For SVG files, the simpleSVGcheck.js script should now be performed: first remove |image= lines (if any from previous validations)[clarification needed], then click the icon above to perform the validity check combined with the formatting cleanup.

Template parameters

ParameterDescriptionDefaultStatus
blazon of
Blazon of
blazon_of
Blazon_of
blazon ofCity, territory or family name which this coat of arms identifies (and that the blazon describes). Please use an appropriate language template ({{En}} (for English), {{Fr}} (for French), etc) to indicate the language of the text. You may also use {{Coa-desc}}.emptyoptional
element
Element
ecclesial
Ecclesial
element

ecclesial[clarification needed]
Element of a coat of arms. Files on Commons may contain single reusable elements which can be used to complete a CoA. This field is used to describe such an element.
Ecclesial coat of arms (example) [clarification needed]
emptyoptional
blazon
Blazon
blazonBlazon or literal description of the coat of arms. Use language templates like {{En}} or {{Fr}} to mark language of the text.emptyoptional
references
References
referencesBook, web site or other source of the blazon, the description of the coat of arms. Use language templates like {{En}} or {{Fr}} to mark language of the text.emptyoptional
tincture
Tincture
TinctureTincture or precise heraldic color specification. Up to fourteen colors are allowed, which have to be separated by slashes /. The standard 12 colors are: {{ Tincturea/A/o/b/B/c/C/g/p/s/t/v }}
argentargent-dorazurecélestecarnationcendréegulespurpuresabletennévert
You can use full names as written above or one-letter-abbreviations: a (argent), A (argent-d), o (or), b (azure), B (céleste), c (carnation), C (cendrée), g (gules), n (naranja), p (purpure), s (sable), t (tawny), v (vert) and x (transparent). See {{Tincture}} for more information.
maintenance
category
optional
tincture-ss
Tincture-ss
ss
other tincture palettese.g. BY, BW, BB, AG, NW ... see {{Tincture}}
to show the different other color palettes, with the same notation as above.

Examples: tincture = a/A/o/b/B/c/C/g/n/p/s/t/v | ss = BY
0000or0ls tincture = a/A/o/b/B/c/C/g/n/p/s/t/v/ss=BY
0000or0ls tincture = a/A/o/b/B/c/C/g/n/p/s/t/v/BY

0000or0ls tincture = a/A/o/BY/b/B/c/C/g/n/p/s/t/v
maintenance categoryoptional
description
Description
descriptionProvenience; history; additional descriptionemptyoptional
date
Date
dateDate the first file was created. It may also provide the date of the original coat of arms design or approval, if this is known.[clarification needed] Use always the ISO format (yyyy-mm-dd)emptyoptional
artist
Artist
author
Author
artistName of the artist who drew the graphics, with a link if possible. Use {{U|Example}} or [[User:Example|John Doe]] if applicable, and may also provide the name of the original designer of the coat of arms if this information is available. Many people also identify here the projects they are part of, like {{Projet Blasons}} or {{THV}}.[clarification needed]emptyoptional
image
Image
image
generation
Can be used for simple decriptions about the generation of that image. See Image generation below.
Can also be used like fields to pass the more complicated {{Igen|+|....}}.
emptyoptional
source
Source
sourceSource of the COA, e.g. {{Own}}, {{Own based}}, {{Own using}}. If this is an SVG file build from other files you may use [also] {{Attrib}} or {{Derived from}}.emptyrequired
permission
Permission
permissionsee {{Information}}'s permission field. In most cases this is a new drawing of Coat of Arms and it only needs license from the artist who drew the graphics.emptyoptional
versions
Versions
other versionsother versions of the file. You should use
<gallery></gallery> tags or {{#tag:gallery|image}} or {{G}}
or {{Derivative versions}}
emptyoptional
fields
Fields
other fieldsuse it for e.g. {{ Igen+s = -COAInformation }} , with all the many other parameters;
instead of other fields={{Igen.. it can as well be written image={{Igen...[clarification needed]
See {{Image generation}} for more information about its parametrizings.
emptyoptional
wikidatawikidataa wikidata ID can be passedemptyoptional
wikidata_catbooleanset "false" or "no" or "0" to avoid wikidata-related categorizing;
set "true" or "yes" or "1" to enable wikidata-related categorizing.[clarification needed]
falseoptional
<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

Infobox template customized for coats of arms

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
artistartist Artist author Author

Stringoptional
blazonblazon Blazon

Blazon or literal description of the coat of arms

Stringoptional
blazon ofblazon of Blazon of blazon_of Blazon_of

City or family name that coat of arms identifies and blazon describes

Stringoptional
datedate Date

Date the first file was created. It may also provide the date of the original coat of arms design or approval, if this is known.<sup>[''[[:en:Wikipedia:Please_clarify|clarification needed]]'']</sup> Use always the ISO format (<var>yyyy</var>-<var>mm</var>-<var>dd</var>)

Dateoptional
descriptiondescription Description

Stringoptional
element<br><br>ecclesial<sup>[''[[:en:Wikipedia:Please_clarify|clarification needed]]'']</sup>element Element ecclesial Ecclesial

Stringoptional
other fieldsfields Fields

Stringoptional
image<br>generationimage Image

Can be used for <u>simple</u> decriptions about the generation of that image. See [[#Image generation|Image generation]] below.<br>Can also be used like <code>fields</code> to pass the more complicated <code>{{Igen|+|....}}</code>.

Unknownoptional
permissionpermission Permission

Stringoptional
referencesreferences References

Book, web site or other source of the blazon

Stringoptional
sourcesource Source

Stringrequired
Tincturetincture Tincture

Default
[[:Category:Tinctures (Undefined)|maintenance<br>category]]
Stringoptional
other tincture palettestincture-ss Tincture-ss ss

Default
[[:Category:Tinctures (Undefined)|maintenance category]]
Stringoptional
other versionsversions Versions

Stringoptional
wikidatawikidata

Stringoptional
booleanwikidata_cat

Default
false
Booleanoptional

Additional information

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

The template is intended to be used by the following user groups: all users

Placement: At the top of the page

Relies on:
{{Artwork}}, {{I18n/COA}}

See also

Further information

Conversion to COAInformation is done with this script. It offers the changes in edit mode, and it can be continued by clicking the icon above. A validity check will be performed, and it is recommended to remove |image= from previous validations before clicking the icon.

Possible conflict

The template {{Cite book}} uses also the parameters |author= and |date=. As a workaround, the script will work with these parameters only when they are at the start of a line; only spaces may exist, e.g. ↵|date= is equivalent to ↵ | date = . As a consequence, either one of these two parameters not at a new line[clarification needed] is ignored by the script!

Tincture

When no tincture is specified, the file is categorized to the maintenance Category:Tinctures not specified.
For files where no maintenance is useful, specify tincture=? to use another categorization.[clarification needed]

Image generation

The best way[clarification needed], very sure and comfortable, is to use the Module:IgenCoa to specify the parameters; but a simple string of text can be passed as well.

 

For a once predefined user-specific entry always correct values are generated automatically[clarification needed]; the generated parameter values for Image generation are:

1 the tool, modifyable with tool~
2 the W3C error count
3 the topic: c, ce, eh
4 the code for the Graphic Lab
5 a possible code for vs
gc a name for a CoA Lab subcategory
sd a 2-byte-string for Valid SVG subcategory
U Username for link
u Username w/o link
su subcategory - free choice, instead of sd
ca category - any category, with or w/o brackets
... positional and named parameters may follow as needed


WWWW Spaces in parameters are to be replaced by underscores.


WWWW It can be written either
WWW   ■ image = {{Image generation|Im|6|+|gf|s=eh}}
WWW   ■ image = Im/6/eh/gf
WWW   ■ image = Xx WW when the above parameters are predefined with the key "xx"

WWWW Each parameter of predefined keys can be modified for each file[clarification needed]