Module:Navbox: Difference between revisions

Ganaram inukshuk (talk | contribs)
m try again...
Ganaram inukshuk (talk | contribs)
Undo revision 167412 by Ganaram inukshuk (talk)
Tag: Undo
Line 79: Line 79:
-- Start of table
-- Start of table
local navbox = ""
local navbox = ""
if navbox_type == "Subheader" then
if navbox_type == "Nested" then
-- Navbox has a title and collapse options, and no border.
-- This navbox is meant to be a sub-navbox, placed on a headerless row.
navbox = '<table class="mw-collapsible' .. (is_collapsed and ' mw-collapsed ' or '') .. 'nowraplinks" style="width: 100%; border-spacing:0px">\n'
.. p.navbox_title(title)
for i = 1, #rows do
navbox = navbox .. p.navbox_row(rows[i])
end
navbox = navbox .. '</table>\n'
elseif navbox_type == "Subheader" then
-- Navbox has no title, border, or collapse options.
-- Navbox has no title, border, or collapse options.
-- This navbox is meant to display subheaders.
-- This navbox is meant to display subheaders.