Content deleted Content added
m prefer user supplied text to 'subpageText' |
reduce amount of duplication needed |
||
Line 22:
end
local function toolbox_section(frame, args, tbl, rootTitle, title, prefix, page_prefix)
toolbox_header_row(frame, tbl, title)
local nums = {}
Line 37:
local arg_name = prefix .. num
local a = args[arg_name]
local
local text = args[arg_name .. 'text']
local right = args[arg_name .. 'right']
if
text =
end
if right == nil then
right = edit(frame,
end
toolbox_row(frame, tbl,
end
end
Line 60:
toolbox_row(frame, tbl, rootTitle.fullText, nil, edit(frame, rootTitle.fullText))
toolbox_section(frame, args, tbl, rootTitle, 'Static subpages', 'static', rootTitle.fullText .. '/')
toolbox_section(frame, args, tbl, rootTitle, 'Dynamic subpages', 'dynamic', rootTitle.fullText .. '/')
toolbox_section(frame, args, tbl, rootTitle, 'Other', 'other', '')
return tbl
end
|