Module:head/templates: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 50: Line 50:
term = mw.ustring.gsub(term, "^[^/]+/", "")
term = mw.ustring.gsub(term, "^[^/]+/", "")
end
end
local multiword = mw.ustring.find(term, "[%s_]") or mw.ustring.find(term, " ")
local is_multiword = string.find(term, "[%s_]") or string.find(term, " ")
return {
return {
term = term,
term = term,
Line 60: Line 60:
labels = p["label"],
labels = p["label"],
inflections = get_inflections(p[3]),
inflections = get_inflections(p[3]),
multiword = multiword,
multiword = is_multiword,
}
}
end
end