Template: Coa
This template is part of a group of templates that link image files to specific houses, persons, and organizations.
Contents
Usage
Templates
{{coa}}
shows the symbol only and links to the shown entity.{{coa|Targaryen}}
→{{coa-link}}
shows the symbol and text, and it links to the shown entity.{{coa-link|Targaryen}}
→House Targaryen
{{coa-file}}
shows the file name of the image only.{{coa-file|Targaryen}}
→ House Targaryen.svg
Symbol (Parameter 1)
The first parameter is the entity whose symbol should be shown.
A good amount of flexibility is afforded the user. For example, Targaryen
, House Targaryen
, targaryen
, House Targaryen.svg
, housetargaryen
, and more all lead to the same result.
Code | Result |
---|---|
{{coa-link|Targaryen}} |
![]() |
{{coa-link|Wyl}} |
![]() |
{{coa-link|Longwaters}} |
![]() |
{{coa-link|Brook}} |
![]() |
{{coa|Targaryen}} |
![]() |
{{coa|Wyl}} |
![]() |
{{coa|Brook}} |
![]() |
{{coa|Longwaters}} |
![]() |
{{coa-file|Targaryen}} |
House Targaryen.svg |
{{coa-file|Wyl}} |
Wyl.png |
{{coa-file|Longwaters}} |
None.svg |
{{coa-file|Brook}} |
None (Dorne).svg |
Size (Parameter 2)
The second parameter represents the size. The following values are accepted:
- For use in text:
{{coa|Targaryen|xs}}
→ - For minor elements in lists:
{{coa|Targaryen|s}}
→ - For major elements in lists:
{{coa|Targaryen|m}}
→ {{coa|Targaryen|l}}
→{{coa|Targaryen|xl}}
→
Other parameters (not recommended)
There are other parameters for use cases that are not included above. It is recommended NOT to use these parameters.
link
: Article that should be linked to.{{coa-link|Targaryen|link=House Lannister}}
→House Targaryen
text
: Text to be displayed.{{coa-link|Targaryen|text=House Lannister}}
→House Lannister
Updating the COAs
In order to update the image for an entity, or to add a new entity, one must edit Module:Coa/data.
Every entry in the module consists of the following:
- Main key
- Must only contain lowercase letters and optionally numbers
- Must not contain whitespace characters
- Must not start with "House"
- Must not contain the words "of" and "the"
- Must represent the house/person/entity uniquely
file
: The image file- When missing, defaults to
None.svg
- When missing, defaults to
page
: The article name. Mandatoryname
: The name to be displayed. Only necessary if different fromarticle
List of keys
For a list of all accepted keys, see Template:Coa/list.
For a list of all keys pointing to PNG images, see Template:Coa/pnglist.
The above documentation is transcluded from Template:Coa/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |