Module:documentation: Difference between revisions

No edit summary
No edit summary
Line 240: Line 240:
text = string.format(
text = string.format(
"This data module contains the " .. text_type .. " of " ..
"This data module contains the " .. text_type .. " of " ..
"[[Appendix:Unicode|Unicode]] code points within the range U+%04X to U+%04X.",
"[[wikt:Appendix:Unicode|Unicode]] code points within the range U+%04X to U+%04X.",
low, high)
low, high)
if subpage == "images" and safe_load_data("Module:Unicode data/emoji images/" .. first_three_of_code_point) then
if subpage == "images" and safe_load_data("Module:Unicode data/emoji images/" .. first_three_of_code_point) then
Line 422: Line 422:
cats:insert(lang:getCanonicalName() .. " modules|accel")
cats:insert(lang:getCanonicalName() .. " modules|accel")
cats:insert(("Accel submodules|%s"):format(lang:getCanonicalName()))
cats:insert(("Accel submodules|%s"):format(lang:getCanonicalName()))
return ("This module contains new entry creation rules for %s; see [[WT:ACCEL]] for an overview, and [[Module:accel]] for information on creating new rules.")
return ("This module contains new entry creation rules for %s; see [[wikt:WT:ACCEL|WT:ACCEL]] for an overview, and [[Module:accel]] for information on creating new rules.")
:format(lang:makeCategoryLink())
:format(lang:makeCategoryLink())
end
end
Line 478: Line 478:
.. "This module is part of the category tree system, which is a general framework for generating the "
.. "This module is part of the category tree system, which is a general framework for generating the "
.. "descriptions and categorization of category pages.\n\n"
.. "descriptions and categorization of category pages.\n\n"
.. "For more information, see [[Module:category tree/lang/documentation]].\n\n"
.. "For more information, see [[wikt:Module:category tree/lang/documentation|Module:category tree/lang/documentation]].\n\n"
.. "'''NOTE:''' If you add a new language-specific module, you must add the language code to the "
.. "'''NOTE:''' If you add a new language-specific module, you must add the language code to the "
.. "list at the top of [[Module:category tree/lang]] in order for the module to be recognized."
.. "list at the top of [[Module:category tree/lang]] in order for the module to be recognized."
Line 529: Line 529:
local lang, langname = insert_lang_data_module_cats(cats, lang_code, "Swadesh modules")
local lang, langname = insert_lang_data_module_cats(cats, lang_code, "Swadesh modules")
if lang then
if lang then
return "This module contains the [[Swadesh list]] of basic vocabulary in " .. langname .. "."
return "This module contains the [[wikt:Swadesh list|Swadesh list]] of basic vocabulary in " .. langname .. "."
end
end
end
end
Line 538: Line 538:
local lang, langname = insert_lang_data_module_cats(cats, lang_code, "Swadesh modules")
local lang, langname = insert_lang_data_module_cats(cats, lang_code, "Swadesh modules")
if lang then
if lang then
local prefix = "This module contains the [[Swadesh list]] of basic vocabulary in the "
local prefix = "This module contains the [[wikt:Swadesh list|Swadesh list]] of basic vocabulary in the "
local etym_lang = get_lang(variety, nil, "allow etym")
local etym_lang = get_lang(variety, nil, "allow etym")
if etym_lang then
if etym_lang then
Line 681: Line 681:
cats:insert("Reference modules")
cats:insert("Reference modules")
return "This module holds bibliographical data for " ..
return "This module holds bibliographical data for " ..
page .. ". For the formatted bibliography see '''[[Appendix:Bibliography/" .. page .. "]]'''."
page .. ". For the formatted bibliography see '''[[wikt:Appendix:Bibliography/" .. page .. "|Appendix:Bibliography/" .. page .. "]]'''."
end,
end,
},
},
Line 856: Line 856:
output:insert(
output:insert(
"<dd><i style=\"font-size: larger;\">The following " ..
"<dd><i style=\"font-size: larger;\">The following " ..
"[[Help:Documenting templates and modules|documentation]] is located at [[" ..
"[[wikt:Help:Documenting templates and modules|documentation]] is located at [[" ..
doc_title.fullText .. "]]. " .. "<sup>[[" .. doc_title:fullUrl { action = "edit" } .. " edit]]</sup>" ..
doc_title.fullText .. "]]. " .. "<sup>[[" .. doc_title:fullUrl { action = "edit" } .. " edit]]</sup>" ..
cats_auto_generated_text .. "</i></dd>")
cats_auto_generated_text .. "</i></dd>")
Line 875: Line 875:
output:insert(
output:insert(
"<dd><i style=\"font-size: larger;\">The following " ..
"<dd><i style=\"font-size: larger;\">The following " ..
"[[Help:Documenting templates and modules|documentation]] is " ..
"[[wikt:Help:Documenting templates and modules|documentation]] is " ..
"generated by [[" .. doc_content_source .. "]]. <sup>[[" ..
"generated by [[" .. doc_content_source .. "]]. <sup>[[" ..
new_title(doc_content_source):fullUrl { action = "edit" } ..
new_title(doc_content_source):fullUrl { action = "edit" } ..
Line 883: Line 883:
output:insert(
output:insert(
"<dd><i style=\"font-size: larger;\">This " .. pagetype ..
"<dd><i style=\"font-size: larger;\">This " .. pagetype ..
" lacks a [[Help:Documenting templates and modules|documentation subpage]]. " ..
" lacks a [[wikt:Help:Documenting templates and modules|documentation subpage]]. " ..
(fallback_docs and "You may " or "Please ") ..
(fallback_docs and "You may " or "Please ") ..
"[" .. doc_title:fullUrl { action = "edit", preload = preload }
"[" .. doc_title:fullUrl { action = "edit", preload = preload }