Module:US elections imagemap/doc

MyWikiBiz, Author Your Legacy — Friday November 29, 2024
Jump to navigationJump to search

This is the documentation page for Module:US elections imagemap

Template:Lua sidebar Template:Module rating

Usage

For general usage, use the wrapped template at Template:T. 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.

Parameters
Parameter Usage Example
link_template Template for links 2018 STATE gubernatorial election
cycle Election cycle Gov2Template:Efn
extra_states Extra states to includeTemplate:Efn OR;WVTemplate:Efn
extra_lines Extra raw lines to includeTemplate:Efn 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 templateTemplate:Efn AZ=2020 United States Senate special election in Arizona
excluded_states States to exclude. Overridden by extra_statesTemplate:Efn AK;HI

Template:Notelist

Submodules