Module:Version

local getArgs = require('Module:Arguments').main local p = {}

function p.main local args = getArgs return p._main(args) end

function p._main(args) local shortSuffix local linkSuffix local formattedLink if args[2] == "pokken" then shortSuffix = "(WiiU/Arcade)" linkSuffix = "(Pokken Tournament)" elseif args[2] == "pokkendx" then shortSuffix = "(DX)" linkSuffix = "(Pokken Tournament DX)" elseif args[2] == nil then return error ('Requires game signature',0) end if args[3] == "numonly" then formattedLink = string.format('%s %s', args[1], linkSuffix, args[1], shortSuffix) else formattedLink = string.format('Version %s %s', args[1], linkSuffix, args[1], shortSuffix) end

return formattedLink end

return p