Editing Module:Category handler
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 55: | Line 55: | ||
do | do | ||
local pagename = obj:parameter('demopage') | local pagename = obj:parameter('demopage') | ||
− | local | + | local success, titleObj = pcall(mw.title.new, pagename) |
− | + | ||
− | + | ||
− | + | ||
if success and titleObj then | if success and titleObj then | ||
obj.title = titleObj | obj.title = titleObj | ||
− | |||
− | |||
− | |||
else | else | ||
obj.title = mw.title.getCurrentTitle() | obj.title = mw.title.getCurrentTitle() |