Module:Navbox: Difference between revisions

Ganaram inukshuk (talk | contribs)
remove todo; current code cannot differentiate between a headerless data row and a dataless header row; may possibly revisit
Ganaram inukshuk (talk | contribs)
put back todo; found a way to differentiate headerless data rows and dataless header rows; also add todo for possible code refactoring
Line 5: Line 5:
local navbar = require("Module:Navbar")._navbar
local navbar = require("Module:Navbar")._navbar
local yesno = require("Module:Yesno")
local yesno = require("Module:Yesno")
-- TODO: add an option for a dataless header row, to mirror the option of having
-- a headerless data row. Requires a change to how rows are processed: instead
-- of a table that is a one-element array (for headerless rows) or two-element
-- array (for header+data rows), it's an associative array containing entries
-- for both; the absence of one (as nil) differentiates between headerless rows
-- and dataless rows.
-- TODO: possible code refactoring for helper functions.


-- Header/footer row
-- Header/footer row