Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:US elections imagemap/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{lua sidebar}} {{Module rating |beta}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> == Usage == '''For general usage, use the wrapped template at {{t|US elections imagemap}}. This page is mainly documentation for Module maintainers.''' == Functions == === <code>makeMap</code> === 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. {| class="wikitable" |+ Parameters |- ! Parameter !! Usage !! Example |- | '''link_template''' || Template for links || 2018 STATE gubernatorial election |- | '''cycle''' || Election cycle || Gov2{{efn|name=datapage|For valid values of {{para|cycle}} and {{para|extra_states}}, see [[Module:US elections imagemap/data]].}} |- | 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 |- | excluded_states || States to exclude. Overridden by <code>extra_states</code>{{efn|name=semicolon}} || AK;HI |} {{notelist}} == Submodules == * [[Module:US elections imagemap/utils]] β string utilities * [[Module:US elections imagemap/data]] β shapes and cycle data <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | <!-- Categories below this line, please; interwikis at Wikidata --> }}</includeonly>
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Efn
(
edit
)
Template:Lua sidebar
(
edit
)
Template:Main other
(
edit
)
Template:Module rating
(
edit
)
Template:Notelist
(
edit
)
Template:Para
(
edit
)
Template:Reflist
(
edit
)
Template:Reflist/styles.css
(
edit
)
Template:T
(
edit
)
Module:Check for unknown parameters
(
edit
)