Template:BrewerColorLegends

From blackwiki
Revision as of 19:13, 17 July 2020 by imported>Frietjes
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
50px Template documentation[view] [edit] [history] [purge]

This template shows the Brewer colors with {{legend}} to include in the code. Based on specifications and designs developed by Cynthia Brewer ([1]).

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

Syntax

{{BrewerColorLegends|color palette|color number|column width|..}}

The color number must be 3 to 8-12, depending on the color palette:

Brewer's color palettes

Valid names and full color representation for each palette. Moving the mouse cursor over each box the color number appears.

Sequential (1-9)
  • YlGn
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • YlGnBu
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • GnBu
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • BuGn
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • PuBuGn
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • PuBu
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • BuPu
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • RdPu
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • PuRd
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • OrRd
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • YlOrRd
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • YlOrBr
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • Purples
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • Blues
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • Greens
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • Oranges
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • Reds
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • Greys
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
Divergent (1-11)
  • PuOr
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • BrBG
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • PRGn
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • PiYG
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • RdBu
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • RdGy
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • RdYlBu
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • Spectral
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • RdYlGn
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
Qualitative (1-8/12)
  • Accent
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • Dark2
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • Paired
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • Pastel1
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • Pastel2
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • Set1
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • Set2
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.
  • Set3
    Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.

Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for BrewerColorLegends

Display a Brewer's color palette

Template parameters

ParameterDescriptionTypeStatus
Palette1

Name of the color palette to use

Linerequired
Color number2

Color number required from 3 to 9/12

Numberrequired
Column width3

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

Linerequired
Legend 14

Text for the 1st color

Lineoptional
Legend 25

Text for the 2nd color

Lineoptional
Legend 36

Text for the 3rd color

Lineoptional
Legend 47

Text for the 4th color

Lineoptional
Legend 58

Text for the 5th color

Lineoptional
Legend 69

Text for the 6th color

Lineoptional
Legend 710

Text for the 7th color

Lineoptional
Legend 811

Text for the 8th color

Lineoptional
Legend 912

Text for the 9th color

Lineoptional
Legend 1013

Text for the 10th color

Lineoptional
Legend 1114

Text for the 11th color

Lineoptional
Legend 1215

Text for the 12th color

Lineoptional

Examples

With legend text

{{BrewerColorLegends|Oranges|4|30em|One|Two|Three|Four}}

produces: Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.

Without legend text

{{BrewerColorLegends|Set3|10|20em}}

produces: Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.

See also