Module:Emmeria

-- Module for Emmerian Assault Records -- by User:SlyCooperFan1 --

local ms_tbl = { [1] = "Invasion of Gracemeria (mission)|Invasion of Gracemeria", [2] = "Vitoze Aerial Defense", [3] = "Sipli Field (mission)|Sipli Field", [4] = "Bartolomeo Fortress", [5] = "Anea Landing", [6] = "Siege on Silvat", [7] = "Selumna Peak", [8] = "San Loma Assault (mission)|San Loma Assault", [9] = "Heavy Command Cruiser (mission)|Heavy Command Cruiser", [10] = "Ragno Fortress", [11] = "The Moloch Desert", [12] = "Weapons of Mass Destruction", [13] = "The Liberation of Gracemeria", [14] = "Gracemeria Patrol", [15] = "Chandelier (mission)|Chandelier" }

function p.msformat(m) local mnum = string.format("%u", m)	return ms_tbl(mnum) end

function p.main(frame) local args = getArgs(frame) local ops = {} for ms, op in ipairs(args) do		local mslink = msformat(ms) local opname = 'Operation ' .. string.upper(op) table.insert(ops, string.format('*M%s: "%s" %s', ms, mslink, opname)) end local container = mw.html.create('div') :wikitext('Complete the following operations:\n' .. table.concat(ops, ', ')) return tostring(container) end

--