Module:Copied/sandbox: Difference between revisions

Content deleted Content added
Undid revision 1283506672 by Tule-hog (talk) - shouldn't need to do that
also rm ns in singleText
Line 27:
end
if (to == "") then
if (mw.title.getCurrentTitle().nsText == "Talk") then
text = string.format("%s [[%s:%s]]",text,mw.title.getCurrentTitle().nsText,mw.title.getCurrentTitle().text) --If no target given assume current page is the target
else
text = string.format("%s [[%s]]",mw.title.getCurrentTitle().text)
end
else
text = string.format("%s [[%s]]",text,to)