Module:category tree: Difference between revisions
m 1 revision imported |
No edit summary |
||
| (3 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 | "[[File:Codex icon alert red.svg|40px|alt=alert]]", | ||
"This category is not defined in | "This category is not defined in Contionary's category tree.", | ||
text | text | ||
) | ) | ||
| Line 105: | Line 105: | ||
-- Proto-Norse (gmq-pro) is probably the only language with a code ending in -pro | -- Proto-Norse (gmq-pro) is probably the only language with a code ending in -pro | ||
-- that's intended to have mostly non-reconstructed entries. | -- that's intended to have mostly non-reconstructed entries. | ||
if (lang_code:find("%-pro$") and lang_code ~= "gmq-pro") or lang:hasType("reconstructed") then | if (lang_code:find("%-pro$") and lang_code ~= "gmq-pro") or (lang:hasType("reconstructed") and not lang:hasType("conlang")) then | ||
namespace = namespace .. "Reconstruction" | namespace = namespace .. "Reconstruction" | ||
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 | "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 | ||