Module:High-use: Difference between revisions

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