4,236
edits
(Still futzing) |
(added datapage param to p.get_data() rather than hardcoding to "2009 Burlington, Vermont Mayoral Election data") |
||
Line 37:
end
function p.get_data(datapage)
-- copied and adapted from
-- https://en.wikipedia.org/wiki/Module:Format_TemplateData
local title = mw.title.new(
local s = title:getContent()
local i, j = s:find( "<electowidget>", 1, true )
|