Module:US elections imagemap/doc
Appearance
![]() | This is a documentation subpage for Module:US elections imagemap. It may contain usage information, categories and other content that is not part of the original module page. |
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 | The election cycle | Gov2 |
extra_states | Extra states to include (; delimited) |
OR;WV |
For valid values of |cycle=
, see Module:US elections imagemap/data.