Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:FBI QR code: Difference between revisions

From Hacks Guide Wiki
No edit summary
try callParserFunction instead
Line 51: Line 51:
end
end


function p.makeTabber(sections)
function p.makeTabber(frame, sections)
local tabber = mw.html.create('tabber')
local finalSections = ''
for k, v in ipairs(sections) do
for k, v in ipairs(sections) do
tabber:wikitext('|-|'..v[1]..'=\n\n', v[2])
finalSections = finalSections..'|-|'..v[1]..'=\n\n'..v[2]
end
end
return tostring(tabber)
return frame:callParserFunction('#tag:tabber', finalSections)
end
end


Line 72: Line 71:


local sections = p.makeSections(parent)
local sections = p.makeSections(parent)
return p.makeTabber(sections)
return p.makeTabber(parent, sections)
end
end


return p
return p