Disney Magic Kingdoms Wiki

The Sword in the Stone Part 3 Update has arrived! ✨
Visit this page to learn all about what's coming up in Disney Magic Kingdoms!

READ MORE

Disney Magic Kingdoms Wiki
Advertisement

Description

This module is the Lua back-end for {{UpdateNo}}, to display information about game Updates.


Usage

{{#invoke:UpdateNumber|getVersion|<parameter list>}}
For parameter details see Template:UpdateNo/doc

For direct invocation or from other modules

{{#invoke:UpdateNumber|getLastVer|<count>}}
{{#invoke:UpdateNumber|getVars|<item name>}}


local p = {}
 
local versionData = mw.loadData( 'Module:UpdateNumber/data' )

function p.getVersion(frame)
    local versionNo = frame.args[1] or frame:getParent().args[1]
    local includeDate = frame.args[2] or frame:getParent().args[2]
    
 
    return "[[" .. fooBarText .. "|" .. (versionData[fooBarText][1] or "Work In Progress") .. "]]"
--    return "[[1.9.0|test]]"
end
 
return p
Advertisement