Module:Module introspection: Difference between revisions

Ganaram inukshuk (talk | contribs)
move text for lack of code descriptions
Ganaram inukshuk (talk | contribs)
m bugfix
Line 312: Line 312:
-- Return the tables
-- Return the tables
-- Styling may be improved at a later time
-- Styling may be improved at a later time
local combined_tables = table.concat({
local lines = {
'{| class="wikitable mw-collapsible"',
'{| class="wikitable mw-collapsible"',
'! colspan="2" | Introspection summary for Module:' .. module_name .. " ",
'! colspan="2" | Introspection summary for Module:' .. module_name .. " ",
Line 320: Line 320:
'| style="vertical-align:top; border-left:none" |',
'| style="vertical-align:top; border-left:none" |',
dep_table,
dep_table,
}, "\n")
}


-- Check whether descriptions was passed in
-- Check whether descriptions was passed in
Line 338: Line 338:
table.insert(lines, "|}")
table.insert(lines, "|}")


return combined_tables
return table.concat(lines, "\n")
end
end