45,333
edits
No edit summary |
Tag: Undo |
||
(3 intermediate revisions by the same user not shown) | |||
Line 277: | Line 277: | ||
or mw.title.getCurrentTitle() | or mw.title.getCurrentTitle() | ||
local doc_title = mw.title.new((args['from'] ~= "") and args['from'] | local doc_title = mw.title.new((args['from'] ~= "") and args['from'] | ||
or (title.fullText .. '/ | or (title.fullText .. '/doc')) | ||
local contentModel = title.contentModel | local contentModel = title.contentModel | ||
Line 330: | Line 330: | ||
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 .. "]]. " .. | doc_title.fullText .. "]]. " .. | ||
"<sup>[[" .. doc_title:fullUrl { action = 'edit' } .. " edit]]</sup> </i></dd>") | "<sup>[[" .. doc_title:fullUrl { action = 'edit' } .. " edit]]</sup> </i></dd>") | ||
Line 410: | Line 410: | ||
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_module or "Module:documentation") .. "]]. <sup>[[" .. | "generated by [[" .. (doc_content_module or "Module:documentation") .. "]]. <sup>[[" .. | ||
mw.title.new("Module:documentation"):fullUrl { action = 'edit' } .. | mw.title.new("Module:documentation"):fullUrl { action = 'edit' } .. | ||
Line 417: | Line 417: | ||
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 } | ||
Line 551: | Line 551: | ||
if page_exists(sandbox_of) then | if page_exists(sandbox_of) then | ||
diff = " (" .. compare_pages(title.fullText, sandbox_of, "diff") .. ")" | diff = " (" .. compare_pages(title.fullText, sandbox_of, "diff") .. ")" | ||
end | end | ||
Line 612: | Line 610: | ||
if page_exists(sandbox_of) then | if page_exists(sandbox_of) then | ||
diff = " (" .. compare_pages(title.fullText, sandbox_of, "diff") .. ")" | diff = " (" .. compare_pages(title.fullText, sandbox_of, "diff") .. ")" | ||
end | end | ||