Difference between revisions of "Template:CoatOfArms"

From Encyclopedia Westarctica
Jump to navigation Jump to search
(Remove Lua and external dependencies)
(Let's add some documentation)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="wikitable mw-collapsible {{#ifeq:{{{collapsed|}}}|y|mw-collapsed|}}" style="{{{style|max-width:100%}}}"
{| class="wikitable mw-collapsible {{#ifeq:{{{collapsed|}}}|y|mw-collapsed|}}" style="width:100%; table-layout:fixed; border-collapse:collapse;"
|+ class="nowrap" | '''Coat of arms of {{{name|{{PAGENAMEBASE}}}}}'''
|+ class="nowrap" | '''Coat of arms of {{{name|{{PAGENAMEBASE}}}}}'''
|-
|-
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
   {{!}} style="width:{{{imagesize|220px}}}; {{#if:{{{imagewidth|}}}|min-width:{{{imagewidth}}};}}" {{!}}
   {{!}} style="width:50%; vertical-align:top; text-align:center;" {{!}}
   [[File:{{{image}}}|{{{imagesize|220px}}}|frameless]]
   [[File:{{{image}}}|{{{imagesize|100%}}}|frameless]]
}}
}}
{{!}} style="width:50%; vertical-align:top;" |
<div style="line-height:1.4em; margin:0; padding:0;">
{{#if:{{{notes|}}}|<div><b>Notes</b><br/><div style="margin-left:1em;">{{{notes}}}</div></div>}}{{#if:{{{description|}}}|<div><b>Description</b><br/><div style="margin-left:1em;">{{{description}}}</div></div>}}{{#if:{{{authority|}}}|<div><b>Authority</b><br/><div style="margin-left:1em;">{{{authority}}}</div></div>}}{{#if:{{{year_granted|}}}|<div><b>Granted</b><br/><div style="margin-left:1em;">{{{year_granted}}}</div></div>}}{{#if:{{{year_confirmed|}}}|<div><b>Confirmed</b><br/><div style="margin-left:1em;">{{{year_confirmed}}}</div></div>}}{{#if:{{{year_adopted|}}}|<div><b>Adopted</b><br/><div style="margin-left:1em;">{{{year_adopted}}}</div></div>}}{{#if:{{{years_in_use|}}}|<div><b>Years in use</b><br/><div style="margin-left:1em;">{{{years_in_use}}}</div></div>}}


| style="min-width:175px;" |
{{#if:{{{armiger|}}}|<div><b>Armiger</b><br/><div style="margin-left:1em;">{{{armiger}}}</div></div>}}{{#if:{{{coronet|}}}|<div><b>Coronet</b><br/><div style="margin-left:1em;">{{{coronet}}}</div></div>}}{{#if:{{{crest|}}}|<div><b>Crest</b><br/><div style="margin-left:1em;">{{{crest}}}</div></div>}}{{#if:{{{torse|}}}|<div><b>Torse</b><br/><div style="margin-left:1em;">{{{torse}}}</div></div>}}{{#if:{{{helm|}}}|<div><b>Helm</b><br/><div style="margin-left:1em;">{{{helm}}}</div></div>}}


{{#if:{{{notes|}}}|; Notes: {{{notes}}} }}
{{#if:{{{escutcheon|}}}|<div><b>Escutcheon</b><br/><div style="margin-left:1em;">{{{escutcheon}}}</div></div>}}{{#if:{{{supporters|}}}|<div><b>Supporters</b><br/><div style="margin-left:1em;">{{{supporters}}}</div></div>}}{{#if:{{{compartment|}}}|<div><b>Compartment</b><br/><div style="margin-left:1em;">{{{compartment}}}</div></div>}}{{#if:{{{motto|}}}|<div><b>Motto</b><br/><div style="margin-left:1em;">{{{motto}}}</div></div>}}{{#if:{{{orders|}}}|<div><b>Orders</b><br/><div style="margin-left:1em;">{{{orders}}}</div></div>}}{{#if:{{{other_elements|}}}|<div><b>Other elements</b><br/><div style="margin-left:1em;">{{{other_elements}}}</div></div>}}
{{#if:{{{description|}}}|; Description: {{{description}}} }}
{{#if:{{{year_granted|}}}|; Granted: {{{year_granted}}} }}
{{#if:{{{year_adopted|}}}|; Adopted: {{{year_adopted}}} }}
{{#if:{{{years_in_use|}}}|; Years in use: {{{years_in_use}}} }}


{{#if:{{{armiger|}}}|; Armiger: {{{armiger}}} }}
{{#if:{{{banner|}}}{{{bannerimage|}}}|
{{#if:{{{coronet|}}}|; Coronet: {{{coronet}}} }}
  <div><b>Banner</b><br/><div style="margin-left:1em;">{{#if:{{{bannerimage|}}}|[[File:{{{bannerimage}}}|50px|border]] }} {{{banner|}}}</div></div>
{{#if:{{{crest|}}}|; Crest: {{{crest}}} }}
}}
{{#if:{{{torse|}}}|; Torse: {{{torse}}} }}
{{#if:{{{helm|}}}|; Helm: {{{helm}}} }}
{{#if:{{{escutcheon|}}}|; Escutcheon: {{{escutcheon}}} }}
{{#if:{{{supporters|}}}|; Supporters: {{{supporters}}} }}
{{#if:{{{compartment|}}}|; Compartment: {{{compartment}}} }}
{{#if:{{{motto|}}}|; Motto: {{{motto}}} }}
{{#if:{{{orders|}}}|; Orders: {{{orders}}} }}
{{#if:{{{other_elements|}}}|; Other elements: {{{other_elements}}} }}


{{#if:{{{bannerimage|}}}|
{{#if:{{{standard|}}}{{{standardimage|}}}|
   ; Banner: [[File:{{{bannerimage}}}|50px|border]] {{{banner|}}}
   <div><b>Standard</b><br/><div style="margin-left:1em;">{{#if:{{{standardimage|}}}|[[File:{{{standardimage}}}|50px|border]] }} {{{standard|}}}</div></div>
}}
}}


{{#if:{{{badge|}}}|
{{#if:{{{badge|}}}{{{badgeimage|}}}|
   ; {{#if:{{{badgetitle|}}}|{{{badgetitle}}}|Badge}}:
   <div><b>{{#if:{{{badgetitle|}}}|{{{badgetitle}}}|Badge}}</b><br/><div style="margin-left:1em;">{{#if:{{{badgeimage|}}}|[[File:{{{badgeimage}}}|50px]] }} {{{badge}}}</div></div>
    {{#if:{{{badgeimage|}}}|[[File:{{{badgeimage}}}|50px]]}} {{{badge}}}
}}
}}


{{#if:{{{badge2image|}}}|
{{#if:{{{badge2|}}}{{{badge2image|}}}|
   ; {{{badge2title|Badge 2}}}: [[File:{{{badge2image}}}|50px]] {{{badge2|}}}
   <div><b>{{{badge2title|Badge 2}}}</b><br/><div style="margin-left:1em;">{{#if:{{{badge2image|}}}|[[File:{{{badge2image}}}|50px]] }} {{{badge2|}}}</div></div>
}}
}}


{{#if:{{{badge3image|}}}|
{{#if:{{{badge3|}}}{{{badge3image|}}}|
   ; {{{badge3title|Badge 3}}}: [[File:{{{badge3image}}}|50px]] {{{badge3|}}}
   <div><b>{{{badge3title|Badge 3}}}</b><br/><div style="margin-left:1em;">{{#if:{{{badge3image|}}}|[[File:{{{badge3image}}}|50px]] }} {{{badge3|}}}</div></div>
}}
}}


{{#if:{{{symbolism|}}}|; Symbolism: {{{symbolism}}} }}
{{#if:{{{symbolism|}}}|<div><b>Symbolism</b><br/><div style="margin-left:1em;">{{{symbolism}}}</div></div>}}{{#if:{{{previous_versions|}}}|<div><b>Previous versions</b><br/><div style="margin-left:1em;">{{{previous_versions}}}</div></div>}}{{#if:{{{other_versions|}}}|<div><b>Other versions</b><br/><div style="margin-left:1em;">{{{other_versions}}}</div></div>}}
{{#if:{{{previous_versions|}}}|; Previous versions: {{{previous_versions}}} }}
{{#if:{{{other_versions|}}}|; Other versions: {{{other_versions}}} }}


</div>
|}
|}
<noinclude>
<noinclude>
{{documentation}} <!-- Please create Template:CoatOfArms/doc -->
== Template documentation ==
This template displays a standardized infobox for coats of arms. 
It supports heraldic details such as escutcheon, crest, supporters, motto, and other elements.
 
=== Usage ===
Copy and paste the following into an article, filling in the fields as appropriate:
 
<pre>
{{CoatOfArms
| name          = Example Town
| image          = Example_coat_of_arms.svg
| imagesize      = 200px
| notes          = Granted by Royal Decree
| description    = Quarterly argent and gules, a cross potent or.
| authority      = College of Arms
| year_granted  = 1560
| year_adopted  = 1905
| years_in_use  = 1560–present
| armiger        = Municipality of Example
| coronet        = Mural crown
| crest          = A lion rampant or
| torse          = Argent and gules
| helm          = Helm argent, open
| escutcheon    = Quarterly shield
| supporters    = Two griffins argent
| compartment    = A grassy mount
| motto          = ''Fortitudine''
| orders        = Order of Example
| other_elements = Mantling of gules and argent
| banner        = Banner of the arms
| bannerimage    = Example_banner.svg
| standard      = Heraldic standard
| standardimage  = Example_standard.svg
| badge          = Example badge
| badgeimage    = Example_badge.svg
| badge2        = Alternate badge
| badge2image    = Example_badge2.svg
| badge3        = Third badge
| badge3image    = Example_badge3.svg
| symbolism      = The cross symbolizes faith; the lion symbolizes courage.
| previous_versions = Example_coat_of_arms_old.svg
| other_versions    = Example_coat_of_arms_variants.svg
}}
</pre>
 
=== Parameters ===
; <code>name</code> : Name of the armiger (defaults to page title if omitted).
; <code>image</code> : Filename of the coat of arms image.
; <code>imagesize</code> : Width of the image (default is 100% of column).
; <code>notes</code> : Heraldic or legal notes.
; <code>description</code> : Heraldic blazon (formal description).
; <code>authority</code> : Heraldic authority granting/confirming the arms.
; <code>year_granted</code> : Year arms were first granted.
; <code>year_confirmed</code> : Year arms were confirmed.
; <code>year_adopted</code> : Year arms were adopted.
; <code>years_in_use</code> : Span of years in use.
; <code>armiger</code> : Entity that owns/uses the arms.
; <code>coronet</code> : Heraldic coronet (if applicable).
; <code>crest</code> : Crest above the helm.
; <code>torse</code> : Wreath/twisted roll beneath the crest.
; <code>helm</code> : Heraldic helm.
; <code>escutcheon</code> : Description of the shield.
; <code>supporters</code> : Supporters flanking the shield.
; <code>compartment</code> : Heraldic compartment beneath shield/supporters.
; <code>motto</code> : Motto text.
; <code>orders</code> : Chivalric or other orders included.
; <code>other_elements</code> : Additional heraldic elements.
; <code>banner</code> / <code>bannerimage</code> : Banner associated with the arms.
; <code>standard</code> / <code>standardimage</code> : Standard associated with the arms.
; <code>badge</code> / <code>badgeimage</code> : Heraldic badge (first).
; <code>badge2</code> / <code>badge2image</code> : Second badge.
; <code>badge3</code> / <code>badge3image</code> : Third badge.
; <code>symbolism</code> : Explanation of symbolism.
; <code>previous_versions</code> : File or description of earlier versions.
; <code>other_versions</code> : File or description of alternative versions.
 
=== Example ===
This template will display like this when filled in:
 
<pre>
{{CoatOfArms
| name        = Grand Duchy of Westarctica
| image      = Westarctica Arms - Full.png
| description = Quarterly, in the first and fourth quarters Bleu Céleste, a cross Or,
                in the dexter chief a crown Argent, in the second and third Azure,
                seven snowflakes 2, 3 and 2 of the third, over all the quarters an
                inescutcheon of the fourth, a fess of the third, between three pelicans
                vulning, wings addorsed and inverted of the same.
| crest      = A ducal coronet proper
| supporters  = Dexter: an emperor penguin respectant proper; Sinister: an orca
                haurient respectant of the same
}}
</pre>
 
{{CoatOfArms
| name        = Grand Duchy of Westarctica
| image      = Westarctica Arms - Full.png
| description = Quarterly, in the first and fourth quarters Bleu Céleste, a cross Or, in the dexter chief a crown Argent, in the second and third Azure, seven snowflakes 2, 3 and 2 of the third, over all the quarters an inescutcheon of the fourth, a fess of the third, between three pelicans vulning, wings addorsed and inverted of the same.
| crest      = A ducal coronet proper
| supporters  = Dexter: an emperor penguin respectant proper; Sinister: an orca haurient respectant of the same
}}
 
----
<small>This template is intended for coats of arms and heraldic use only. 
For logos or seals, consider using [[Template:Infobox emblem]].</small>
</noinclude>
</noinclude>

Latest revision as of 02:04, 21 September 2025

Coat of arms of Template:PAGENAMEBASE











Template documentation

This template displays a standardized infobox for coats of arms. It supports heraldic details such as escutcheon, crest, supporters, motto, and other elements.

Usage

Copy and paste the following into an article, filling in the fields as appropriate:

{{CoatOfArms
| name           = Example Town
| image          = Example_coat_of_arms.svg
| imagesize      = 200px
| notes          = Granted by Royal Decree
| description    = Quarterly argent and gules, a cross potent or.
| authority      = College of Arms
| year_granted   = 1560
| year_adopted   = 1905
| years_in_use   = 1560–present
| armiger        = Municipality of Example
| coronet        = Mural crown
| crest          = A lion rampant or
| torse          = Argent and gules
| helm           = Helm argent, open
| escutcheon     = Quarterly shield
| supporters     = Two griffins argent
| compartment    = A grassy mount
| motto          = ''Fortitudine''
| orders         = Order of Example
| other_elements = Mantling of gules and argent
| banner         = Banner of the arms
| bannerimage    = Example_banner.svg
| standard       = Heraldic standard
| standardimage  = Example_standard.svg
| badge          = Example badge
| badgeimage     = Example_badge.svg
| badge2         = Alternate badge
| badge2image    = Example_badge2.svg
| badge3         = Third badge
| badge3image    = Example_badge3.svg
| symbolism      = The cross symbolizes faith; the lion symbolizes courage.
| previous_versions = Example_coat_of_arms_old.svg
| other_versions    = Example_coat_of_arms_variants.svg
}}

Parameters

name
Name of the armiger (defaults to page title if omitted).
image
Filename of the coat of arms image.
imagesize
Width of the image (default is 100% of column).
notes
Heraldic or legal notes.
description
Heraldic blazon (formal description).
authority
Heraldic authority granting/confirming the arms.
year_granted
Year arms were first granted.
year_confirmed
Year arms were confirmed.
year_adopted
Year arms were adopted.
years_in_use
Span of years in use.
armiger
Entity that owns/uses the arms.
coronet
Heraldic coronet (if applicable).
crest
Crest above the helm.
torse
Wreath/twisted roll beneath the crest.
helm
Heraldic helm.
escutcheon
Description of the shield.
supporters
Supporters flanking the shield.
compartment
Heraldic compartment beneath shield/supporters.
motto
Motto text.
orders
Chivalric or other orders included.
other_elements
Additional heraldic elements.
banner / bannerimage
Banner associated with the arms.
standard / standardimage
Standard associated with the arms.
badge / badgeimage
Heraldic badge (first).
badge2 / badge2image
Second badge.
badge3 / badge3image
Third badge.
symbolism
Explanation of symbolism.
previous_versions
File or description of earlier versions.
other_versions
File or description of alternative versions.

Example

This template will display like this when filled in:

{{CoatOfArms
| name        = Grand Duchy of Westarctica
| image       = Westarctica Arms - Full.png
| description = Quarterly, in the first and fourth quarters Bleu Céleste, a cross Or, 
                in the dexter chief a crown Argent, in the second and third Azure,
                seven snowflakes 2, 3 and 2 of the third, over all the quarters an
                inescutcheon of the fourth, a fess of the third, between three pelicans 
                vulning, wings addorsed and inverted of the same.
| crest       = A ducal coronet proper
| supporters  = Dexter: an emperor penguin respectant proper; Sinister: an orca 
                haurient respectant of the same
}}
Coat of arms of Grand Duchy of Westarctica
 100%
Description
Quarterly, in the first and fourth quarters Bleu Céleste, a cross Or, in the dexter chief a crown Argent, in the second and third Azure, seven snowflakes 2, 3 and 2 of the third, over all the quarters an inescutcheon of the fourth, a fess of the third, between three pelicans vulning, wings addorsed and inverted of the same.
Crest
A ducal coronet proper
Supporters
Dexter: an emperor penguin respectant proper; Sinister: an orca haurient respectant of the same









This template is intended for coats of arms and heraldic use only. For logos or seals, consider using Template:Infobox emblem.