Module:Electowidget: Difference between revisions
Content added Content deleted
(Giving up for now) |
(More futzing) |
||
Line 40: | Line 40: | ||
function p.get_data( |
function p.get_data(frame) |
||
-- copied and adapted from |
-- copied and adapted from |
||
-- https://en.wikipedia.org/wiki/Module:Format_TemplateData |
-- https://en.wikipedia.org/wiki/Module:Format_TemplateData |
||
-- local title, s = mw.title.new(tostring(datapage)) |
-- local title, s = mw.title.new(tostring(datapage)) |
||
local title = mw.title.new(frame.args[1]) |
|||
⚫ | |||
⚫ | |||
return title |
|||
⚫ | |||
⚫ | |||
-- return mw.text.jsonEncode(s) |
|||
⚫ | |||
-- return mw.text.jsonEncode(datapage) |
|||
return table.concat(datapage, ",") |
|||
⚫ | |||
local i, j = s:find( "<electowidget>", 1, true ) |
local i, j = s:find( "<electowidget>", 1, true ) |
||
local r |
local r |