Jump to content

Module:Hatnote list: Difference between revisions

m
Tweaked a comment to reflect last edit, and fixed an outdated comment
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
-- EachRows row'sare atables tableof with onea "use" string and onea "seepages" table of pagename strings
local forTable = {}
local i = from
Line 79:
-- New empty list of pages
forRow.pages = {}
-- If there's not at least one page listed, assumeuse the list's endeddefault, useand break
-- at the default, and break at end of this loop-through.
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
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.