Module:Navbox/sandbox: Difference between revisions

Content deleted Content added
now odd_even, which I don't see a trivial way of shuffling that off to config
rm noisy comments
Line 1:
--
-- This module implements {{Navbox}}
--
 
local p = {}
local navbar = require('Module:Navbar')._navbar
Line 75 ⟶ 71:
 
local function renderNavBar(titleCell)
 
if args[cfg.arg.navbar] ~= cfg.keyword.navbar_off and args[cfg.arg.navbar] ~= cfg.keyword.navbar_plain and not
(not args[cfg.arg.name] and mw.getCurrentFrame():getParent():getTitle():gsub(cfg.pattern.sandbox, '') == cfg.pattern.navbox) then
Line 87 ⟶ 82:
end
 
--
-- Title row
--
local function renderTitleRow(tbl)
if not args[cfg.arg.title] then return end
Line 137 ⟶ 129:
:wikitext(processItem(args[cfg.arg.title]))
end
 
--
-- Above/Below rows
--
 
local function getAboveBelowColspan()
Line 179 ⟶ 167:
end
 
--
-- List rows
--
local function renderListRow(tbl, index, listnum, listnums_size)
local row = tbl:tag('tr')
Line 282 ⟶ 267:
end
end
 
 
--
-- Tracking categories
--
 
local function needsHorizontalLists(border)
Line 350 ⟶ 330:
end
 
--
-- Main navbox tables
--
local function renderMainTable(border, listnums)
local tbl = mw.html.create('table')