Jump to content

Module:NPVIC status/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Swpb (talk | contribs) at 16:30, 4 January 2019. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Returns status information used on the article National Popular Vote Interstate Compact.

The Parameter "section" takes a labelled section of the article, containing a string of state equivalents (identified by US postal abbreviation, with any non-letter separator) to use as inputs to the specified function.

Functions

The function "states" returns the number of states (excluding DC) listed in the input string.

{{#invoke:NPVIC status|states|section=section}}

The function "EVs" returns the total number of electoral votes controlled by jurisdictions listed in the input string.

{{#invoke:NPVIC status|EVs|section=section}}

The function "overlays" returns overlay maps indicating the compact has a status of "passed" (green) or "pending" (yellow), in the jurisdictions listed in the input string. This function takes an additional "size" argument to ensure that the overlay images align with the base map.

{{#invoke:NPVIC status|overlays|section=section|size=size}}

The function "signatories" returns a bulletted list of the jurisdictions listed in the input string, with their flags.

{{#invoke:NPVIC status|signatories|section=section}}