Module:Political choropleth legend/doc
Appearance
| This is a documentation subpage for Module:Political choropleth legend. It may contain usage information, categories and other content that is not part of the original module page. |
| This module is rated as pre-alpha. It is incomplete and may or may not be in active development. Do not use it in article namespace pages. A module remains in pre-alpha until its developer, or another editor who adopts it if it is abandoned for some time, considers the basic structure complete. |
| This module depends on the following other modules: |
Usage
[edit]This module implements the {{Political choropleth legend}} template. Please see the template page for usage instructions.
Updating the module
[edit]The political parties contained in this article are stored under /data and originate from the color schemes in WP:USALEGEND and Wikipedia:WikiProject Elections and Referendums/USA legend colors/proposals. All ranges matching the format "50-60" will be rendered as "50–60%" while "90" will be rendered as ">90%". As an example:
["Yes"] = {
["50-60"] = "#B6C8D9",
["60-70"] = "#7D9CBB",
["70-80"] = "#47729E",
["80-90"] = "#28497C",
["90"] = "#2B2457"
}
will render as
50–60%
60–70%
70–80%
>90%