Template:COAInformation
Coat of arms | blazon of |
Element of coat of arms | elements |
Ecclesiastical coat of arms | ecclesial |
Blazon | blazon |
Blazon reference | reference |
Tincture (GN) | argentargent-dorazurecélestecarnationcendréegulespurpuresabletennévert |
Date | date |
Object history | additional description, provenience |
Artist | artist |
Source | source |
Permission (Reusing this file) |
license for the artwork |
Other versions | other versions |
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
Parameter | Description | Default | Status | |
---|---|---|---|---|
blazon of Blazon of blazon_of Blazon_of | blazon of | City, 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}}. | empty | optional |
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] | empty | optional |
blazon Blazon | blazon | Blazon or literal description of the coat of arms. Use language templates like {{En}} or {{Fr}} to mark language of the text. | empty | optional |
references References | references | Book, 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. | empty | optional |
tincture Tincture | Tincture | Tincture or precise heraldic color specification. Up to fourteen colors are allowed, which have to be separated by slashes /. The standard 12 colors are: {{ Tincture | a/A/o/b/B/c/C/g/p/s/t/v }}
argentargent-dorazurecélestecarnationcendréegulespurpuresabletennévert | maintenance category | optional |
tincture-ss Tincture-ss ss | other tincture palettes | e.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/BY/b/B/c/C/g/n/p/s/t/v | maintenance category | optional |
description Description | description | Provenience; history; additional description | empty | optional |
date Date | 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.[clarification needed] Use always the ISO format (yyyy-mm-dd) | empty | optional |
artist Artist author Author | artist | Name 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] | empty | optional |
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|+|....}} . | empty | optional |
source Source | source | Source 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}}. | empty | required |
permission Permission | permission | see {{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. | empty | optional |
versions Versions | other versions | other versions of the file. You should use <gallery></gallery> tags or {{#tag:gallery| image}} or {{G}}or {{Derivative versions}} | empty | optional |
fields Fields | other fields | use 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. | empty | optional |
wikidata | wikidata | a wikidata ID can be passed | empty | optional |
wikidata_cat | boolean | set "false" or "no" or "0" to avoid wikidata-related categorizing; set "true" or "yes" or "1" to enable wikidata-related categorizing.[clarification needed] | false | optional |
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
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 Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information Infobox template customized for coats of arms
|
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
- Category:Pages using Template:COAInformation with incorrect parameters – for maintenance
== Localization ==
- Module:I18n/artwork - for some fields shared with {{Artwork}} template
- {{I18n/COA}} - for translations of "Coat of arms of", "Blazon", "Reference" and "Tincture"
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 |
Spaces in parameters are to be replaced by underscores.
It can be written either
■ image = {{Image generation|Im|6|+|gf|s=eh}}
■ image = Im/6/eh/gf
■ image = Xx when the above parameters are predefined with the key "xx"