Content deleted Content added
m rename function parameter for clarity |
rename functions for clarity; rename local variables for clarity; clean up |
||
Line 3:
p = {}
local function
local row = tbl:tag('tr')
row:tag('th')
Line 14:
end
local function
local row = tbl:tag('tr')
row:tag('td')
Line 22:
end
local function
local row = tbl:tag('tr')
row:tag('td')
Line 30:
end
local function
if row_function == nil then
row_function =
end
local nums = {}
Line 47:
end
table.sort(nums)
for _, num in ipairs(nums) do
local arg_name = arg_prefix .. num
local
local pagename = page_prefix ..
local text = args[arg_name .. 'text']
local right = args[arg_name .. 'right']
row_function(frame, tbl, pagename, text or arg, right)▼
▲ row_function(frame, tbl, pagename, text, right)
end
end
Line 67 ⟶ 64:
tbl:tag('caption')
:wikitext('Portal toolbox')
local rootTitle = mw.title.getCurrentTitle().rootPageTitle.subjectPageTitle
return tbl
end
|