ChartColorLegends
-
- vor 3 Jahren zuletzt von Systembenutzer bearbeitet
-
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 |
Inhaltsverzeichnis
Syntax
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
Parameter | Beschreibung | Typ | Status | |
---|---|---|---|---|
Palette name | 1 | Name of the color palette to use (Categ20 or Plotter)
| Zeile | erforderlich |
Color number | 2 | Color number required from 1 to 20
| Nummer | erforderlich |
Column width | 3 | Width of columns showing colors (and text). Leave blank for no columns
| Zeichenfolge | erforderlich |
Legend 1 | 4 | Text for the 1st color
| Zeile | optional |
Legend 2 | 5 | Text for the 2nd color
| Zeile | optional |
Legend 3 | 6 | Text for the 3rd color
| Zeile | optional |
Legend 4 | 7 | Text for the 4th color
| Zeile | optional |
Legend 5 | 8 | Text for the 5th color
| Zeile | optional |
Legend 6 | 9 | Text for the 6th color
| Zeile | optional |
Legend 7 | 10 | Text for the 7th color
| Zeile | optional |
Legend 8 | 11 | Text for the 8th color
| Zeile | optional |
Legend 9 | 12 | Text for the 9th color
| Zeile | optional |
Legend 10 | 13 | Text for the 10th color
| Zeile | optional |
Legend 11 | 14 | Text for the 11th color
| Zeile | optional |
Legend 12 | 15 | Text for the 12th color
| Zeile | optional |
Legend 13 | 16 | Text for the 13th color
| Zeile | optional |
Legend 14 | 17 | Text for the 14th color
| Zeile | optional |
Legend 15 | 18 | Text for the 15th color
| Zeile | optional |
Legend 16 | 19 | Text for the 16th color
| Zeile | optional |
Legend 17 | 20 | Text for the 17th color
| Zeile | optional |
Legend 18 | 21 | Text for the 18th color
| Zeile | optional |
Legend 19 | 22 | Text for the 19th color
| Zeile | optional |
Legend 20 | 23 | Text for the 20th color
| Zeile | optional |
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