Module:category tree/languages: Difference between revisions
No edit summary |
m →top: clean up |
||
| Line 56: | Line 56: | ||
raw_categories["All extinct languages"] = { | raw_categories["All extinct languages"] = { | ||
description = "This category contains the categories for every [[extinct language]] on Wiktionary.", | description = "This category contains the categories for every [[wikt:extinct language|extinct language]] on Wiktionary.", | ||
additional = "Do not confuse this category with [[:Category:Extinct languages]], which is an umbrella category for the names of extinct languages in specific other languages (e.g. {{m+|de|Langobardisch}} for the ancient [[Lombardic]] language).", | additional = "Do not confuse this category with [[:Category:Extinct languages]], which is an umbrella category for the names of extinct languages in specific other languages (e.g. {{m+|de|Langobardisch}} for the ancient [[wikt:Lombardic|Lombardic]] language).", | ||
parents = { | parents = { | ||
"Languages", | "Languages", | ||
| Line 101: | Line 101: | ||
for template in require("Module:template parser").find_templates(contents) do | for template in require("Module:template parser").find_templates(contents) do | ||
-- The template parser automatically handles redirects and canonicalizes them, so uses of {{autocat}} | -- The template parser automatically handles redirects and canonicalizes them, so uses of {{autocat}} | ||
-- will also be found. | -- will also be\[\[Appendix:Glossary\#([^|]+)\|\1\]\] found. | ||
if template:get_name() == "auto cat" then | if template:get_name() == "auto cat" then | ||
return template:get_arguments() | return template:get_arguments() | ||
| Line 118: | Line 118: | ||
local bare_location_parts = split(bare_location, ", ") | local bare_location_parts = split(bare_location, ", ") | ||
for i, part in ipairs(bare_location_parts) do | for i, part in ipairs(bare_location_parts) do | ||
bare_location_parts[i] = ("[[%s]]"):format(part) | bare_location_parts[i] = ("[[wikt:%s|%s]]"):format(part) | ||
end | end | ||
location_link = concat(bare_location_parts, ", ") | location_link = concat(bare_location_parts, ", ") | ||
| Line 557: | Line 557: | ||
end | end | ||
location_desc = ("It is %s %s %s.\n\n"):format( | location_desc = ("It is %s %s %s.\n\n"):format( | ||
extinct and "an [[extinct language]] that was formerly spoken" or "spoken", prep, location_link_text) | extinct and "an [[wikt:extinct language|extinct language]] that was formerly spoken" or "spoken", prep, location_link_text) | ||
elseif extinct then | elseif extinct then | ||
location_desc = "It is an [[extinct language]].\n\n" | location_desc = "It is an [[wikt:extinct language|extinct language]].\n\n" | ||
else | else | ||
location_desc = "" | location_desc = "" | ||
| Line 585: | Line 585: | ||
if entry_guidelines.exists then | if entry_guidelines.exists then | ||
add = add .. "\n\n" .. | add = add .. "\n\n" .. | ||
"Please see '''[[" .. entry_guidelines_page .. "]]''' for information and special considerations for creating " .. nameWithLanguage .. " entries." | "Please see '''[[wikt:" .. entry_guidelines_page .. "|" .. entry_guidelines_page .. "]]''' for information and special considerations for creating " .. nameWithLanguage .. " entries." | ||
end | end | ||
| Line 930: | Line 930: | ||
return { | return { | ||
lang = lang:getCode(), | lang = lang:getCode(), | ||
description = "Languages which developed as a [[creole]] or [[pidgin]] from " .. lang:makeCategoryLink() .. ".", | description = "Languages which developed as a [[wikt:creole|creole]] or [[wikt:pidgin|pidgin]] from " .. lang:makeCategoryLink() .. ".", | ||
parents = {{name = "Creole or pidgin languages", sort = {sort_base = "*" .. langname, lang = "en"}}}, | parents = {{name = "Creole or pidgin languages", sort = {sort_base = "*" .. langname, lang = "en"}}}, | ||
breadcrumb = lang:getCanonicalName() .. "-based", | breadcrumb = lang:getCanonicalName() .. "-based", | ||