Module:Activity

--[==[-- -- Lua script to get Character Activities --

--]==]

local p = {}

--[=[ For testing remove 1 '-' from start of line local fileData = mw.loadData('Module:Activity/data') --[==[]=] local fileData = { -- Mickey & Friends -- ["Mickey Mouse"]	= "mandf", ["Goofy"]			= "mandf", } -- structure of data file --	character --		activity --			1  = char level --			2  = duration --			3  = requirements --			4  = tokens (possible in table form) --			5  = character 2 --			6  = character 2 level --			anim = animated activity --			alt1 = alternate activity character 1 --			alt2 = alternate activity character 2 --			wish = wish? --			trophy = trophy? --			ver = {table: activity versions during events etc.} details not final yet

local actData = { ["mandf"] = { -- Sample content of data file Module:Activity/mandf ["Mickey Mouse"] = { ["High Five!"] = {2, "2h", nil, "Jessie,3$Daisy Duck,2", "Goofy", 1, anim="Goofy and Mickey high five"}, ["Search for Friends"]	= {1, "60s", nil, "IP-M&F", anim = "Mickey Searches around the Kingdom", wish=1}, },		["Goofy"] = { ["Check the Fun Wheel"] = {1, "60m", "[Mickey's Fun Wheel]", "IP-MI$Mickey Mouse,3$Woody,2"}, ["Run in Panic"] = {1, "60s", nil, "IP-M&F", anim = "Goofy runs in panic"}, }		-- end of sample content } } --]==]

local icon = require("Module:CharacterAvatar").getAvatar local token = require("Module:CharacterToken").getToken local util = require("Module:Utility")

function p.activity(frame) local tArgs = util.getArgs(frame)

local buildName = tArgs[1] or "" local enchLvl = tArgs[2] or "" local event = tArgs[3] or ""

return "Not Finished Yet\nStill finalising data table structure\n" end

return p --