请输入您要查询的百科知识:

 

词条 Module:NPVIC status/doc
释义

  1. Functions

Accepts raw status strings from the article National Popular Vote Interstate Compact and returns processed status information for use in that article.

The parameter "section" takes the name of a labelled section of the article, either "passed" or "pending", 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

"States" returns the number of states (excluding DC) listed in the input string. An unnamed argument with value "spell" will cause the number to be spelled out per NUMERAL.

{{#invoke:{{BASEPAGENAME}}|states|section=section}}

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

{{#invoke:{{BASEPAGENAME}}|EVs|section=section}}

"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:{{BASEPAGENAME}}|overlays|section=section|size=size}}

"Signatories" returns a bulleted list of the jurisdictions where the compact has passed into law, with their flags. The "passed" section is used automatically.

{{#invoke:{{BASEPAGENAME}}|signatories}}

{{#ifeq:{{SUBPAGENAME}}|sandbox | |

}}

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/29 9:19:41