View source for Module:Navbox
Appearance
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
require('strict')
local p = {}
local navbar = require('Module:Navbar')._navbar
local cfg = mw.loadData('Module:Navbox/configuration')
local getArgs -- lazily initialized
local args
local format = string.format
local function striped(wikitext, border)
-- Return wikitext with markers replaced for odd/even striping.
-- Child (subgroup) navboxes are flagged with a category that is removed
-- by parent navboxes. The result is that the category shows all pages
-- where a child navbox is not contained in a parent navbox.
local orphanCat = cfg.category.orphan
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 .. orphanCat
end
local first, second = cfg.class.navbox_odd_part, cfg.class.navbox_even_part
if args[cfg.arg.evenodd] then
if args[cfg.arg.evenodd] == cfg.keyword.evenodd_swap then
first, second = second, first
000
1:0
Templates used on this page:
- Template:Category link with count (view source)
- Template:Clc (view source)
- Template:Endplainlist (view source)
- Template:High-use (view source)
- Template:Lua (view source)
- Template:Lua sidebar (view source)
- Template:Lua sidebar/styles.css (view source)
- Template:Module other (view source)
- Template:Module rating (view source)
- Template:Ombox (view source)
- Template:Plainlist (view source)
- Template:Sandbox other (view source)
- Template:Sidebar (view source)
- Template:Template link (view source)
- Template:Tl (view source)
- Template:Uses TemplateStyles (view source)
- Module:Arguments (view source)
- Module:Effective protection level (view source)
- Module:High-use (view source)
- Module:List (view source)
- Module:Lua banner (view source)
- Module:Message box (view source)
- Module:Message box/configuration (view source)
- Module:Navbox/doc (view source)
- Module:No globals (view source)
- Module:Redirect (view source)
- Module:Sidebar (view source)
- Module:Sidebar/configuration (view source)
- Module:Sidebar/styles.css (view source)
- Module:String (view source)
- Module:TNT (view source)
- Module:TableTools (view source)
- Module:Transclusion count (view source)
- Module:Transclusion count/data/N (view source)
- Module:Uses TemplateStyles (view source)
- Module:Uses TemplateStyles/config (view source)
- Module:Yesno (view source)
Return to Module:Navbox.