وحدة:US elections imagemap/شرح
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[أ] |
extra_states | Extra states to include[ب] | OR;WV[أ] |
extra_lines | Extra raw lines to include[ب] | 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[ب] | AZ=2020 United States Senate special election in Arizona |
excluded_states | States to exclude. Overridden by extra_states [ب] |
AK;HI |
Submodules[عدل]
- وحدة:US elections imagemap/utils — string utilities
- وحدة:US elections imagemap/data — shapes and cycle data
هذه صفحة توثيق وحدة:US elections imagemap الفرعية، لشرح القالب وتصنيفه، وهي لا تدخل في استخدامه. |