Module:Page: Difference between revisions

Content deleted Content added
Darklama (talk | contribs)
return error msg if title:field fails instead of passing "" for all parameters by default as untended results can happen
Fixing template bug - either frame:preprocess or nowiki
Line 101:
function p.localUrl(frame) return main(frame, "localUrl"); end
function p.canonicalUrl(frame) return main(frame, "canonicalUrl"); end
function p.getContent(frame) return main(frame, "getContent"); end
if nowiki then
return mw.text.nowiki(main(frame, "getcontent"))
else
return frame:preprocess(main(frame, "getContent"))
end
end
 
return p