Module:Category handler: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
m
17 revisions imported from loginwiki:Module:Category_handler
(apply changes from sandbox as requested by User:Jackmcbarn which removes middleclass dependency)
m (17 revisions imported from loginwiki:Module:Category_handler)
 
(22 intermediate revisions by 20 users not shown)
Line 55:
do
local pagename = obj:parameter('demopage')
local success, titleObj = pcall(mw.title.new, pagename)
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()
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu