Module:Include timeline explained
local p =
function p.main(frame) local pframe = frame:getParent local currentTitle = mw.title.getCurrentTitle local passedTitle = pframe and pframe.args[1] local targetPage = mw.title.makeTitle(currentTitle.namespace
2 and 2 or 10, (passedTitle or currentTitle.text) .. ' graphical timeline') if targetPage.exists then if mw.isSubsting then return '' else return frame:expandTemplate end else if mw.isSubsting then if passedTitle then return '' else return '' end else return require('Module:Message box').main('mbox',) end end return end
return p