FANDOM


-- This module is invoked by Template:Tabber
-- Enhances behavior of the <tabber> tag
 
local p = {}
local getArgs = require('Module:Arguments').getArgs
 
function p.main(frame)
    args = getArgs(frame)
    -- if(pcall(p._main, args)) then
    --     return p._main(args)
    -- else
    --     return 'something\'s wrong'
    -- end
    return p._main(args)
end
 
function p._main(args)
    local out = '<tabber></tabber>'
    local cnt = 0
    for k, v in ipairs(args) do
        cnt = cnt + 1
    end
    -- for i = 1, 3 do
    --     out = out .. '\n|-|' .. i .. '=' .. 'content ' .. i
    -- end
 
    return cnt .. '</tabber>'
end
 
return p

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.