Jump to content

Module:BrewerColors/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
SporkBot (talk | contribs)
m Replace template per TFD outcome; no change in content
m grammar
Line 1: Line 1:
Used by '''{{tl|BrewerColors}}''' and '''{{tl|BrewerColorLegends}}'''
Used by '''{{tl|BrewerColors}}''' and '''{{tl|BrewerColorLegends}}'''


To translate or review the translation of the module to your language, edit carefully [[:Commons:Data:I18n/BrewerColors.tab|Data:I18n/BrewerColors.tab]].
To translate or review the translation of the module to your language, edit [[:Commons:Data:I18n/BrewerColors.tab|Data:I18n/BrewerColors.tab]] carefully.


===Function ShowColors===
===Function ShowColors===

Revision as of 21:57, 10 September 2020

Used by {{BrewerColors}} and {{BrewerColorLegends}}

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

Function ShowColors

Code Result
{{#invoke:BrewerColors|ShowColors|Oranges|5}}                    
{{#invoke:BrewerColors|ShowColors|Oranges_i|5}}                    
{{BrewerColors|Greens|9}}                                    
{{#invoke:BrewerColors|ShowColors|YlGn|3|-}}     #f7fcb9       #addd8e       #31a354  
{{#invoke:BrewerColors|ShowColors|YlGn|3|a}}     #f7fcb9ff       #addd8eff       #31a354ff  

Function Legends

{{#invoke:BrewerColors|Legends|Oranges|5|30em}}

produces:

  • feedde
  • fdbe85
  • fd8d3c
  • e6550d
  • a63603
  • {{div col|colwidth=30em}}
     {{legend|#feedde|}}
     {{legend|#fdbe85|}}
     {{legend|#fd8d3c|}}
     {{legend|#e6550d|}}
     {{legend|#a63603|}}
    {{div col end}}
    


    {{#invoke:BrewerColors|Legends|Greens|3||--Without data|One|Two|Three}}
    

    produces:

  • Without data
  • One
  • Two
  • Three
  •  {{legend|#b3b3b3|Without data}}
     {{legend|#e5f5e0|One}}
     {{legend|#a1d99b|Two}}
     {{legend|#31a354|Three}}