10,735
edits
TheNightAvl (talk | contribs) mNo edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
Line 32: | Line 32: | ||
local pieces = {} | local pieces = {} | ||
for piece in mw.ustring.gmatch(head, "%S+") do | for piece in mw.ustring.gmatch(head, "%S+") do | ||
table.insert(pieces, "[[" .. piece .. "]]") | table.insert(pieces, "[[" .. piece .. "#" .. data.language.name .. "|" .. piece .. "]]") | ||
end | end | ||
head = table.concat(pieces, " ") | head = table.concat(pieces, " ") | ||
end | end | ||
if data.language.proto then head = "*" .. head end | |||
if mw.ustring.find(head, " ") then | if mw.ustring.find(head, " ") then | ||
cats = cats .. "[[Category:" .. data.language.name .. " multiword terms]]" | cats = cats .. "[[Category:" .. data.language.name .. " multiword terms]]" |