Module:Electowidget

-- 2019-12-09 - I might port electowidget to Lua. Maybe... local p = {}

function p.get_data -- copied and adapted from --  https://en.wikipedia.org/wiki/Module:Format_TemplateData local title = mw.title.new("2009 Burlington, Vermont Mayoral Election data") local s = title:getContent local i, j = s:find( " ", 1, true ) local r   if i then local k = s:find( " ", j, true ) if k then r = mw.text.trim( s:sub( j + 1, k - 1 ) ) end end return r end -- find

return p