Module:usex: Difference between revisions

no edit summary
No edit summary
Tag: Reverted
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 130: Line 130:
end
end
if not nocat then
if not nocat and (namespace == "" or namespace == "Reconstruction" or namespace == "Contionary") then
table.insert(categories, lang:getCanonicalName() .. " terms with usage examples")
if quote then
table.insert(categories, lang:getCanonicalName() .. " terms with quotations")
else
table.insert(categories, lang:getCanonicalName() .. " terms with usage examples")
end
end
end
Line 256: Line 260:
end
end
result = div(class, result)
result = div(class, result)
result = result .. require("Module:utilities/format_categories")(categories, lang, sortkey)
result = result .. require("Module:utilities").format_categories(categories, lang, sortkey)
if noenum then
if noenum then
result = "\n: " .. result
result = "\n: " .. result