Module:US elections imagemap/doc: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
|||
Line 15: | Line 15: | ||
| '''link_template''' || Template for links || 2018 STATE gubernatorial election |
| '''link_template''' || Template for links || 2018 STATE gubernatorial election |
||
|- |
|- |
||
⚫ | |||
| '''cycle''' || The election cycle || Gov2 |
|||
|- |
|- |
||
| extra_states || Extra states to include |
| extra_states || Extra states to include{{efn|name=semicolon|(<code>;</code> delimited)}} || OR;WV{{efn|name=datapage}} |
||
|- |
|||
| extra_lines || Extra raw lines to include{{efn|name=semicolon}} || <code><nowiki>rect 702 391 725 423 [[2020–21 United States Senate special election in Georgia]]</nowiki></code> |
|||
|- |
|||
| state_overrides || Set a custom link for the state, instead of following the template{{efn|name=semicolon}} || AZ=2020 United States Senate special election in Arizona |
|||
|} |
|} |
||
{{notelist}} |
|||
⚫ | |||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | |
Revision as of 05:30, 19 January 2021
Related pages |
---|
Usage
For general usage, use the wrapped template at {{US elections imagemap}}. This page is mainly documentation for Module maintainers.
Functions
makeMap
Generates the inner part of an imagemap. Needs to be wrapped with imagemap tags to work, this only generates state shapes and links. This is due to a limitation in Lua modules.
Parameter | Usage | Example |
---|---|---|
link_template | Template for links | 2018 STATE gubernatorial election |
cycle | Election cycle | Gov2[a] |
extra_states | Extra states to include[b] | OR;WV[a] |
extra_lines | Extra raw lines to include[b] | rect 702 391 725 423 [[2020–21 United States Senate special election in Georgia]]
|
state_overrides | Set a custom link for the state, instead of following the template[b] | AZ=2020 United States Senate special election in Arizona |