45,647
edits
No edit summary |
No edit summary |
||
Line 49: | Line 49: | ||
for j = 2, #run - 1, 2 do | for j = 2, #run - 1, 2 do | ||
local modtext = run[j]:match("^<(.*)>$") | local modtext = run[j]:match("^<(.*)>$") | ||
local prefix, arg = modtext:match("^([a-z]+):(.*)$") | local prefix, arg = modtext:match("^([a-z]+):(.*)$") | ||
alt = prefix == "a" and | alt = prefix == "a" and table.insert(links, link(term, alt)) or nil | ||
cat = prefix == "c" and table.insert(categories, "Soc'ul' terms from Wascotl *" .. (cat or term)) or nil | |||
table.insert(categories, "Soc'ul' terms from Wascotl *" .. (cat or term)) | |||
end | end | ||
else | |||
table.insert(links, link(term)) | |||
table.insert(categories, "Soc'ul' terms from Wascotl *" .. term) | |||
end | end | ||
end | end |