Module:Hatnote list: Difference between revisions
Content deleted Content added
m Changed some variable and structure names: forRow's second item is a table called "pages" instead of a table called "see" now; more logical naming |
m Tweaked a comment to reflect last edit, and fixed an outdated comment |
||
Line 65:
-- Structure the data out from the parameter list
-- forTable is the wrapper table, with forRow rows
--
local forTable = {}
local i = from
Line 79:
-- New empty list of pages
forRow.pages = {}
-- If there's not at least one page listed,
-- at the
table.insert(forRow.pages, args[i + 1] or (options.title .. options.disambiguator))
-- If the option after next is "and", do an inner loop where we collect
|