Content deleted Content added
m simplify |
add "clear: right;" to the main CSS |
||
(2 intermediate revisions by the same user not shown) | |||
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 = {}
for k, _ in pairs(args) do
if type(k) == 'string' then
local num = k:match('^' ..
if num then
table.insert(nums, tonumber(num))
Line 47:
end
table.sort(nums)
for _, num in ipairs(nums) do
local arg_name =
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 64 ⟶ 61:
local args = getArgs(frame)
local tbl = mw.html.create('table')
:cssText('clear: right; float:right; border:1px navy solid;')
tbl:tag('caption')
:wikitext('Portal toolbox')
local rootTitle = mw.title.getCurrentTitle().rootPageTitle.subjectPageTitle
return tbl
end
|