Module:Infobox: Difference between revisions

m
1 revision imported: Import "Information Appliance" infobox template
m (spacing)
m (1 revision imported: Import "Information Appliance" infobox template)
Line 9:
local function fixChildBoxes(sval, tt)
local function notempty( s ) return s and s:match( '%S' ) end
 
if notempty(sval) then
local marker = '<span class=special_infobox_marker>'
Line 109:
-- or a label/data cell combination.
local function addRow(rowArgs)
 
if rowArgs.header and rowArgs.header ~= '_BLANK_' then
has_rows = true
Line 299:
local function preprocessRows()
if not args.autoheaders then return end
 
local rownums = union(getArgNums('header'), getArgNums('data'))
table.sort(rownums)
Line 403:
local function loadTemplateStyles()
local frame = mw.getCurrentFrame()
 
-- See function description
local base_templatestyles = frame:extensionTag{
Line 414:
}
end
 
local child_templatestyles = ''
if args['child templatestyles'] then child_templatestyles = frame:extensionTag{
Line 420:
}
end
 
local grandchild_templatestyles = ''
if args['grandchild templatestyles'] then grandchild_templatestyles = frame:extensionTag{
Line 470:
end
structure_infobox_common()
 
return loadTemplateStyles() .. root
end
Line 604:
origArgs = frame
end
 
parseDataParameters()
 
return _infobox()
end
Line 614:
origArgs = {}
for k,v in pairs(frame.args) do origArgs[k] = mw.text.trim(v) end
 
parseDataParameters()
 
return _infobox()
end