Module:head: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
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]]"

Navigation menu