FANDOM


local p = {}
 
local data = mw.loadData('Module:Cite AC7/data')
 
function p.main(frame)
	local spec = frame.args[1]
	local sType, sNum = string.match(spec, "(%a+)(%d+)")
	local sOut
	if sType == "M" then
		sOut = "Mission"
	elseif sType == "Cut" then
		sOut = "Cutscene"
	elseif sType == "SP" then
		sOut = "SP Mission"
	elseif sType ~= "VR" then
		error ("Invalid type")
	end
	if sType == "VR" then
		return (data[spec] .. ", ''[[Ace Combat 7: Skies Unknown]]''.")
	else
		return (sOut .. " " .. sNum .. ": \"" .. data[spec] .. "\", ''[[Ace Combat 7: Skies Unknown]]''.")
	end
end
 
return p
Community content is available under CC-BY-SA unless otherwise noted.