Difference between revisions of "Template:BrewerColors"
imported>Jmarchn (←Created page with '{{<includeonly>safesubst:</includeonly>#invoke:BrewerColors|ShowColors}}<noinclude> {{documentation}} </noinclude>') |
imported>Frietjes |
||
| Line 1: | Line 1: | ||
| − | + | <includeonly>{{safesubst:#invoke:BrewerColors|ShowColors}}</includeonly><noinclude> | |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 19:12, 17 July 2020
| 30px | This template uses Lua: |
This template shows the Brewer colors. Based on specifications and designs developed by Cynthia Brewer ([1]). These color palettes can be used for statistical diagrams and for maps.
To translate or review the translation of the module to your language, edit carefully Data:I18n/BrewerColors.tab.
Syntax
{{BrewerColors|color palette|number of colors|show the color number}}
The number of colors must be from 3 to 9 or 12, according to the palette.
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.
Brewers color palettes
Valid names and full color representation for each palette. Moving the mouse cursor over each box the color number appears.
- 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.
- 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.
- 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
TemplateData for BrewerColors
Show colors of Brewer palettes
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Palette name | 1 | Name of the palette to use | Line | required |
| Number of colors | 2 | The number of colors to show on the palette, from 3 to 9/12 | Number | required |
| Show color number | 3 | Write the color number after the box: - (only number) or (with alpha channel) | Number | optional |
Examples
| Code | Result |
|---|---|
{{BrewerColors|Greens|3}} |
Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab. |
{{BrewerColors|Greens_i|3}} |
Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab. |
{{BrewerColors|Set1|8}} |
Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab. |
{{BrewerColors|Accent|4|-}} |
Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab. |
{{BrewerColors|Accent|4|a}} |
Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab. |
See also
- {{ChartColors}}
- {{BrewerColorLegends}}
| The above documentation is transcluded from Template:BrewerColors/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |