Module:Navbox: Difference between revisions

Ganaram inukshuk (talk | contribs)
refactor row helper function; only the row helper needed immediate refactoring
Ganaram inukshuk (talk | contribs)
m todo
Line 6: Line 6:
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
-- TODO (low priority): add an option for a dataless header row, to mirror the
-- a headerless data row. Requires a change to how rows are processed: instead
-- option of having a headerless data row. Requires changing row content from
-- of a table that is a one-element array (for headerless rows) or two-element
-- a regular array to an associative array.
-- array (for header+data rows), it's an associative array containing entries
 
-- for both; the absence of one (as nil) differentiates between headerless rows
-- TODO (medium priority): nest and refactor helper functions
-- and dataless rows.


-- Navbox row helper function
-- Navbox row helper function