10,731
edits
TheNightAvl (talk | contribs) No edit summary Tag: Reverted |
TheNightAvl (talk | contribs) (Undo revision 11220 by TheNightAvl (talk)) Tag: Undo |
||
Line 70: | Line 70: | ||
else -- auto mode | else -- auto mode | ||
local here = args["test"] or mw.title.getCurrentTitle().subpageText | local here = args["test"] or mw.title.getCurrentTitle().subpageText | ||
local | local termlist = mw.loadData("Module:also/data") | ||
local data = {} | |||
for _, term in ipairs(termlist) do -- sorts data into "codes" | |||
local code = codify(term) | |||
if data[code] == nil then data[code] = {} end | |||
table.insert(data[code], term) | |||
end | |||
local here_key = "" | local here_key = "" |