ChartColorLegends

Vorlage:Lua This template shows standard color templates: Category20 and Plotter, and the code to include with Vorlage:Tl.

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

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

Syntax

Vorlage:Tlc

The color number must be 1 to 20 (Categ20) or 1 to 26 (Plotter).

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 "ChartColorLegends"

Display a standard palette

Vorlagenparameter

ParameterBeschreibungTypStatus
Palette name1

Name of the color palette to use (Categ20 or Plotter)

Standard
leer
Beispiel
leer
Autowert
leer
Zeileerforderlich
Color number2

Color number required from 1 to 20

Standard
leer
Beispiel
leer
Autowert
leer
Nummererforderlich
Column width3

Width of columns showing colors (and text). Leave blank for no columns

Standard
leer
Beispiel
leer
Autowert
leer
Zeichenfolgeerforderlich
Legend 14

Text for the 1st color

Standard
leer
Beispiel
leer
Autowert
leer
Zeileoptional
Legend 25

Text for the 2nd color

Standard
leer
Beispiel
leer
Autowert
leer
Zeileoptional
Legend 36

Text for the 3rd color

Standard
leer
Beispiel
leer
Autowert
leer
Zeileoptional
Legend 47

Text for the 4th color

Standard
leer
Beispiel
leer
Autowert
leer
Zeileoptional
Legend 58

Text for the 5th color

Standard
leer
Beispiel
leer
Autowert
leer
Zeileoptional
Legend 69

Text for the 6th color

Standard
leer
Beispiel
leer
Autowert
leer
Zeileoptional
Legend 710

Text for the 7th color

Standard
leer
Beispiel
leer
Autowert
leer
Zeileoptional
Legend 811

Text for the 8th color

Standard
leer
Beispiel
leer
Autowert
leer
Zeileoptional
Legend 912

Text for the 9th color

Standard
leer
Beispiel
leer
Autowert
leer
Zeileoptional
Legend 1013

Text for the 10th color

Standard
leer
Beispiel
leer
Autowert
leer
Zeileoptional
Legend 1114

Text for the 11th color

Standard
leer
Beispiel
leer
Autowert
leer
Zeileoptional
Legend 1215

Text for the 12th color

Standard
leer
Beispiel
leer
Autowert
leer
Zeileoptional
Legend 1316

Text for the 13th color

Standard
leer
Beispiel
leer
Autowert
leer
Zeileoptional
Legend 1417

Text for the 14th color

Standard
leer
Beispiel
leer
Autowert
leer
Zeileoptional
Legend 1518

Text for the 15th color

Standard
leer
Beispiel
leer
Autowert
leer
Zeileoptional
Legend 1619

Text for the 16th color

Standard
leer
Beispiel
leer
Autowert
leer
Zeileoptional
Legend 1720

Text for the 17th color

Standard
leer
Beispiel
leer
Autowert
leer
Zeileoptional
Legend 1821

Text for the 18th color

Standard
leer
Beispiel
leer
Autowert
leer
Zeileoptional
Legend 1922

Text for the 19th color

Standard
leer
Beispiel
leer
Autowert
leer
Zeileoptional
Legend 2023

Text for the 20th color

Standard
leer
Beispiel
leer
Autowert
leer
Zeileoptional

Examples

With legend text

{{ChartColorLegends|Categ20|4||One|Two|Three|Four}}

produces: Lua-Fehler: bad argument #1 to "get" (not a valid title)

Without legend text

{{ChartColorLegends|Plotter|10|30em}}

produces: Lua-Fehler: expandTemplate: template "div col" does not exist

See also