Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a4107ffa482a90ce

Jump to content

Module:US elections imagemap/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

For general usage, use the wrapped template at {{US elections imagemap}}. This page is mainly documentation for Module maintainers.

Functions

[edit]

makeMap

[edit]

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
ParameterUsageExample
link_templateTemplate for links2018 STATE gubernatorial election
cycleElection cycleGov2[a]
extra_statesExtra states to include[b]OR;WV[a]
extra_linesExtra raw lines to include[b]rect 702 391 725 423 [[2020–21 United States Senate special election in Georgia]]
state_overridesSet a custom link for the state, instead of following the template[b]AZ=2020 United States Senate special election in Arizona
excluded_statesStates to exclude. Overridden by extra_states[b]AK;HI
  1. 1 2 For valid values of |cycle= and |extra_states=, see Module:US elections imagemap/data.
  2. 1 2 3 4 (; delimited)

Submodules

[edit]