قالب:BrewerColorLegends/doc

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)
Divergent (1-11)
Qualitative (1-8/12)

Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools.

BrewerColorLegends

Display a Brewer's color palette

وسائط القالب

وسيطوصفنوعحالة
Palette1

Name of the color palette to use

سطرمطلوب
Color number2

Color number required from 3 to 9/12

رقممطلوب
Column width3

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

سطرمطلوب
Legend 14

Text for the 1st color

سطراختياري
Legend 25

Text for the 2nd color

سطراختياري
Legend 36

Text for the 3rd color

سطراختياري
Legend 47

Text for the 4th color

سطراختياري
Legend 58

Text for the 5th color

سطراختياري
Legend 69

Text for the 6th color

سطراختياري
Legend 710

Text for the 7th color

سطراختياري
Legend 811

Text for the 8th color

سطراختياري
Legend 912

Text for the 9th color

سطراختياري
Legend 1013

Text for the 10th color

سطراختياري
Legend 1114

Text for the 11th color

سطراختياري
Legend 1215

Text for the 12th color

سطراختياري

Examples

With legend text

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

produces: خطأ لوا في وحدة:TNT على السطر 169: Dataset c:Data:I18n/ComplForColorModules.tab is not valid.

Without legend text

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

produces: خطأ لوا في وحدة:TNT على السطر 169: Dataset c:Data:I18n/ComplForColorModules.tab is not valid.

See also