Merge "Accept mw.title object as the title argument of frame:expandTemplate()"

This commit is contained in:
jenkins-bot 2014-04-15 16:11:26 +00:00 committed by Gerrit Code Review
commit 1504b474e4

View file

@ -398,7 +398,11 @@ local function newFrame( frameId, ... )
if opt.title == nil then
error( "frame:expandTemplate: a title is required" )
else
title = tostring( opt.title )
if type( opt.title ) == 'table' and opt.title.namespace == 0 then
title = ':' .. tostring( opt.title )
else
title = tostring( opt.title )
end
end
local args
if opt.args == nil then