Module:Navbox: Difference between revisions
mNo edit summary |
m minor renaming |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 7: | Line 7: | ||
local p = {} | local p = {} | ||
-- TODO: | -- TODO (medium priority): add/use navbox/styles.css | ||
-- TODO (medium priority): nest and refactor helper functions | -- TODO (medium priority): nest and refactor helper functions | ||
| Line 103: | Line 102: | ||
-- Navbox to be called by other modules; also called by wrapper function | -- Navbox to be called by other modules; also called by wrapper function | ||
function p._navbox(args) | function p._navbox(args) | ||
local title = args["Title"] | local title = args["Title"] or "Navbox Title" | ||
local name = args["name"] | local name = args["name"] | ||
local rows = args["Rows"] | local rows = args["Rows"] | ||
| Line 218: | Line 217: | ||
-- Preprocess individual entries for headers and data | -- Preprocess individual entries for headers and data | ||
local rows = tiu. | local rows = tiu.numbered_header_data_args_to_table(args, 30) | ||
args["Rows"] = rows | args["Rows"] = rows | ||