Module:IgenCoa/doc

Category:Module documentation#IgenCoa/doc

This module enables simplification when Template:COAInformation is used.

It is intended to be invoked from {{COAInformation}} with {{#invoke:IgenCoa|main|parameter_string}} to generate the parameters for | image =0 and to pass the returned code to the Template:Image generation. See the flow chart for more information.[clarification needed]

For test purposes it can be invoked from other templates, and return to another template. It is also possible to be invoked from files with Information-description, via the adapter template Igenc.

The module's argument is a single string containing all the parameters. Therefore neither the pipe character nor the equal sign can be used within this string.

These characters, when needed, have to be replaced: pipes by slashes, equal signs by tildes.

Usage


{{IgenCoa |1= }}

Parameters in the module's argument

Template parameters

ParameterDescriptionDefaultStatus
1The only required parameter specifies

    either a complete {{Igen|.....}} definition, with all the tags, in curly brackets with pipes
    or a tool name (e.g. I, Im, Ic; A, AH, IA)

    or a short code for a user entry (e.g. TK for User:TomKr), case-insensitive
emptyrequired
2possible W3C error count[clarification needed]0 (valid)optional
3topic for the file, e.g. c, ce, eh (or something else)coptional
4shortcode for a national graphic lab, e.g. gd, ge, gf (or something else)emptyoptional
5validation style, e.g. fl or no (or something else)emptyoptional
gc ~can specify or suppress a subcategory within the graphic lab, e.g. ":TomKr" (with :)[clarification needed]emptyoptional
sd ~can specify or suppress a Graphic Lab subcategory differentiation[clarification needed]emptyoptional
U ~can specify or suppress a user for the text (with link) — oremptyoptional
u ~can specify or suppress a user for the text (without link) (see description)emptyoptional
su ~
sub ~:
can specify or suppress a subcategory within
"Valid SVG created with ..." or "Invalid SVG created with ..."
emptyoptional
ca ~
cat2 ~
can specify or suppress an additional category,
either with [[Category:Xxxx]] or just the name Xxxx
emptyoptional
more parametersneed to be specified in the format name ~ value (instead of name = value)

All Image generation-specified parameters can be passed, using the name~value notation:
replacements are needed: for pipes slashes, for equal signs tildes,
for slashes backslashes (or broken pipes), for spaces underscores (or ).

When a parameter value is itself a template transclusion, within its curly brackets all characters, including equal signs, pipes and slashes, are allowed.
emptyoptional

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

See also

Module usage

{{ #invoke:IgenCoa | main | parameter_string }}


Normally the user has nothing to do with this module, it works in the background.[clarification needed]

The simpleSVGcheck.js script will generate a useful parameter_string for {{COAInformation}}, but it can be modified when necessary.

The format is |image=parameter_string; it can be either a complete {{Igen|....}} clause, or slash-separated parameters.

For example, |image={{Image generation|I|6|+|gf|s=eh}} stands for :

  • SVG file created with Inkscape,
  • for 'Projet:Blasons',
  • showing ecclesiastical heraldry,
  • W3C-invalid because of 6 W3C-errors;

Equivalent are |image = I/6/eh/gf and |image = Fe/6/tool~I, which shows the two main cases:

parameter 1 is the code for either a tool (like Inkscape), or the table key for the table of predefined user options.


Every single parameter can be modified, all parameters can be added, and each value transfer from the table can be excluded with the value -.

  • When e.g. the tool "Adobe" is predefined, it can be substituted with e.g. /tool~I to Inkscape.
  • When e.g. the topic "c" is predefined, it can be substituted with e.g. /s~ce to Coa-element.
  • When e.g. no graphic lab is predefined, it can be added with e.g. /g~es to CoA Lab-es.
  • When e.g. a graphic lab is predefined, it can be suppressed with the minus value e.g. /g~-.
Examples:
To add the tag % for embedded text, add /%
To add the tag ~ for PGF data, add /~;
to specify the user causing that[clarification needed], add /~~username (the first ~ is the tag, the second ~ is for the =)

Any other tag or parameter for {{Image generation}} can be specified this mode, positionals just preceded by a slash, named parameters with slash + name + tilde + value.

Spaces don't matter; /g~it is equal to / g ~ it.

Replacements:
For needed spaces pass the underscore _ (or the character , U+2194 double arrow).
For needed slash use the backslash \ (or the broken bar ¦)
For needed backslash use the inverted exclamation ¡
User name:

For {{Igen}} the uppercase "U" and the lowercase "u" are mutually exclusive, U has precedence when both are specified.
By this module a "u" in the usertable is overwritten by a "U" in the usertable (therefore it has no sense to predefine both);
an input "u~" overwrites all values from the usertable, and an input "U~" overwrites (or suppresses) everything.
Note: A "u~" is just text, it is not necessarily a valid user name. It can be wikicode, as e.g. [[User:name|display]]


Modifying the table:

This is mere technical information for people wanting to change entries, or to add new ones.

  • Entries for new users should be inserted in alphabetical order;
to distinguish, "c" is often used for charges (elements). and "e" for ecclesiasticals.[clarification needed]
  • up to 11 parameters can be defined for each entry, with nil for unused positions
when less than 11 are needed, further nil filling is not necessary after the last value.
  • more user entries can be specified, there is no technical limit.
But some codes are reserved pseudo keys, e.g. for tools like "I", or for labs like "fi" for "fr" individuell.[clarification needed]
g_labcoaelementeccles.indiv.catonly
g_dddcdedidx
g_eeeceeeiex
g_fffcfefifx

These national wikipedias have projects which are linked standardwise, while the CoA Lab (parm 4) is linked "individuell":[clarification needed]

WpCoa LabProject
dedidw = Wikipedia:WikiProjekt_Wappen
eseige = THV
frfigf = Projet:Blasons
pl[ Pi ]gP = WPGW vector image
  • Simplification: A graphic lab modification is corrrectly written e.g image = Ph///dw
    but it will be understood when written image = Ph//dw or image = Ph/dw

The catonly option avoids the invocation of the Graphic Lab but categorizes to it, without the icon box.

Most predefinitions are for SVG files; raster images are drawn with often unknown tools.

All usernames and their keys must be also defined in the cleanup script.

For raster graphics, user keys of 2 characters become internally appended with an "r"; when userkey e.g. Ab is for SVG files, internal userkey Abr is for raster images. The cleanup script needs only one userkey for a user, for both SVG and non-SVG; it can detect whether it is a raster file, and an element ('charge'), but only the user can see if it's an ecclesiastical CoA.[clarification needed]

It is very irritating that the topics used by Igen differ completely from the keys used in this table.

While for the topics the "c" was expanded to ce for "coa element", and eh for "eccelsiastical heraldry",
the table has to allow that one user may draw as well coa and elements and eccelsiasticals.
The user key "Uu" may get expanded with "c" for charges, or "e" for ecclesisatical, or "r" for raster images.
usagecoaelementeccles.raster
Igen topiccceeh
table keyUuUucUueUur

With modification, the Igen topic is the third parameter, e.g. |image = Uu//eh

Search mode: The search key may consist of two or three characters.

  • three character key: first is searched whether that entry exists; when not and the third key character is c or e or r, another search is performed with this key reduced to two characters.
  • two character key: first is searched whether that entry exists; when not and it is a raster image or an element, the key is expanded with r or c and another search is performed with this key.

A user may have up to four keys: the 2-character key and its expansions with c or e or r.

Treatment for coats of arms, elements and ecclesiasticals

Besides the "normal" CoAs are there also elements used for drawing vector image CoA, and the group of CoAs used by religious leaders of the Roman Catholic Church.

Another differentiation exists for bitmap (raster image) CoAs.

These groups exist

  • SVG CoA: the standard processing.
  • SVG CoA elements: two possibilities
  • either they have an own userkey, the standard key with "c".
  • when the key for |image is this Uuc key, it is used.
  • when the key for |image is just Uu, the Uuc key is searched and used, when found.
  • when the key for |image is just Uu and no Uuc key exists, the Uu key is used;
It should be modified with topic ce, and probaly other parameters (tool);
Otherwise the element is treated as a standard SVG CoA.
  • SVG ecclesiastical CoA
  • cannot be detected automatically; the |image key should be Uue or Uu modified with eh.
  • SVG ecclesiastical elements
  • BMP CoA
  • either they have an own userkey, the standard key with "r".
  • when the key for |image is this Uur key, it is used.
  • when the key for |image is just Uu, the Uur key is searched and used, when found.
  • when the key for |image is just Uu and no Uur key exists, it should be modified.
BMP elements are rare
  • BMP ecclesiastical CoA
  • does not get yet a special treatment, all raster CoAs are the same.

With modifictions, all different groups can be processed with one userkey. But the automatic treatment is only possible when each group has an own key predefined, e.g. Uuc, Uue, Uur.[clarification needed]

Table of the predefinitions

{{#invoke:IgenCoa|distab}} (sorted by key: first all the user keys, then the pseudo keys)[clarification needed]

Table display
#keytoolertoplabgcsdUusubcat
1a3Icgi:Arrow303A3Arrow303Coats of arms by Arrow303
2a6Icgf:Anno16A6Anno16
3adIcgf:Adalric67ADAdalric67
4alIcHi:AlimanALAliman5040
5anIcge:AnenjaANAnenjaContribuciones de Anenja
6aoIcgi:AshoppioAOAshoppio
7apIcgf:ApnAPApn
8arIcgf:ArocheARAroche
9auIcgf:AupsAUAups
10b2Icgf:BarsupilamiB2Barsupilami1512
11b4Acgi:BaselunaB4Baseluna014
12baIcgP:BastianowBABastianow
13bcIcgf:ByacCBCByacC
14beIcgf:Bear17BEBear17
15bfIcgf:BrookfordBFBrookford
16bnF8cgH:BerninaBNBernina
17brIcgf:BlazoonerBRBlazooner
18bzIcgf:BenzebuBZBenzebuth198
19c2DcsuC2Care
20cbIcgf:CelbusroCBCelbusro
21chIcgf:ChatsamCHChatsamBlason chatsam
22chxIcgf:ChatsamCHChatsam
23cnIcgf:CaranornCNCaranorn
24csIcdnnl:ChrisChris die SeeleCoA by Chris die Seele
25czIccs
26d9I5cgH:Delta-9D9Delta-9
27daIcnl:DArchDAD'ArchCoat of Arms by Arch
28dkrUncgs:Dan KoehlDKDan KoehlCoats of arms by Dan Koehl
29dtxIcdnDoc TaxonCoA by Doc Taxon
30erIcge:ErlenmeyerERErlenmeyerContribuciones de Erlenmeyer
31esIcgH:EspanderoESEspandero
32etIAcgf:EtxekoETEtxeko
33euIcgc:EuryrelEUEuryrel
34eueIehgc:EuryrelEUEuryrel
35f2Icdi:Flow2F2Flow2
36f5Icgf:F5JMHF5F5JMH
37foIcsu:FennOFOFenn-O-maniC
38g2Icgi:Gb89.2G2Gb89.2
39gbIcgH:GerhardBGBGerhard Bräunlich
40glIcdwnil:GliwiGliwiCoA by Gliwi
41grIcgf:GretazGRGretaz
42gtIcgf:GroteddyGTGroteddy
43heIcei:HeralderHEHeralder
44hsIcgf:HSaloméHSenry Salomé
45ihIHc
46ilIcgc:IlzolendeILIlzolende
47j6Icgf:Jacques63J6Jacques63
48j9Icgf:Jean92J9Jean92 dit le Comte
49jkIcJürgen KrauseCoA by Jürgen KrauseCOA by User:Jürgen Krause
50jlIcgf:Jacques LysJLJacques Lys
51jnIcgf:Jimmy44JNJimmy44
52jneIehgf:Jimmy44JNJimmy44
53jpIcgf:JpgibertJpgibertCoA by JPGibert
54jwTcdi:JwnabdJWJwnabd
55k2Tcgf:KontributorK2Kontributor 2K
56kiAcsk:KrumpiKIKrumpiCoats of arms by Krumpi
57l5rUncdi:Lothar520L5Lothar520
58lpIcsx:Lokal_ProfilLPLokal_ProfilImages by Lokal_Profil/CoA
59luIcdi:Ludger1961LULudger1961
60maIcgf:ManassasMAManassas
61mbIcgh:MadboyMBMadboy74
62mcIehei:MacucalMCMacucalUser:Macucal
63mlIcdwno:MaxxLMaxxLCoA by MaxxL
64mnIcge:MiguillenMNMiguillen
65moIcgH:ManoillonMOManoillon
66mrIcgf:MaclaurenMRMaclauren
67oOc
68odBlenderncgf:OdejeaODOdejeaFiles by Odejea/PNG coat of arms
69odeIehgf:OdejeaOdejeaFiles by Odejea/SVG ecclesiastical coat of arms
70odrBlenderncgf:OdejeaODOdejeaFiles by Odejea/PNG coat of arms
71phIcdi:PerhelionPHPerhelion
72plIcgP
73rvIcgi:RuthvenRuthvenCoA by Ruthven
74s0Icgf:Spax89Spax89CoA by Spax89
75s7Icgf:SsireS7Ssire
76saIcSASajoR
77saeIehSASajoR
78sjIcSJSsolbergj
79skwIcgdsxSteveKCOA by SteveK
80soIcgc:SodacanSOSodacan
81spIcgf:SpedonaSPSpedona
82sqIcge:SanchoPSQSanchoPanzaXXIGraphics by User:SanchoPanzaXXI
83srIcgf:SanglierTSRSanglierTPictures by SanglierT
84sreIehgf:SanglierTSRSanglierTPictures by SanglierT
85syPhotoshopncgf:SyryatsuSYSyryatsuPNG blason par Syryatsu
86syrPhotoshopncgf:SyryatsuSYSyryatsuPNG blason par Syryatsu
87taIcgH:TaktaalTATaktaal
88tcIcgf:TwocatsTCTwocats
89tfIccs:TFerenczyTFTFerenczy
90tkIcgf:TomKrTKTomKr
91tlIcgf:LanaudTLThom.Lanaud
92toIcnl:Tom-LTOTom-L
93tuUnehTUTomáš Urban
94turUnehTUTomáš Urban
95tvIcgf:TretinvilleTVTretinvilleBlasons Tretinville
96v9Icgi:Vale93bV9Vale93b
97v9eIehgi:Vale93bV9Vale93b
98vaIcgf:B.ValletteVABruno
99vdIcgf:VddbertVDVddbert
100vdeIehgf:VddbertVDVddbert
101wkAcgc:KaliforniykaWKKaliforniyka
102xvIcge:XavigivaxXVXavigivax
103ylIcgf:Yves LGYLYves LG
104yrIcgf:YricordelYRYricordel
105zaIcgf:Zardoz91ZAZardoz91
106ziIcgf:ZigeunerZIZigeuner
==================
1aAc
2dIcgd
3dcIcegd
4deIehgd
5diIcdi
6dxIcgd
7eIcge
8ecIcege
9eeIehge
10eiIcei
11exIcge
12fIcgf
13fcIcegf
14feIehgf
15fiIcfi
16fxIcgf
17gcIcgc
18hIcgH
19iIc
20iaIAc
21imImc
22itIcgi
23nlIcnl
24pbIcgf
25rieUneh
26rirUnc
27ruIcgr
28skIcflSteveKCoA by SteveKCOA by SteveK
29tT0c
30uUc
==================
1zzzzUcgc:??substitute:
Category:Module documentation