Module:Hatnote list: Difference between revisions

Removed default texts set in forSeeArgsToTable(); unset items in table are now empty rather than filled with defaults; defaults are filled in forSeeTableToString().
m (Protected "Module:Hatnote list": High-risk Lua module ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
(Removed default texts set in forSeeArgsToTable(); unset items in table are now empty rather than filled with defaults; defaults are filled in forSeeTableToString().)
Line 115:
-- New empty row
local forRow = {}
-- If there's a blank use, assume the list's ended, useleave theempty default,for
-- defaulting elsewhere, and break at the end of this loop-through.
forRow.use = args[i] or options.otherText
if not args[i] then terminated = true end
-- New empty list of pages
forRow.pages = {}
-- Try to insert first pages item; empty is ignored/defaulted elsewhere
-- If there's not at least one page listed, use the default.
table.insert(forRow.pages, args[i + 1] or mHatnote.disambiguate(options.title))
-- If the option after next is "and", do an inner loop where we collect
-- items following "and"'s until the "and"'s stop. If there's a blank
Anonymous user