Module:Multiple transclusion

From Wikipedia

Documentation for this module may be created at Module:Multiple transclusion/doc

local this = {}

function this.getParentFrameTitle(frame)
    return frame:getParent():getTitle()
end

function this.expandSecondTemplate(frame)
    return frame:expandTemplate{ title='SecondTemplate' }
end

function this.preprocessSecondTemplate(frame)
    return frame:preprocess( '{{SecondTemplate}}' )
end

return this