Module:category tree: Difference between revisions
m 1 revision imported |
No edit summary |
||
| Line 64: | Line 64: | ||
"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 | "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 | ||
| Line 443: | Line 443: | ||
"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 [[Linguifex: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 | ||