Vorlage:ChartColors: Unterschied zwischen den Versionen

imported>Mibadmin
 
(kein Unterschied)

Aktuelle Version vom 15. Februar 2022, 21:16 Uhr

Vorlage:Lua This template displays standard color palettes: Category20 and Plotter. These color palettes can be used for statistical diagrams.

To translate or review the translation of the module to your language, edit carefully Data:I18n/ChartColors.tab.

Syntax

Vorlage:Tlc

Full color of diagram palettes. Moving the mouse cursor over each box the color number appears.

Palette Code Resulting colors Note
Category20
Vorlage:Small
Vorlage:Tlc Lua-Fehler: bad argument #1 to "get" (not a valid title) Normal order
Vorlage:Tlc Lua-Fehler: bad argument #1 to "get" (not a valid title) The first color is the 3rd
Vorlage:Tlc Lua-Fehler: bad argument #1 to "get" (not a valid title) Inverted order
Category10
Vorlage:Small
Vorlage:Tlc Lua-Fehler: bad argument #1 to "get" (not a valid title) Normal order
Vorlage:Small
Vorlage:Tlc Lua-Fehler: bad argument #1 to "get" (not a valid title) The first color is the 2nd
Vorlage:Small
Vorlage:Tlc Lua-Fehler: bad argument #1 to "get" (not a valid title) The first color is the 3rd
Vorlage:Small
Vorlage:Tlc Lua-Fehler: bad argument #1 to "get" (not a valid title) Inverted order
Plotter Vorlage:Tlc Lua-Fehler: bad argument #1 to "get" (not a valid title) Normal order
Vorlage:Tlc Lua-Fehler: bad argument #1 to "get" (not a valid title) Inverted order

The number of colors must be from 1 to 20 (Categ20) or 26 (Plotter).

Show the color number is an optional parameter, with two values: '-' the color number and 'a' with the degree of transparency (alpha channel) added at the end of the number and always it will be 'ff'. It is only interesting to add the color for the map coloring.

Template data

TemplateData

Nachfolgend finden sich die TemplateData Informationen für diese Vorlage. Genutzt werden diese Daten von den Extensions TemplateWizard, VisualEditor und vielen weiteren.

VorlagenDaten/TemplateData für das Template "ChartColors"

Show colors of two standard palettes

Vorlagenparameter

ParameterBeschreibungTypStatus
Palette name1

Name of the palette to use

Standard
leer
Beispiel
leer
Autowert
leer
Zeileerforderlich
Number of colors2

The number of colors to show on the palette, from 1 to 20 (Categ20) or 26 (Plotter)

Standard
leer
Beispiel
leer
Autowert
leer
Nummererforderlich
Show color number3

Write the color number after the box: - (only number) or (with alpha channel)

Standard
leer
Beispiel
leer
Autowert
leer
Nummeroptional

Examples

Code Result
Vorlage:Tlc Lua-Fehler: bad argument #1 to "get" (not a valid title)
Vorlage:Tlc Lua-Fehler: bad argument #1 to "get" (not a valid title)
Vorlage:Tlc Lua-Fehler: bad argument #1 to "get" (not a valid title)
Vorlage:Tlc Lua-Fehler: bad argument #1 to "get" (not a valid title)

See also