Module:Utilities: Difference between revisions

Jump to navigation Jump to search
Sur (talk | contribs)
m pre_expand_str test
Sur (talk | contribs)
m renderTabber() test
Line 52: Line 52:
return str
return str
end
end
function p.renderTabber()
    local tabNames = {"Home", "Profile", "Settings"}
    local tabContents = {"Content for Home", "Content for Profile", "Content for Settings"}
   
    local result = '<tabber>\n'
   
    for i = 1, #tabNames do
        result = result .. tabNames[i] .. ' = ' .. tabContents[i] .. '\n'
    end
   
    result = result .. '</tabber>'
   
    return result
end
return p
return p