Autopatrolled users, Bureaucrats, Comment administrators, Confirmed users, Rollbackers, Administrators
1,277
edits
(Testing different version of module; will immediately revert if this does not produce the intended result) |
Tag: Undo |
||
Line 9:
local args
local border
local listnums = {}
Line 57 ⟶ 56:
end
local function
if
-- Applying nowrap to lines in a table does not make sense.
return '\n' .. s ..'\n'▼
-- Add newlines to compensate for trim of x in |parm=x in a template.
return
end
if nowrapitems == 'yes' then
end▼
local lines = {}
for line in (item .. '\n'):gmatch('([^\n]*)\n') do
local prefix, content = line:match('^([*:;#]+)%s*(.*)')
if prefix and not content:match('^<span class="nowrap">') then
line = prefix .. '<span class="nowrap">' .. content .. '</span>'
end▼
:tag('td')▼
item = table.concat(lines, '\n')
end
if item:match('^[*:;#]') then
▲ end
return
end
Line 86 ⟶ 85:
args.name,
mini = 1,
fontstyle = (args.basestyle or '') .. ';' .. (args.titlestyle or '') .. ';background:none transparent;border:none;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;'
})
end
Line 98 ⟶ 97:
if not args.title then return end
local titleRow =
if args.titlegroup then
Line 139 ⟶ 138:
:css('font-size', '114%')
:css('margin', '0 4em')
:wikitext(
end
Line 156 ⟶ 155:
if not args.above then return end
:tag('td')
:addClass('navbox-abovebelow')
Line 164 ⟶ 163:
:attr('colspan', getAboveBelowColspan())
:tag('div')
:wikitext(
end
Line 170 ⟶ 169:
if not args.below then return end
tbl:tag('tr')
:tag('td')
:addClass('navbox-abovebelow')
Line 178 ⟶ 177:
:attr('colspan', getAboveBelowColspan())
:tag('div')
:wikitext(
end
Line 185 ⟶ 184:
--
local function renderListRow(tbl, index, listnum)
local row =
if index == 1 and args.imageleft then
Line 192 ⟶ 191:
:addClass('navbox-image')
:addClass(args.imageclass)
:css('width', '
:css('padding', '0px 2px 0px 0px')
:cssText(args.imageleftstyle)
:attr('rowspan',
:tag('div')
:wikitext(
end
Line 208 ⟶ 207:
:addClass(args.groupclass)
:cssText(args.basestyle)
:css('width', args.groupwidth or '1%') -- If groupwidth not specified, minimize width
▲ end
groupCell
Line 257 ⟶ 253:
:tag('div')
:css('padding', (index == 1 and args.list1padding) or args.listpadding or '0em 0.25em')
:wikitext(
if index == 1 and args.image then
Line 264 ⟶ 260:
:addClass('navbox-image')
:addClass(args.imageclass)
:css('width', '
:css('padding', '0px 0px 0px 2px')
:cssText(args.imagestyle)
:attr('rowspan',
:tag('div')
:wikitext(
end
end
Line 325 ⟶ 321:
if subpage == 'doc' or subpage == 'sandbox' or subpage == 'testcases' then return end
for
builder:wikitext('[[Category:' .. cat .. ']]')
end
Line 371 ⟶ 367:
args = navboxArgs
for k,
if type(k) == 'string' then
if listnum then table.insert(listnums, tonumber(listnum)) end
end
end
table.sort(listnums)
|