Module:Electowidget: Difference between revisions

added datapage param to p.get_data() rather than hardcoding to "2009 Burlington, Vermont Mayoral Election data"
(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("2009 Burlington, Vermont Mayoral Election data"datapage)
local s = title:getContent()
local i, j = s:find( "<electowidget>", 1, true )