Module:category tree/wiktionary users: Difference between revisions
m 1 revision imported |
No edit summary |
||
| Line 16: | Line 16: | ||
raw_categories[" | raw_categories["Contionary"] = { | ||
description = "High level category for material about | description = "High level category for material about Contionary and its operation.", | ||
parents = "Fundamental", | parents = "Fundamental", | ||
} | } | ||
raw_categories[" | raw_categories["Contionary statistics"] = { | ||
description = "Categories and pages containing statistics about how | description = "Categories and pages containing statistics about how Contionary is used.", | ||
parents = {" | parents = {"Contionary", sort = "Statistics"}, | ||
} | } | ||
raw_categories[" | raw_categories["Contionary users"] = { | ||
description = "Pages listing | description = "Pages listing Contionary users according to their user rights and categories listing Contionary users according to their linguistic and coding abilities.", | ||
breadcrumb = "Users", | breadcrumb = "Users", | ||
additional = "For an automatically generated list of all users, see [[Special:ListUsers]].", | additional = "For an automatically generated list of all users, see [[Special:ListUsers]].", | ||
parents = {" | parents = {"Contionary", sort = "Users"}, | ||
} | } | ||
| Line 36: | Line 36: | ||
description = "Users who have received a [[m:Global bans|global ban]] imposed by the [[m:Wikimedia Foundation|Wikimedia Foundation]], in accordance with the [[m:WMF Global Ban Policy|WMF Global Ban Policy]].", | description = "Users who have received a [[m:Global bans|global ban]] imposed by the [[m:Wikimedia Foundation|Wikimedia Foundation]], in accordance with the [[m:WMF Global Ban Policy|WMF Global Ban Policy]].", | ||
breadcrumb = "Banned by the WMF", | breadcrumb = "Banned by the WMF", | ||
parents = " | parents = "Contionary users", | ||
} | } | ||
raw_categories["User languages"] = { | raw_categories["User languages"] = { | ||
description = "Categories listing | description = "Categories listing Contionary users according to their linguistic abilities.", | ||
parents = { | parents = { | ||
" | "Contionary users", | ||
"Category: | "Category:Contionary multilingual issues", | ||
}, | }, | ||
} | } | ||
raw_categories["User languages with invalid code"] = { | raw_categories["User languages with invalid code"] = { | ||
description = "Categories listing | description = "Categories listing Contionary users according to their linguistic abilities, where the language code is invalid for Contionary.", | ||
additional = "Most of these codes are valid ISO 639-3 codes but are invalid in | additional = "Most of these codes are valid ISO 639-3 codes but are invalid in Contionary for various reasons, " .. | ||
"typically due to different choices made regarding splitting and merging languages.", | "typically due to different choices made regarding splitting and merging languages.", | ||
parents = {name = "User languages", sort = " "}, | parents = {name = "User languages", sort = " "}, | ||
| Line 55: | Line 55: | ||
raw_categories["User scripts"] = { | raw_categories["User scripts"] = { | ||
description = "Categories listing | description = "Categories listing Contionary users according to their abilities to read a given script.", | ||
parents = { | parents = { | ||
" | "Contionary users", | ||
"Category: | "Category:Contionary multilingual issues", | ||
}, | }, | ||
} | } | ||
raw_categories["User coders"] = { | raw_categories["User coders"] = { | ||
description = "Categories listing | description = "Categories listing Contionary users according to their coding abilities.", | ||
parents = " | parents = "Contionary users", | ||
} | } | ||
raw_categories["User families"] = { | raw_categories["User families"] = { | ||
description = "Categories listing | description = "Categories listing Contionary users according to their knowledge about a given language family.", | ||
parents = " | parents = "Contionary users" | ||
} | } | ||
raw_categories["Pages with entries"] = { | raw_categories["Pages with entries"] = { | ||
description = "Pages which contain language entries.", | description = "Pages which contain language entries.", | ||
additional = "The subcategories within this category are used to determine the total number of entries on the English | additional = "The subcategories within this category are used to determine the total number of entries on the English Contionary.", | ||
parents = " | parents = "Contionary", | ||
can_be_empty = true, | can_be_empty = true, | ||
hidden = true, | hidden = true, | ||
| Line 83: | Line 83: | ||
description = "Redirect pages which are connected to a [[d:|Wikidata]] item.", | description = "Redirect pages which are connected to a [[d:|Wikidata]] item.", | ||
additional = "These are rarely needed, but are occasionally useful following a page merger, where other wikis may still separate the two.", | additional = "These are rarely needed, but are occasionally useful following a page merger, where other wikis may still separate the two.", | ||
parents = " | parents = "Contionary statistics", | ||
can_be_empty = true, | can_be_empty = true, | ||
hidden = true, | hidden = true, | ||
| Line 91: | Line 91: | ||
description = "Pages with titles that are not supported by the MediaWiki software.", | description = "Pages with titles that are not supported by the MediaWiki software.", | ||
additional = "For an explanation of the reasons why certain titles are not supported, see [[Appendix:Unsupported titles]].", | additional = "For an explanation of the reasons why certain titles are not supported, see [[Appendix:Unsupported titles]].", | ||
parents = " | parents = "Contionary", | ||
can_be_empty = true, | can_be_empty = true, | ||
hidden = true, | hidden = true, | ||
| Line 111: | Line 111: | ||
additional = phab and ("See [[phab:%s|%s]] on Phabricator for background information on why this extension is tracked."):format(phab, phab) or nil, | additional = phab and ("See [[phab:%s|%s]] on Phabricator for background information on why this extension is tracked."):format(phab, phab) or nil, | ||
breadcrumb = ("Using the %s extension"):format(ext), | breadcrumb = ("Using the %s extension"):format(ext), | ||
parents = " | parents = "Contionary statistics", | ||
can_be_empty = true, | can_be_empty = true, | ||
hidden = true, | hidden = true, | ||
| Line 195: | Line 195: | ||
Kotlin = "w:Kotlin (programming language)", | Kotlin = "w:Kotlin (programming language)", | ||
Lisp = "w:Lisp (programming language)", | Lisp = "w:Lisp (programming language)", | ||
Lua = "Wiktionary:Scripting", | Lua = "wikt:Wiktionary:Scripting", | ||
Perl = "w:Perl", | Perl = "w:Perl", | ||
PHP = "w:PHP", | PHP = "w:PHP", | ||
| Line 205: | Line 205: | ||
Scheme = "w:Scheme (programming language)", | Scheme = "w:Scheme (programming language)", | ||
SQL = "w:SQL", | SQL = "w:SQL", | ||
template = {link = "Wiktionary:Templates", name = "wiki templates"}, | template = {link = "wikt:Wiktionary:Templates", name = "wiki templates"}, | ||
TypeScript = "w:TypeScript", | TypeScript = "w:TypeScript", | ||
VBScript = "w:VBScript", | VBScript = "w:VBScript", | ||
| Line 268: | Line 268: | ||
if level then | if level then | ||
insert(additional, ("To be included on this list, add {{tl|Babel|%s}} to your user page. Complete instructions are " .. | insert(additional, ("To be included on this list, add {{tl|Babel|%s}} to your user page. Complete instructions are " .. | ||
"available at [[Wiktionary:Babel]]."):format(level == "N" and code or ("%s-%s"):format(code, level))) | "available at [[wikt:Wiktionary:Babel]]."):format(level == "N" and code or ("%s-%s"):format(code, level))) | ||
else | else | ||
insert(additional, "To be included on this list, use {{tl|Babel}} on your user page. Complete instructions are " .. | insert(additional, "To be included on this list, use {{tl|Babel}} on your user page. Complete instructions are " .. | ||
"available at [[Wiktionary:Babel]].") | "available at [[wikt:Wiktionary:Babel]].") | ||
end | end | ||
if inactive then | if inactive then | ||
insert(additional, "'''NOTE:''' Users in this category have not been active on the English | insert(additional, "'''NOTE:''' Users in this category have not been active on the English Contionary for at " .. | ||
"least two years and have been moved into the 'inactive' state due to " .. | "least two years and have been moved into the 'inactive' state due to " .. | ||
"[[Wiktionary:Votes/pl-2017-04/Removing inactive editors from user-proficiency categories]].") | "[[wikt:Wiktionary:Votes/pl-2017-04/Removing inactive editors from user-proficiency categories]].") | ||
parents = {{name = category, sort = " "}} | parents = {{name = category, sort = " "}} | ||
end | end | ||
| Line 465: | Line 465: | ||
local invalid_lang_warning | local invalid_lang_warning | ||
if not lang then | if not lang then | ||
invalid_lang_warning = "'''WARNING''': The specified language code is invalid on | invalid_lang_warning = "'''WARNING''': The specified language code is invalid on Contionary. Please migrate " .. | ||
"all competency ratings to the closest valid code." | "all competency ratings to the closest valid code." | ||
end | end | ||
| Line 808: | Line 808: | ||
breadcrumb = ("%d entr%s"):format(n, suffix), | breadcrumb = ("%d entr%s"):format(n, suffix), | ||
description = ("Pages which contain %s language entr%s."):format(n, suffix), | description = ("Pages which contain %s language entr%s."):format(n, suffix), | ||
additional = "This category, and others like it, are used to determine the total number of entries on the English | additional = "This category, and others like it, are used to determine the total number of entries on the English Contionary", | ||
hidden = true, | hidden = true, | ||
can_be_empty = true, | can_be_empty = true, | ||
parents = { | parents = { | ||
{name = "Pages with entries", sort = require("Module:category tree").numeral_sortkey(n)}, | {name = "Pages with entries", sort = require("Module:category tree").numeral_sortkey(n)}, | ||
n == "0" and " | n == "0" and "Contionary maintenance" or nil, -- "Pages with 0 entries" only contains pages with something wrong. | ||
}, | }, | ||
} | } | ||