Module:Shortcut box

From escforumwiki
Jump to navigation Jump to search

local export = {}

function export.show(frame) local output = {} local args = frame:getParent().args local demo = false

local FULLPAGENAME = mw.title.getCurrentTitle().fullText local BASEPAGENAME, SUBPAGENAME = FULLPAGENAME:match("^(.-)/([^/]-)$") -- BASEPAGENAME = BASEPAGENAME or FULLPAGENAME

if FULLPAGENAME == frame:getParent():getTitle() then demo = true end

output[#output + 1] = '

'

return table.concat(output) end

return export