Module:category tree: Difference between revisions

No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 63: Line 63:
return require("Module:message box").maintenance(
return require("Module:message box").maintenance(
"red",
"red",
"[[File:Codex icon Alert red.svg|40px|alt=alert]]",
"[[File:Codex icon alert red.svg|40px|alt=alert]]",
"This category is not defined in Contionary's category tree.",
"This category is not defined in Contionary's category tree.",
text
text
Line 109: Line 109:
elseif lang:hasType("appendix-constructed") then
elseif lang:hasType("appendix-constructed") then
namespace = namespace .. "Appendix"
namespace = namespace .. "Appendix"
else
namespace = namespace .. "Contionary"
end
end
end
end
Line 443: Line 445:
"Double-check the category name for typos. <br>" ..
"Double-check the category name for typos. <br>" ..
"[[Special:Search/Category: " .. current_title.text:gsub("^.+:", ""):gsub(" ", "~2 ") .. '~2|Search existing categories]] to check if this category should be created under a different name (for example, "Fruits" instead of "Fruit"). <br>' ..
"[[Special:Search/Category: " .. current_title.text:gsub("^.+:", ""):gsub(" ", "~2 ") .. '~2|Search existing categories]] to check if this category should be created under a different name (for example, "Fruits" instead of "Fruit"). <br>' ..
"To request the definition of a new category in Contionary's category tree, please contact the [[Linguifex:Administrator|admins]]."))
"To request the definition of a new category in Contionary's category tree, please contact the [[:Category:Administrator|admins]]."))
-- Exit here, as all code beyond here relies on current not being nil
-- Exit here, as all code beyond here relies on current not being nil