Module:also: Difference between revisions

Jump to navigation Jump to search
Undo revision 11220 by TheNightAvl (talk)
No edit summary
Tag: Reverted
(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 data = mw.loadData("Module:also/data")
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 = ""

Navigation menu