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.

Usage

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

There is a gadget (quick JavaScript helper) named Gadget-InformationToCOA.js for replacing the template: Information with template: COAInformation. You need only edit your common.js with adding the following line:

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

After the script processing the description is displayed in edit mode. Corrections are now possible.
For SVG files the next script should now be performed: first remove |image= lines (if any from previos validations),
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 that coat of arms identifies and that the blazon describes. Please use an appropriate language template like {{En}} (for English) or {{Fr}} (for French) etc. to indicate the language of the text. You may also use {{Coa-desc}}.emptyoptional
element
Element
ecclesial
Ecclesial
element

ecclesial
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.
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 Template:{{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
category
optional
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. Use always the format yyyy-mm-ddemptyoptional
artist
Artist
author
Author
artistName of the artist who drew the graphics, with a link if possible. Use [[User:Example|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}}.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}}. 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> brackets 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...
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.
falseoptional
Template data
<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

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. Use always the format yyyy-mm-dd

Dateoptional
descriptiondescription Description

Stringoptional
element<br><br>ecclesialelement 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<br>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

Most fields use translations of {{Artwork}}, "Coat of arms of", "Blazon", "Reference" and "Tincture" are translated at {{I18n/COA}}

Further informations

Conversion to COAInformation

is done with the welllknown 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 previos 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 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 explicitely no maintenance is useful, specify tincture=? to use another categorization.

Image generation

The best way, very sure and comfortable, is to use the Module:IgenCoa to specify the parameters; but as well an own string can be passed.

 

For a once predefined user-specific entry always correct values are generated automatically; 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 understrokes


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