Autopatrolled users, Bots, Bureaucrats, Confirmed users, Interface administrators, Rollbackers, Administrators, Upload Wizard campaign editors
243
edits
(apply changes from sandbox as requested by User:Jackmcbarn which removes middleclass dependency) |
m (28 revisions imported) Tags: Mobile edit Mobile web edit |
||
(14 intermediate revisions by 12 users not shown) | |||
Line 55:
do
local pagename = obj:parameter('demopage')
local success, titleObj
if pagename then
success, titleObj = pcall(mw.title.new, pagename)
end
if success and titleObj then
obj.title = titleObj
if titleObj == mw.title.getCurrentTitle() then
obj._usesCurrentTitle = true
end
else
obj.title = mw.title.getCurrentTitle()
|