Module:Sandbox/Anirudh23042003: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 101:
 
p.pageinfo = function(frame)
local title = frame.args.title or " "
title = mw.title.new(title)
local exst, redir
if title and title.exists then
exst = 1
else
exst = 0
end
if title and title.isRedirect then
redir = 1
else
Line 115:
end
local str = ""
str = str .. (title and title.text or '<span class="error">nil</span>')
if exst == 1 then
str = str .. " exists and"