Module:High-use: Difference between revisions

direct links to prevent redlinks
en>Elli
(this is passed as a string, so...)
en>JsfasdF252
(direct links to prevent redlinks)
Line 76: Line 76:
)
)
local sandbox_text =  string.format("%s's [[%s/sandbox|/sandbox]] or [[%s/testcases|/testcases]] subpages%s ",
local sandbox_text =  string.format("%s's {{direct link|%s/sandbox|/sandbox}} or {{direct link|%s/testcases|/testcases}} subpages%s ",
(mw.title.getCurrentTitle().namespace == 828 and "module" or "template"),
(mw.title.getCurrentTitle().namespace == 828 and "module" or "template"),
title.fullText, title.fullText,
title.fullText, title.fullText,
(mw.title.getCurrentTitle().namespace == 828 and "." or ", or in your own [[Wikipedia:Subpages#How to create user subpages|user subpage]].")
(mw.title.getCurrentTitle().namespace == 828 and "." or ", or in your own {{direct link|Wikipedia:Subpages#How to create user subpages|user subpage}}.")
)
)
Line 98: Line 98:
local discussion_text = "Consider discussing changes "
local discussion_text = "Consider discussing changes "
if frame.args["2"] and frame.args["2"] ~= "" and frame.args["2"] ~= "yes" then
if frame.args["2"] and frame.args["2"] ~= "" and frame.args["2"] ~= "yes" then
discussion_text = string.format("%sat [[%s]]", discussion_text, frame.args["2"])
discussion_text = string.format("%sat {{direct link|%s}}", discussion_text, frame.args["2"])
else
else
discussion_text = string.format("%son the [[%s|talk page]]", discussion_text, title.talkPageTitle.fullText )
discussion_text = string.format("%son the {{direct link|%s|talk page}}", discussion_text, title.talkPageTitle.fullText )
end
end
Anonymous user