local p =
local state_links =
function p._showtable(frame, args) local reference_heading = frame:expandTemplate local root = mw.html.create('table') :addClass('wikitable sortable') :css('line-height', 1.2) :css('margin-left', 'auto') :css('margin-right', 'auto') -- table title root:tag('caption'):wikitext('Jurisdictions enacting law to join the National Popular Vote Interstate Compact') -- header row local row = root:tag('tr') row:tag('th'):attr('scope', 'col'):wikitext('No.') row:tag('th'):attr('scope', 'col'):wikitext('Jurisdiction') row:tag('th'):attr('scope', 'col'):attr('data-sort-type', 'date'):wikitext('Date adopted') row:tag('th'):attr('scope', 'col'):attr('class','unsortable'):wikitext('Method of adoption') row:tag('th'):attr('scope', 'col'):attr('class','unsortable'):wikitext(reference_heading) row:tag('th'):attr('scope', 'col'):wikitext('Current
electoral
votes (EV)') local k = 1 local EVs = 0 while args['state' .. k] do local seats = args['state' .. k]
return rootend
function p.main(frame) local args = require('Module:Arguments').getArgs(frame) return p._showtable(frame, args)end
return p