Module:also: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Tag: Reverted
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 termlist = mw.loadData("Module:also/data")
local data = 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