Module:IgenCoa/doc

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

CodeDiscussionEditHistoryLinksLink count Subpages:DocumentationTestsResultsSandboxLive code All modules

This is the documentation page for Module:IgenCoa

This module enables simplification when Template:COAInformation is used.

It is intended to generate the parameters for 0| image =0

  • to be invoked from Template:COAInformation with {{ #invoke: IgenCoamainparameter_string }}
  • and to pass the returned code to the Template:Image generation. See the flow chart for more information.

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.

Be aware that the parameters need to be separated by slashes "/" and not by pipes "|"


The parameter is one string containing all the sub-parameters.


Therefore neither the pipe character, nor the equal sign can be used within this string.

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

Usage

{{IgenCoa |1= }}

"Usage" above, and "Template parameters" below are nonsense in this case. See instead Module usage.

Module parameters

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 count0 (valid)optional
3topic for the file, e.g. c, ce, eh (or something else)0coptional
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 :)emptyoptional
sd ~can specify or suppress a Graphic Lab subcategory differentiationemptyoptional
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,
00 for slashes backslashes (or broken pipes), for spaces understrokes (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

Template:{{COAInformation}}, Template:{{Image generation}}, Category:CoA Lab;
Template:IgencIgen/coa: with Igenc predefined keys can be used even for files with Information instead of COAInformation

Module usage

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


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

The 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.

An example: |image = {{Image generation|Im|6|+|gf|s=eh}} stands for :

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

Equivalent are |image = Im/6/eh/gf and |image = Fe/6/tool~Im, 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, 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 care, /g~it is equal to / g ~ it.

Replacements:
For needed spaces pass the understroke _ (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]]


Table expansion:

This is mere technical information for people wanting to chance 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.
  • 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.
g_lab coa element eccles. indiv. catonly
g_d d dc de di dx
g_e e ec ee ei ex
g_f f fc fe fi fx

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

Wp Coa Lab Project
de di dw = Wappenwerkstatt
es ei ge = THV
fr fi gf = 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 not-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.

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.
usage coa element eccles. raster
Igen topic c ce eh
table key Uu Uuc Uue Uur

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.

Table of the predefinitions

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

Table display
#keytoolertoplabgcsdUusubcat
1adIcgf:Adalric67ADAdalric67
2agIcgi:ANGELUSAGANGELUS
3ahIcnl:AtHoekAHA. ter Hoek
4aiIAcgf:AubisseAIAubisse
5akIscgH:ARKAKARK
6alIcHi:AlimanALAliman5040
7anIcge:AnenjaANAnenjaContribuciones de Anenja
8aoIIcgi:AshoppioAO
9arIcgf:ArocheARAroche
10asIcASArchmedus
11auIcgf:AupsAUAups
12avIcgp:Aviz2000AVAviz2000
13awIcgf/ch:AiweAWAiwe
14b1IcB1B1mbo
15baIcgP:BastianowBABastianow
16bbrUncgp:Brian BoruBBBrian Boru
17beIcgf:Bear17BEBear17
18bgIcgc:BalmungBGBalmung0731
19biIcgf:BibarBIBibar
20blIcgf:BluebearBLBluebear2
21bnF8cgH:BerninaBNBernina
22boDcBoBrCaLeTo
23brIcbr:BriegBRBrieg
24btIcgf:BinnetteBTBinnette
25bvIcgf:Bvs-acaBVbvs-aca
26byIcgf:BizcayenBYBizcayen
27bzIcgf:BenzebuBZBenzebuth198
28c1AcC1COAmaker17
29c2DcsuC2Care
30cbIcgf:CelbusroCBCelbusro
31ccrUnehgp:CatChessCCCatChess
32chIcgf:ChatsamChatsamBlason chatsam
33chcIcegf:ChatsamChatsamBlason chatsam
34clIcCLCarlos yo
35cmDrawShieldceiCharles Matthews
36cnIcgf:CaranornCNCaranorn
37cpIehph:CPhoenixCP
38csIcdnnl:ChrisChris die SeeleCoA by Chris die Seele
39cvIcCVCsavil
40cyIcgf:CyygmaCYCyygma
41czIccs
42d9Im5cgf/ch:Delta-9D9Delta-9
43daIcnl:DArchDAD'ArchCoat of Arms by Arch
44ddIcgi:Dd..monnDDDdurbmonnejg
45dkUncgs:Dan KoehlDKDan KoehlCoats of arms by Dan Koehl
46dkrUncgs:Dan KoehlDKDan KoehlCoats of arms by Dan Koehl
47dlIcdi:D.S.LiuzzoDLDavid Liuzzo
48dtxIcdnDoc TaxonCoA by Doc Taxon
49dxrUncei:DomaleixoDODomaleixo
50ekrUncdi:EkpahEKEkpah
51emIcgi:EchandoEMEchando una mano
52enImcgB:EnekorgaENEnekorga
53epAcei:BoricuaEP
54erIocgeErlenmeyerContribuciones de Erlenmeyer
55esIzcgH:EspanderoESEspandero
56etIAcgf:EtxekoETEtxeko
57euIcgc:EuryrelEUEuryrel
58eueIehgc:EuryrelEUEuryrel
59f2Icdi:Flow2F2Flow2
60f5Icgf:F5JMHF5A.T-2015
61fjIcgf:FlyjackFJFlying jacket
62fmuUcFDFDRMRZUSA
63foIcsu:FennOFOFenn-O-maniC
64fqIcgi:FacquisFQFacquis
65frIcgH:FränsmerFRFränsmer
66fuIcgi:FulvioπFUFulvio314
67g2Icgi:Gb89.2G2Gb89.2
68gbIcgH:GerhardBGBGerhard Bräunlich
69gjIcgi:GJoGJGJo
70gkUcGKGeraldiker
71glIcdisx:GliwiGliwiCoA by Gliwi
72goIcGOGunnar.offel
73grIcgf:GretazGRGretaz
74gyIehph:G_YoshGY
75heIcei:HeralderHEHeralder
76hpIcgf:Honneur-PHPHonneur-Patrie
77hsIcgf:HSaloméHSℍenry Salomé
78ipIcgc:IpankoninIPIpankoninImages by Ipankonin
79iwIcgP:Isidor WIWIsidor Welti
80j2IcJ2James2813
81j9Icgf:Jean92J9Jean92 dit le Comte
82jcrUncbr:J.C EVENJCJ.C EVEN
83jkIcJürgen KrauseCoA by Jürgen KrauseCOA by User:Jürgen Krause
84jmIcgf:J-MahmoudJMJean-Mahmoud
85jnIcgf:Jimmy44Jimmy44Files by User:Jimmy from fr.wikipedia
86jneIehgf:Jimmy44Jimmy44Files by User:Jimmy from fr.wikipedia
87jpIcgf:JpgibertJpgibertCoA by JPGibert
88jpcIcegf:JpgibertJean-Paul GibertCoA by JPGibertProducts of jpgibert/heraldry/charge
89jpeIehgf:JpgibertJpgibertCoA by JPGibert
90jrIehph:J-RonnJRJ-Ronn
91jwUncgc:JwnabdJwnabdCoats of arms drawn by User:Jwnabd
92jwrUncgc:JwnabdJwnabdCoats of arms drawn by User:Jwnabd
93k2Icgf:KontributorK2Kontributor 2K
94keIcgi:KetipmaigKEKetipmaig
95kkrUncga:KKundlKKKontrollstellekundl
96l2DcL2Leonid 2
97l5rUncdi:Lothar520L5Lothar520
98laIcgi:LambertoLALamberto99
99lhrUncdi:LoschLHLosch
100lmIcgf:LeMorvandLMLeMorvandiau
101lpIcsx:Lokal_ProfilLPLokal_ProfilImages by Lokal_Profil/CoA
102luIcdi:Ludger1961LULudger1961
103lvDcgr:LobachevLV Lobachev
104lyUncgi:LynxlynxLYLynxlynx
105lyrUncgi:LynxlynxLYLynxlynx
106maIcgf:ManassasMAManassas
107mbIcgh:MadboyMadboy74CoA by Madboy74
108mcIehei:MacucalMCMacucalUser:Macucal
109meIcgi:MostEpicMEMostEpic
110mgUncgP:MagulMGMagul
111mgrUncgP:MagulMGMagul
112miIcMilenioscuroCoats of arms by User:Milenioscuro
113mlIcdwno:MaxxLMaxxLCoA by MaxxL
114mmruncgi:MassimopMMMassimop
115mnIcge:MiguillenMNMiguillen
116mxIcdi:MaxwxyzMXMaxwxyz
117n7IcN7Nanin7
118neIcgf:NescdNENescd
119ngIcgc:Ng556NGNg556
120ngeIehgc:Ng556NGNg556
121npIcgp:NPortuguêsNPN.Português
122odBlenderncgf:OdejeaODOdejeaFiles by Odejea/PNG coat of arms
123odeIehgf:OdejeaOdejeaFiles by Odejea/SVG ecclesiastical coat of arms
124odrBlenderncgf:OdejeaODOdejeaFiles by Odejea/PNG coat of arms
125p4Acdi:Puck04P4Puck04
126p7Icfi:Peter17P7Peter17Images by Peter Potrowl
127pcImcgf:Pce13PCPce13
128phIcdi:PerhelionPHPerhelion
129piUnehgP:PiomPIPiomPictures by PioM
130pirUnehgP:PiomPIPiomPictures by PioM
131plIcgP
132pnIcdi:PhilnatePNPhilnate
133poAcgr:PopadiusPOPopadius
134r2IcR2RaFaDa20631
135raIcgP:RagimiriRARagimiri
136rcAcRCRegicollis
137rgrUncdi:RepgowRGRepgow
138rlUncRLRootOfAllLight
139rlrUncRLRootOfAllLight
140rnIcgf:RinaldumRNRinaldum
141rqIcRQRoqz
142rvIcgi:RuthvenRuthvenCoA by Ruthven
143rveIehgi:RuthvenRuthvenCoA by Ruthven
144s0Icgf:Spax89Spax89CoA by Spax89
145s1Icgf:Spax8989Spax89
146s7Icgf:SsireS7Ssire
147saIcSajoRCoA by SajoR
148saeIehSajoREscudos eclesiásticos de SajoR
149seIcdi:Simon.ESimon.ellerCoA by Simon Eller
150sfIcSFSrfortes
151sgImcgf:SanguinezSGSanguinez
152sgeImehgf:SanguinezSGSanguinez
153siAcgH:SidoniusSISidonius
154sjIcSJSsolbergj
155skIcflSteveKCoA by SteveKCOA by SteveK
156skwIcgdsxSteveKCOA by SteveK
157slAccgH:Spinner2SLSpinnerLaserzthe2nd
158smIcSMSamhanin
159snIcei:SeñorDLNSNElSeñorDeLaNoche
160soIcgl:SodacanSOSodacan
161spIcgf:SpedonaSPSpedona
162sqIcgeSQSanchoPanzaXXIGraphics by User:SanchoPanzaXXI
163srIcfx:SanglierTSRSanglierT
164sreIehfx:SanglierTSRSanglierT
165ssIcgH:Sandro S.SSSa-se
166stIcgf:Stella3STStella3
167suIcgs:C.SundinSUC.SundinImages by User:C.Sundin
168syPhotoshopncgf:SyryatsuSYSyryatsuBlason par Syryatsu
169syrPhotoshopncgf:SyryatsuSYSyryatsuBlason par Syryatsu
170taIcgH:TaktaalTATaktaal
171tfIccs:TFerenczyTFTFerenczy
172tkIcgf:TomKrTKTomKr
173tlIcgf:LanaudTLThom.Lanaud
174tluUcgf:LanaudTLThom.Lanaud
175toIcnl:Tom-LTOTom-L
176trUncdi:TRystauTRT. Rystau
177trrUncdi:TRystauTRT. Rystau
178tuUnehTUTomáš Urban
179turUnehTUTomáš Urban
180tvIcgf:TretinvilleTVTretinvilleBlasons Tretinville
181v1AcV1ViniciusBR11
182v9Uncgi:Vale93bVale93bCoA by Vale93bU:Vale93b
183v9hUnehgi:Vale93bVale93bCoA by Vale93bU:Vale93b
184v9rUncgi:Vale93bVale93bCoA by Vale93bU:Vale93b
185vaIcgf:B.ValletteVABruno
186vdIcgf:VddbertVDVddbert
187vdeIehgf:VddbertVDVddbert
188vorUncuk:VityOKMVOVity OKM
189waIcgf:Wagner51WAWagner51
190whTcdi:WalderichWHWalderich
191wkIcWKKaliforniyka
192xvIcge:XavigivaxXVXavigivax
193yrImcgf:YricordelYRYricordel
194zaIcgf:Zardoz91ZAZardoz91SVG coats of arms of France
195ziIcgf:ZigeunerZIZigeuner
196zoIcgf:ZorlotZOZorlot
==================
1aAc
2dIcgd
3dcIcegd
4deIehgd
5diIcdi
6dxUncei:DomaleixoDODomaleixo
7eIcge
8ecIcege
9eeIehge
10eiIcei
11exIcge
12fIcgf
13fcIcegf
14feIehgf
15fiIcfi
16fxIcgf
17gcIcgc
18hIcgH
19iIc
20iaIAc
21imImc
22itIcgi
23nlIcnl
24pbIcgf
25rieUneh
26rirUnc
27ruIcgr
28tT0c
29uUcgc:UU
==================
1zzzzUcgc:??substitute: