Template:BrewerColors/doc
| This is a documentation subpage for Template:BrewerColors. It may contain usage information, categories and other content that is not part of the original template page. |
| 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
- YlGnBu
- GnBu
- BuGn
- PuBuGn
- PuBu
- BuPu
- RdPu
- PuRd
- OrRd
- YlOrRd
- YlOrBr
- Purples
- Blues
- Greens
- Oranges
- Reds
- Greys
- PuOr
- BrBG
- PRGn
- PiYG
- RdBu
- RdGy
- RdYlBu
- Spectral
- RdYlGn
- Accent
- Dark2
- Paired
- Pastel1
- Pastel2
- Set1
- Set2
- Set3
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}} |
|
{{BrewerColors|Greens_i|3}} |
|
{{BrewerColors|Set1|8}} |
|
{{BrewerColors|Accent|4|-}} |
#7fc97f #beaed4 #fdc086 #ffff99 |
{{BrewerColors|Accent|4|a}} |
#7fc97fff #beaed4ff #fdc086ff #ffff99ff |
See also
- {{ChartColors}}
- {{BrewerColorLegends}}
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.