Commons talk:Colour palettes

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Principles
  • Tinctures for all palettes are defined in one of the Tincture draw templates, the only place for their definition.
  • Each one of these templates may normally define all the 13 tinctures, some plus the specials e, m, V, whether they are really in use by that palette or not.
  • Only the really used tinctures of each palette are shown in the examples (as at the bottom of this page), and for the GIMP tables.

How to maintain this page[edit]

This page contains GPL palette data of heraldic colours, technically known as tinctures, which can be used in image editing tools such as GIMP and Inkscape.

The data is rendered in the form of lists or tables, making it easy to copy and paste it to individual text files that can be imported into the tool used. It is also easy to maintain such tables, to change or expand them. Every change to a table is automatically updated on this page.

(An empty edit and/or a cache purge may be necessary to see the changes immediately.)

For such maintenance it may be helpful to know about the flow which governs the automation:

How the partial tables are generated:
Each table is generated by a simple transclusion of the template:Tincture with all the relevant colours,
e.g. {{Tincture|a/A/o/b/B/c/C/g/n/p/s/t/v/BU}} or {{Tincture|a|A|o|b|g|p|s|v|ss=HU}}
These templates have the following general structure (example: Tincture/drawBY), may be not the currently used colors); the displayed labels are also autotranslatable (using {{LangSwitch}} with a mandatory default label in English, as seen below):
{{#switch: {{{1|}}}
<!-- metals -->
|a|argent = {{Tincture/{{{2|box}}}|#FFF|000|argent}}
|A|argent-d = {{Tincture/{{{2|box}}}|#E7E7E7|000|argent-d}}<!--?-->
|o|or|gold|doré = {{Tincture/{{{2|box}}}|#FCEF3C|000|or}}
<!-- enamels -->
|b|azure|azur = {{Tincture/{{{2|box}}}|#2B5DF2|FFF|{{LangSwitch
  |en=azure
  |fr=azur
  }}
|B|céleste = {{Tincture/{{{2|box}}}|#89C5E3|000|céleste}}
|c|carnation = {{Tincture/{{{2|box}}}|#FEC3AC|000|carnation}}
|C|cendre|cendré|cendrée|acier|fer = {{Tincture/{{{2|box}}}|#999|FFF|{{LangSwitch
  |en=cendrée
  |fr=cendré
  }}}}
|g|gules|gueules={{Tincture/{{{2|box}}}|#DA121A|FFF|{{LangSwitch
  |en=gules
  |fr=gueules
  }}}}
|n|naranja|orange = {{Tincture/{{{2|box}}}|#F37905|000|{{LangSwitch
  |en=naranja
  |fr=orangé
  }}
|p|purpure|pourpre = {{Tincture/{{{2|box}}}|#D576AD|FFF|{{LangSwitch
  |en=purpure
  |fr=pourpre
  }}
|s|sable = {{Tincture/{{{2|box}}}|#000|FFF|sable}}
|t|tenné = {{Tincture/{{{2|box}}}|#9D5324|FFF|tenné}}
|v|vert|sinople = {{Tincture/{{{2|box}}}|#5AB532|FFF|{{LangSwitch
  |en=vert
  |fr=sinople
  }}
<!-- textures -->
|e|ermine|hermine = {{Tincture/file|file=Tincture ermine|{{LangSwitch
  |en=ermine
  |fr=hermine
  }}
|V|fur|vair = {{Tincture/file|file=Tincture fur|{{LangSwitch
  |en=fur
  |fr=vair
  }}}}
<!-- special -->
|x|invisible|transparent = {{Tincture/{{{2|box}}}|none|FFF|transparent}}
|m|multicolor|multipel|multiple = {{Tincture/file|multi|file=Tincture multicolor}}
|gpltabnam = {{LangSwitch
  |de=Tinkturen Bayerns
  |en=Bavarian tinctures
  |fr=Teintures bavaroises
  }}
|#default = {{#ifeq: {{padleft:|1|{{{1|}}}}} | #
  | {{Tincture/{{{2|box}}}|{{{1|}}}|{{#invoke:Tincture|titcolor|{{{1|}}}}}|''{{{1|}}}''}}
  | <strong class="error">''Unknown tincture code'': “{{{1|}}}”</strong>{{Iffile|[[Category:Commons Maint tincture code error]]}}
  }}
}}{{{pf|}}}<noinclude>

Subtemplate to {{Tl|Tincture}} for Bavarian tinctures
{{Tincture|a/A/o/b/B/c/C/e/g/x/p/s/t/v/x/BY}}

[[Category: Tincture draw templates]]
</noinclude>
  • Parameter 1 is a colour, either by the one-letter-shortcode or the long name.
  • Parameter 2 is optional, normally it is "box", when it is "tab" the gpl table is generated.
  • {{Tincture/box}} (or {{Tincture/tab}}) gets three values: the tincture, the textcolor and the text.
  • With the code gpltabnam the {{Tincture/tab}} can get some headline information.
Inserting a new palette:
This can be done by
  1. Assigning a new table following the structure of the other tables in Category:Tincture draw templates as shown above
    the name suffix for the new table Template:Tincture/drawxx should not exceed the length of two characters.
    See a list of possible names in Template:Tincture/catP.
  2. Inserting the transclusion of the new variation into the page, at the place where it is wanted
    New headlines may structure the page in a helpful manner.
To meet every requirement, the system is expandable without limit.
A new variation can both be used for the gpl page and for tagging an image with the used tinctures.
Editors are requested to use only the 14 standard colour names/abbreviations
and to limit creative inventions of other codes to very special cases, as e.g. in Tincture/drawGN.
Considerations for newpalettes:
The template:Tincture is heavily used; alterations of the template itself should be restricted to a bare minimum.
Before anything is done, the template checks whether the ss= code is valid; most codes currently used are known to the template,
and unknown codes are checked with an #ifexist: request. This is a rather expensive interrogation!
It remains the responsibility of the editor neither to expand the template for rarely used variations, nor to accept the "if exists" for frequently used variations.

Compare all tincture variations[edit]

Only a few variations have all colors defined.

c ss=GN ss=FR ss=BB ss=BY ss=BW ss=ES ss=SV ss=RU ss=UA
a
A
o
b
B
c
C
g
n
p
s
t
v
argent
argent-d
or
azure
céleste
carnation
cendrée
gules
naranja
purpure
sable
tenné
vert
argent
transparent
or
azure
céleste
carnation
cendrée
gules
naranja
purpure
sable
tenné
vert
argent
transparent
or
azure
transparent
carnation
transparent
gules
transparent
transparent
sable
transparent
vert
argent
argent-d
or
azure
céleste
carnation
cendrée
gules
transparent
purpure
sable
tenné
vert
argent
transparent
or
azure
céleste
carnation
transparent
gules
transparent
transparent
sable
transparent
vert
plata
plata-o
oro
azur
transparente
carnación
transparente
gules
naranja
púrpura
sable
transparente
sinople
argent
transparent
or
azure
céleste
carnation
transparent
gules
transparent
purpure
sable
transparent
vert
argent
transparent
or
azure
transparent
transparent
cendrée
gules
transparent
purpure
sable
tenné
vert
argent
transparent
or
azure
transparent
carnation
cendrée
gules
transparent
transparent
sable
tenné
vert
c ss=NS ss=AG ss=CH ss=GR ss=HU ss=NW ss=SK
a
A
o
b
B
c
C
g
n
p
s
t
v
argent
argent-d
or
azure
céleste
carnation
cendrée
gules
naranja
purpure
sable
tenné
vert
argent
transparent
or
azure
transparent
transparent
transparent
gules
transparent
transparent
sable
tenné
vert
argent
transparent
or
azure
transparent
transparent
transparent
gules
transparent
transparent
sable
tenné
vert
argent
transparent
or
azure
azure
carnation
transparent
gules
transparent
purpure
sable
tenné
vert
argent
argent-d
or
azure
transparent
transparent
transparent
gules
transparent
purpure
sable
transparent
vert
argent
transparent
or
azure
transparent
transparent
transparent
gules
transparent
transparent
sable
tenné
vert
argent
transparent
or
azure
transparent
transparent
transparent
gules
transparent
transparent
sable
transparent
vert