You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local p = {}
--- Helper function to get table length
--- @param table
--- @return int
local function getTableLength( t )
local length = 0
for _, __ in pairs(t) do
length = length + 1
end
return length
end
--- Render Tabber
--- @param table data { label = content }
--- @return string wikitext of Tabber
function p.renderTabber( data )
local tabberContent = {}
for i = 1, getTableLength( data ) / 2 do
local label = data[ 'label' .. i ]
if label ~= nil or label ~= '' then
000
1:0
Templates used on this page:
- Template:Documentation (view source) (protected)
- Module:Array (view source)
- Module:DependencyList (view source)
- Module:DependencyList/i18n.json (view source)
- Module:Documentation (view source)
- Module:Documentation/i18n.json (view source)
- Module:Documentation/styles.css (view source)
- Module:Faction (view source)
- Module:Format link (view source)
- Module:Hatnote (view source)
- Module:Hatnote/styles.css (view source)
- Module:Hatnote list (view source)
- Module:I18n (view source)
- Module:I18n/category/en.json (view source)
- Module:Mbox (view source)
- Module:Mbox/styles.css (view source)
- Module:Module toc (view source)
- Module:Paramtest (view source)
- Module:Tabber/doc (view source)
- Module:Translate (view source)
- Module:User error (view source)
- Module:Vehicle (view source)
- Module:Vehicle/sandbox (view source)
- Module:VehicleHardpoint (view source)
- Module:Yesno (view source)
Return to Module:Tabber.