Content deleted Content added
markers Tag: Reverted |
neither of these fixed it Tags: Manual revert Reverted |
||
Line 5:
local args
local format = string.format
local function striped(wikitext, border)
Line 15 ⟶ 11:
-- by parent navboxes. The result is that the category shows all pages
-- where a child navbox is not contained in a parent navbox.
if border == cfg.keyword.border_subgroup and
args[cfg.arg.orphan] ~= cfg.keyword.orphan_yes then
-- No change; striping occurs in outermost navbox.
return wikitext ..
end
local first, second = 'odd', 'even'
Line 48 ⟶ 43:
end
end
local regex =
-- () omits gsub count
return (wikitext:gsub(regex, ''):gsub(
end
Line 250 ⟶ 245:
local listclass_and_num = format(cfg.arg.listclass_and_num, listnum)
local listText = args[list_and_num]
local oddEven =
if listText:sub(1, 12) == '</div><table' then
-- Assume list text is for a subgroup navbox so no auto striping
oddEven = listText:find(cfg.pattern.navbox_title)
and
end
listCell
|