Module:High-use: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(this is passed as a string, so...) |
(direct links to prevent redlinks) |
||
Line 76: | Line 76: | ||
) |
) |
||
local sandbox_text = string.format("%s'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 |
(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 |
discussion_text = string.format("%sat {{direct link|%s}}", discussion_text, frame.args["2"]) |
||
else |
else |
||
discussion_text = string.format("%son the |
discussion_text = string.format("%son the {{direct link|%s|talk page}}", discussion_text, title.talkPageTitle.fullText ) |
||
end |
end |
||