Module:head/templates: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
(5 intermediate revisions by the same user not shown)
Line 13: Line 13:
["head"] = {},
["head"] = {},
["nocat"] = {type = "boolean"},
["nocat"] = {type = "boolean"},
["multiword"] = {type = "boolean"},
}
}


Line 51: Line 50:
term = mw.ustring.gsub(term, "^[^/]+/", "")
term = mw.ustring.gsub(term, "^[^/]+/", "")
end
end
local multiword = mw.ustring.find(term, " ")
return {
return {
term = term,
term = term,
Line 61: Line 59:
labels = p["label"],
labels = p["label"],
inflections = get_inflections(p[3]),
inflections = get_inflections(p[3]),
multiword = multiword,
}
}
end
end