https://en.wikipedia.org/w/index.php?action=history&feed=atom&title=Module%3ANPVIC_table Module:NPVIC table - Revision history 2025-06-30T00:24:43Z Revision history for this page on the wiki MediaWiki 1.45.0-wmf.7 https://en.wikipedia.org/w/index.php?title=Module:NPVIC_table&diff=1219207134&oldid=prev Brainiac242: Aligned EVs to the center (they look weird aligned to the right) 2024-04-16T10:48:45Z <p>Aligned EVs to the center (they look weird aligned to the right)</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="en"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Previous revision</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 10:48, 16 April 2024</td> </tr><tr> <td colspan="2" class="diff-lineno">Line 71:</td> <td colspan="2" class="diff-lineno">Line 71:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> row:tag('th'):attr('scope', 'col'):attr('class','unsortable'):wikitext('Method of adoption')</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> row:tag('th'):attr('scope', 'col'):attr('class','unsortable'):wikitext('Method of adoption')</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> row:tag('th'):attr('scope', 'col'):attr('class','unsortable'):wikitext(reference_heading)</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> row:tag('th'):attr('scope', 'col'):attr('class','unsortable'):wikitext(reference_heading)</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> row:tag('th'):attr('scope', 'col'):wikitext('Current&lt;br/&gt;electoral&lt;br/&gt;votes (<del style="font-weight: bold; text-decoration: none;">EV</del>)')</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> row:tag('th'):attr('scope', 'col'):wikitext('Current&lt;br/&gt;electoral&lt;br/&gt;votes (<ins style="font-weight: bold; text-decoration: none;">EVs</ins>)')</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> local k = 1</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> local k = 1</div></td> </tr> <tr> <td colspan="2" class="diff-lineno">Line 83:</td> <td colspan="2" class="diff-lineno">Line 83:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> row:tag('td'):wikitext(args['method' .. k])</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> row:tag('td'):wikitext(args['method' .. k])</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> row:tag('td'):css('text-align','center'):wikitext(args['ref' .. k])</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> row:tag('td'):css('text-align','center'):wikitext(args['ref' .. k])</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> row:tag('td'):css('text-align','<del style="font-weight: bold; text-decoration: none;">right</del>'):wikitext(tonumber(seats) + 2)</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> row:tag('td'):css('text-align','<ins style="font-weight: bold; text-decoration: none;">center</ins>'):wikitext(tonumber(seats) + 2)</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> EVs = EVs + tonumber(seats) + 2</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> EVs = EVs + tonumber(seats) + 2</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> k = k + 1</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> k = k + 1</div></td> </tr> <tr> <td colspan="2" class="diff-lineno">Line 91:</td> <td colspan="2" class="diff-lineno">Line 91:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> row = root:tag('tr'):addClass('sortbottom')</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> row = root:tag('tr'):addClass('sortbottom')</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> row:tag('th'):attr('colspan', 5):css('text-align', 'right'):wikitext('Total')</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> row:tag('th'):attr('colspan', 5):css('text-align', 'right'):wikitext('Total')</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> row:tag('th'):css('text-align', '<del style="font-weight: bold; text-decoration: none;">right</del>'):wikitext(EVs)</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> row:tag('th'):css('text-align', '<ins style="font-weight: bold; text-decoration: none;">center</ins>'):wikitext(EVs)</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> row = root:tag('tr'):addClass('sortbottom')</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> row = root:tag('tr'):addClass('sortbottom')</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> row:tag('th'):attr('colspan', 5):css('text-align', 'right'):wikitext('Percentage of the 270 EVs needed')</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> row:tag('th'):attr('colspan', 5):css('text-align', 'right'):wikitext('Percentage of the 270 EVs needed')</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> row:tag('th'):css('text-align', '<del style="font-weight: bold; text-decoration: none;">right</del>'):wikitext(percent)</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> row:tag('th'):css('text-align', '<ins style="font-weight: bold; text-decoration: none;">center</ins>'):wikitext(percent)</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> return root</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> return root</div></td> </tr> </table> Brainiac242 https://en.wikipedia.org/w/index.php?title=Module:NPVIC_table&diff=1151515028&oldid=prev Swpb: No point in these two columns being sortable 2023-04-24T15:00:45Z <p>No point in these two columns being sortable</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="en"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Previous revision</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 15:00, 24 April 2023</td> </tr><tr> <td colspan="2" class="diff-lineno">Line 69:</td> <td colspan="2" class="diff-lineno">Line 69:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> row:tag('th'):attr('scope', 'col'):wikitext('Jurisdiction')</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> row:tag('th'):attr('scope', 'col'):wikitext('Jurisdiction')</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> row:tag('th'):attr('scope', 'col'):attr('data-sort-type', 'date'):wikitext('Date adopted')</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> row:tag('th'):attr('scope', 'col'):attr('data-sort-type', 'date'):wikitext('Date adopted')</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> row:tag('th'):attr('scope', 'col'):wikitext('Method of adoption')</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> row:tag('th'):attr('scope', 'col<ins style="font-weight: bold; text-decoration: none;">'):attr('class','unsortable</ins>'):wikitext('Method of adoption')</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> row:tag('th'):attr('scope', 'col'):wikitext(reference_heading)</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> row:tag('th'):attr('scope', 'col<ins style="font-weight: bold; text-decoration: none;">'):attr('class','unsortable</ins>'):wikitext(reference_heading)</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> row:tag('th'):attr('scope', 'col'):wikitext('Current&lt;br/&gt;electoral&lt;br/&gt;votes (EV)')</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> row:tag('th'):attr('scope', 'col'):wikitext('Current&lt;br/&gt;electoral&lt;br/&gt;votes (EV)')</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td> </tr> </table> Swpb https://en.wikipedia.org/w/index.php?title=Module:NPVIC_table&diff=1149960342&oldid=prev Brainiac242: Used DC’s formal name for consistency in the article National Popular Vote Interstate Compact 2023-04-15T14:14:20Z <p>Used DC’s formal name for consistency in the article <a href="/wiki/National_Popular_Vote_Interstate_Compact" title="National Popular Vote Interstate Compact">National Popular Vote Interstate Compact</a></p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="en"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Previous revision</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 14:14, 15 April 2023</td> </tr><tr> <td colspan="2" class="diff-lineno">Line 10:</td> <td colspan="2" class="diff-lineno">Line 10:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> ["CT"] = "[[Connecticut]]",</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> ["CT"] = "[[Connecticut]]",</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> ["DE"] = "[[Delaware]]",</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> ["DE"] = "[[Delaware]]",</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> ["DC"] = "[[Washington, D.C.]]",</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> ["DC"] = "[[Washington, D.C.<ins style="font-weight: bold; text-decoration: none;">|District of Columbia</ins>]]",</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> ["FL"] = "[[Florida]]",</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> ["FL"] = "[[Florida]]",</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> ["GA"] = "[[Georgia (U.S. state)|Georgia]]",</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> ["GA"] = "[[Georgia (U.S. state)|Georgia]]",</div></td> </tr> </table> Brainiac242 https://en.wikipedia.org/w/index.php?title=Module:NPVIC_table&diff=1146259589&oldid=prev Frietjes: for use in National Popular Vote Interstate Compact 2023-03-23T19:21:22Z <p>for use in <a href="/wiki/National_Popular_Vote_Interstate_Compact" title="National Popular Vote Interstate Compact">National Popular Vote Interstate Compact</a></p> <p><b>New page</b></p><div>local p = {}<br /> <br /> local state_links = {<br /> [&quot;AL&quot;] = &quot;[[Alabama]]&quot;,<br /> [&quot;AK&quot;] = &quot;[[Alaska]]&quot;,<br /> [&quot;AZ&quot;] = &quot;[[Arizona]]&quot;,<br /> [&quot;AR&quot;] = &quot;[[Arkansas]]&quot;,<br /> [&quot;CA&quot;] = &quot;[[California]]&quot;,<br /> [&quot;CO&quot;] = &quot;[[Colorado]]&quot;,<br /> [&quot;CT&quot;] = &quot;[[Connecticut]]&quot;,<br /> [&quot;DE&quot;] = &quot;[[Delaware]]&quot;,<br /> [&quot;DC&quot;] = &quot;[[Washington, D.C.]]&quot;,<br /> [&quot;FL&quot;] = &quot;[[Florida]]&quot;,<br /> [&quot;GA&quot;] = &quot;[[Georgia (U.S. state)|Georgia]]&quot;,<br /> [&quot;HI&quot;] = &quot;[[Hawaii]]&quot;,<br /> [&quot;ID&quot;] = &quot;[[Idaho]]&quot;,<br /> [&quot;IL&quot;] = &quot;[[Illinois]]&quot;,<br /> [&quot;IN&quot;] = &quot;[[Indiana]]&quot;,<br /> [&quot;IA&quot;] = &quot;[[Iowa]]&quot;,<br /> [&quot;KS&quot;] = &quot;[[Kansas]]&quot;,<br /> [&quot;KY&quot;] = &quot;[[Kentucky]]&quot;,<br /> [&quot;LA&quot;] = &quot;[[Louisiana]]&quot;,<br /> [&quot;ME&quot;] = &quot;[[Maine]]&quot;,<br /> [&quot;MD&quot;] = &quot;[[Maryland]]&quot;,<br /> [&quot;MA&quot;] = &quot;[[Massachusetts]]&quot;,<br /> [&quot;MI&quot;] = &quot;[[Michigan]]&quot;,<br /> [&quot;MN&quot;] = &quot;[[Minnesota]]&quot;,<br /> [&quot;MS&quot;] = &quot;[[Mississippi]]&quot;,<br /> [&quot;MO&quot;] = &quot;[[Missouri]]&quot;,<br /> [&quot;MT&quot;] = &quot;[[Montana]]&quot;,<br /> [&quot;NE&quot;] = &quot;[[Nebraska]]&quot;,<br /> [&quot;NV&quot;] = &quot;[[Nevada]]&quot;,<br /> [&quot;NH&quot;] = &quot;[[New Hampshire]]&quot;,<br /> [&quot;NJ&quot;] = &quot;[[New Jersey]]&quot;,<br /> [&quot;NM&quot;] = &quot;[[New Mexico]]&quot;,<br /> [&quot;NY&quot;] = &quot;[[New York (state)|New York]]&quot;,<br /> [&quot;NC&quot;] = &quot;[[North Carolina]]&quot;,<br /> [&quot;ND&quot;] = &quot;[[North Dakota]]&quot;,<br /> [&quot;OH&quot;] = &quot;[[Ohio]]&quot;,<br /> [&quot;OK&quot;] = &quot;[[Oklahoma]]&quot;,<br /> [&quot;OR&quot;] = &quot;[[Oregon]]&quot;,<br /> [&quot;PA&quot;] = &quot;[[Pennsylvania]]&quot;,<br /> [&quot;RI&quot;] = &quot;[[Rhode Island]]&quot;,<br /> [&quot;SC&quot;] = &quot;[[South Carolina]]&quot;,<br /> [&quot;SD&quot;] = &quot;[[South Dakota]]&quot;,<br /> [&quot;TN&quot;] = &quot;[[Tennessee]]&quot;,<br /> [&quot;TX&quot;] = &quot;[[Texas]]&quot;,<br /> [&quot;UT&quot;] = &quot;[[Utah]]&quot;,<br /> [&quot;VT&quot;] = &quot;[[Vermont]]&quot;,<br /> [&quot;VA&quot;] = &quot;[[Virginia]]&quot;,<br /> [&quot;WA&quot;] = &quot;[[Washington (state)|Washington]]&quot;,<br /> [&quot;WV&quot;] = &quot;[[West Virginia]]&quot;,<br /> [&quot;WI&quot;] = &quot;[[Wisconsin]]&quot;,<br /> [&quot;WY&quot;] = &quot;[[Wyoming]]&quot;<br /> }<br /> <br /> function p._showtable(frame, args)<br /> local reference_heading = frame:expandTemplate{title = &#039;Reference column heading&#039;}<br /> local root = mw.html.create(&#039;table&#039;)<br /> :addClass(&#039;wikitable sortable&#039;)<br /> :css(&#039;line-height&#039;, 1.2)<br /> :css(&#039;margin-left&#039;, &#039;auto&#039;)<br /> :css(&#039;margin-right&#039;, &#039;auto&#039;)<br /> -- table title<br /> root:tag(&#039;caption&#039;):wikitext(&#039;Jurisdictions enacting law to join the National Popular Vote Interstate Compact&#039;)<br /> -- header row<br /> local row = root:tag(&#039;tr&#039;)<br /> row:tag(&#039;th&#039;):attr(&#039;scope&#039;, &#039;col&#039;):wikitext(&#039;No.&#039;)<br /> row:tag(&#039;th&#039;):attr(&#039;scope&#039;, &#039;col&#039;):wikitext(&#039;Jurisdiction&#039;)<br /> row:tag(&#039;th&#039;):attr(&#039;scope&#039;, &#039;col&#039;):attr(&#039;data-sort-type&#039;, &#039;date&#039;):wikitext(&#039;Date adopted&#039;)<br /> row:tag(&#039;th&#039;):attr(&#039;scope&#039;, &#039;col&#039;):wikitext(&#039;Method of adoption&#039;)<br /> row:tag(&#039;th&#039;):attr(&#039;scope&#039;, &#039;col&#039;):wikitext(reference_heading)<br /> row:tag(&#039;th&#039;):attr(&#039;scope&#039;, &#039;col&#039;):wikitext(&#039;Current&lt;br/&gt;electoral&lt;br/&gt;votes (EV)&#039;)<br /> <br /> local k = 1<br /> local EVs = 0<br /> while args[&#039;state&#039; .. k] do<br /> local seats = args[&#039;state&#039; .. k] == &#039;DC&#039; and 1 or frame:expandTemplate{ title = &#039;USHRseats&#039;, args = {args[&#039;state&#039; .. k]}}<br /> row = root:tag(&#039;tr&#039;)<br /> row:tag(&#039;th&#039;):attr(&#039;scope&#039;, &#039;row&#039;):wikitext(k)<br /> row:tag(&#039;td&#039;):wikitext(state_links[args[&#039;state&#039; .. k]] or args[&#039;state&#039; .. k])<br /> row:tag(&#039;td&#039;):css(&#039;text-align&#039;,&#039;right&#039;):wikitext(args[&#039;date&#039; .. k])<br /> row:tag(&#039;td&#039;):wikitext(args[&#039;method&#039; .. k])<br /> row:tag(&#039;td&#039;):css(&#039;text-align&#039;,&#039;center&#039;):wikitext(args[&#039;ref&#039; .. k])<br /> row:tag(&#039;td&#039;):css(&#039;text-align&#039;,&#039;right&#039;):wikitext(tonumber(seats) + 2)<br /> EVs = EVs + tonumber(seats) + 2<br /> k = k + 1<br /> end<br /> <br /> local percent = frame:expandTemplate{ title = &#039;percent&#039;, args = { EVs, 270, 1} }<br /> row = root:tag(&#039;tr&#039;):addClass(&#039;sortbottom&#039;)<br /> row:tag(&#039;th&#039;):attr(&#039;colspan&#039;, 5):css(&#039;text-align&#039;, &#039;right&#039;):wikitext(&#039;Total&#039;)<br /> row:tag(&#039;th&#039;):css(&#039;text-align&#039;, &#039;right&#039;):wikitext(EVs)<br /> row = root:tag(&#039;tr&#039;):addClass(&#039;sortbottom&#039;)<br /> row:tag(&#039;th&#039;):attr(&#039;colspan&#039;, 5):css(&#039;text-align&#039;, &#039;right&#039;):wikitext(&#039;Percentage of the 270 EVs needed&#039;)<br /> row:tag(&#039;th&#039;):css(&#039;text-align&#039;, &#039;right&#039;):wikitext(percent)<br /> <br /> return root<br /> end<br /> <br /> function p.main(frame)<br /> local args = require(&#039;Module:Arguments&#039;).getArgs(frame)<br /> return p._showtable(frame, args)<br /> end<br /> <br /> return p</div> Frietjes