Difference between revisions of "Module:SSB4Link"

From Nookipedia, the Animal Crossing wiki
m
m (Small grammar fix.)
 
Line 26: Line 26:
 
end
 
end
 
local print = ''
 
local print = ''
local error = '\'\'\'<span class="error" dir="ltr" lang="en">Invalid parameters detected! Did you entered the wrong parameters?</span>\'\'\'[[Category:Pages with incorrect usage of link template]]'
+
local error = '\'\'\'<span class="error" dir="ltr" lang="en">Invalid parameters detected! Did you enter the wrong parameters?</span>\'\'\'[[Category:Pages with incorrect usage of link template]]'
 
if not isEmpty(mode1) then
 
if not isEmpty(mode1) then
 
if mode1 == "nolink" then
 
if mode1 == "nolink" then

Latest revision as of 00:28, April 13, 2024

Module documentation (view)


Usage

This module is used to display the link of Super Smash Bros. 4 in various different ways. It is then transcluded through {{SSB4}} where the editor can switch how they display the link under different conditions.

Unlike Module:MediumLink, the user cannot declare what values to set as the medium, short, shorter, or shortest parameter, nor the optional link parameter. This is because this module also adds the ability to set what version of Super Smash Bros 4. the editor wishes to see, such as "3ds" for Super Smash Bros. for Nintendo 3DS, "wiiu" for Super Smash Bros. for Wii U and "3dswiiu/wiiu3ds" for Super Smash Bros. for Nintendo 3DS / Wii U


local p = {}

local function getArgs(frame)
    local args = {}
    for key, value in pairs(frame:getParent().args) do
        args[key] = value
    end
    for key, value in pairs(frame.args) do
        args[key] = value
    end
    return args
end

function p.main(frame)
    local args        = getArgs(frame)
    local mode1       = args[1] or args.mode1 or ''
    local mode2       = args[2] or args.mode2 or ''
    local mode3       = args[3] or args.mode3 or ''
    local mode4       = args[4] or args.mode4 or ''
    return p.outputSSB4Link(mode1, mode2, mode3, mode4)
end

function p.outputSSB4Link(mode1, mode2, mode3, mode4)
	local function isEmpty(s)
		return s == nil or s == ''
	end
	local print = ''
	local error = '\'\'\'<span class="error" dir="ltr" lang="en">Invalid parameters detected! Did you enter the wrong parameters?</span>\'\'\'[[Category:Pages with incorrect usage of link template]]'
	if not isEmpty(mode1) then
		if mode1 == "nolink" then
			if not mode2 == "short" then
				if mode3 == "sm" then
					if mode4 == "3ds" then
						print = "<small>''Smash 3DS''</small>"
					elseif mode4 == "wiiu" then
						print = "<small>''Smash Wii U''</small>"
					elseif mode4 == "3dswiiu" or mode4 == "wiiu3ds" then
						print = "<small>''Smash 3DS / Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "<small>''Smash 4''</small>"
					else
						print = error
					end
				elseif mode3 == "3ds" then
					if mode4 == "sm" then
						print = "<small>''Smash 3DS''</small>"
					elseif isEmpty(mode4) then
						print = "''Smash 3DS''"
					else
						print = error
					end
				elseif mode3 == "wiiu" then
					if mode4 == "sm" then
						print = "<small>''Smash Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "''Smash Wii U''"
					else
						print = error
					end
				elseif mode3 == "3dswiiu" or mode4 == "wiiu3ds" then
					if mode4 == "sm" then
						print = "<small>''Smash 3DS / Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "''Smash 3DS / Wii U''"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "''Smash 4''"
				else
					print = error
				end
			elseif mode2 == "shorter" then
				if mode3 == "sm" then
					if mode4 == "3ds" then
						print = "<small>SSB:3DS</small>"
					elseif mode4 == "wiiu" then
						print = "<small>SSB:Wii U</small>"
					elseif mode4 == "3dswiiu" or mode4 == "wiiu3ds" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>SSB4</small>"
					else
						print = error
					end
				elseif mode3 == "3ds" then
					if mode4 == "sm" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "SSB:3DS"
					else
						print = error
					end
				elseif mode3 == "wiiu" then
					if mode4 == "sm" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "SSB:Wii U"
					else
						print = error
					end
				elseif mode3 == "3dswiiu" or mode4 == "wiiu3ds" then
					if mode4 == "sm" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "SSB:3DS/Wii U"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "SSB4"
				else
					print = error
				end
			elseif mode2 == "shortest" then
				if mode3 == "sm" then
					if mode4 == "3ds" then
						print = "<small>SSB:3DS</small>"
					elseif mode4 == "wiiu" then
						print = "<small>SSB:Wii U</small>"
					elseif mode4 == "3dswiiu" or mode4 == "wiiu3ds" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>SSB4</small>"
					else
						print = error
					end
				elseif mode3 == "3ds" then
					if mode4 == "sm" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "SSB:3DS"
					else
						print = error
					end
				elseif mode3 == "wiiu" then
					if mode4 == "sm" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "SSB:Wii U"
					else
						print = error
					end
				elseif mode3 == "3dswiiu" or mode4 == "wiiu3ds" then
					if mode4 == "sm" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "SSB:3DS/Wii U"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "SSB4"
				else
					print = error
				end
			elseif mode2 == "sm" then
				if not mode3 == "short" then
					if mode4 == "3ds" then
						print = "<small>''Smash 3DS''</small>"
					elseif mode4 == "wiiu" then
						print = "<small>''Smash Wii U''</small>"
					elseif mode4 == "3dswiiu" or mode4 == "wiiu3ds" then
						print = "<small>''Smash 3DS / Wii U'</small>"
					elseif isEmpty(mode4) then
						print = "<small>''Smash 4''</small>"
					else
						print = error
					end
				elseif mode3 == "shorter" then
					if mode4 == "3ds" then
						print = "<small>SSB:3DS</small>"
					elseif mode4 == "wiiu" then
						print = "<small>SSB:Wii U</small>"
					elseif mode4 == "3dswiiu" or mode4 == "wiiu3ds" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>SSB4</small>"
					else
						print = error
					end
				elseif mode3 == "shortest" then
					if mode4 == "3ds" then
						print = "<small>SSB:3DS</small>"
					elseif mode4 == "wiiu" then
						print = "<small>SSB:Wii U</small>"
					elseif mode4 == "3dswiiu" or mode4 == "wiiu3ds" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>SSB4</small>"
					else
						print = error
					end
				elseif mode3 == "3ds" then
					if mode4 == "short" then
						print = "<small>''Smash 3DS''</small>"
					elseif mode4 == "shorter" then
						print = "<small>SSB:3DS</small>"
					elseif mode4 == "shortest" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "<small>''Super Smash Bros. for Nintendo 3DS''</small>"
					else
						print = error
					end
				elseif mode3 == "wiiu" then
					if mode4 == "short" then
						print = "<small>''Smash Wii U''</small>"
					elseif mode4 == "shorter" then
						print = "<small>SSB:Wii U</small>"
					elseif mode4 == "shortest" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>''Super Smash Bros. for Wii U''</small>"
					else
						print = error
					end
				elseif mode3 == "3dswiiu" or mode3 == "wiiu3ds" then
					if mode4 == "short" then
						print = "<small>''Smash 3DS / Wii U''</small>"
					elseif mode4 == "shorter" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif mode4 == "shortest" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>''Super Smash Bros. for Nintendo 3DS / Wii U''</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "<small>''Super Smash Bros. 4''</small>"
				else
					print = error
				end
			elseif mode2 == "3ds" then
				if mode3 == "sm" then
					if mode4 == "short" then
						print = "<small>''Smash 3DS''</small>"
					elseif mode4 == "shorter" then
						print = "<small>SSB:3DS</small>"
					elseif mode4 == "shortest" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "<small>''Super Smash Bros. for Nintendo 3DS''</small>"
					else
						print = error
					end
				elseif mode3 == "short" then
					if mode4 == "sm" then
						print = "<small>''Smash 3DS''</small>"
					elseif isEmpty(mode4) then
						print = "''Smash 3DS''"
					else
						print = error
					end
				elseif mode3 == "shorter" then
					if mode4 == "sm" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "SSB:3DS"
					else
						print = error
					end
				elseif mode3 == "shortest" then
					if mode4 == "sm" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "SSB:3DS"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "''Super Smash Bros. for Nintendo 3DS''"
				else
					print = error
				end
			elseif mode2 == "wiiu" then
				if mode3 == "sm" then
					if mode4 == "short" then
						print = "<small>''Smash Wii U''</small>"
					elseif mode4 == "shorter" then
						print = "<small>SSB:Wii U</small>"
					elseif mode4 == "shortest" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>''Super Smash Bros. for Wii U''</small>"
					else
						print = error
					end
				elseif mode3 == "short" then
					if mode4 == "sm" then
						print = "<small>''Smash Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "''Smash Wii U''"
					else
						print = error
					end
				elseif mode3 == "shorter" then
					if mode4 == "sm" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "SSB:Wii U"
					else
						print = error
					end
				elseif mode3 == "shortest" then
					if mode4 == "sm" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "SSB:Wii U"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "''Super Smash Bros. for Wii U''"
				else
					print = error
				end
			elseif mode2 == "3dswiiu" or mode2 == "wiiu3ds" then
				if mode3 == "sm" then
					if mode4 == "short" then
						print = "<small>''Smash 3DS / Wii U''</small>"
					elseif mode4 == "shorter" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif mode4 == "shortest" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>''Super Smash Bros. for Nintendo 3DS / Wii U''</small>"
					else
						print = error
					end
				elseif mode3 == "short" then
					if mode4 == "sm" then
						print = "<small>''Smash 3DS / Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "''Smash 3DS / Wii U''"
					else
						print = error
					end
				elseif mode3 == "shorter" then
					if mode4 == "sm" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "SSB:3DS/Wii U"
					else
						print = error
					end
				elseif mode3 == "shortest" then
					if mode4 == "sm" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "SSB:3DS/Wii U"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "''Super Smash Bros. for Nintendo 3DS / Wii U''"
				else
					print = error
				end
			elseif isEmpty(mode2) then
				print = "''Super Smash Bros. 4''"
			else
				print = error
			end
		elseif mode1 == "short" then
			if mode2 == "nolink" then
				if mode3 == "sm" then
					if mode4 == "3ds" then
						print = "<small>''Smash 3DS''</small>"
					elseif mode4 == "wiiu" then
						print = "<small>''Smash Wii U''</small>"
					elseif mode4 == "3dswiiu" or mode4 == "wiiu3ds" then
						print = "<small>''Smash 3DS / Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "<small>''Smash 4''</small>"
					else
						print = error
					end
				elseif mode3 == "3ds" then
					if mode4 == "sm" then
						print = "<small>''Smash 3DS''</small>"
					elseif isEmpty(mode4) then
						print = "''Smash 3DS''"
					else
						print = error
					end
				elseif mode3 == "wiiu" then
					if mode4 == "sm" then
						print = "<small>''Smash Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "''Smash Wii U''"
					else
						print = error
					end
				elseif mode3 == "3dswiiu" or mode3 == "wiiu3ds" then
					if mode4 == "sm" then
						print = "<small>''Smash 3DS / Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "''Smash 3DS / Wii U''"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "''Smash 4''"
				else
					print = error
				end
			elseif mode2 == "sm" then
				if mode3 == "nolink" then
					if mode4 == "3ds" then
						print = "<small>''Smash 3DS''</small>"
					elseif mode4 == "wiiu" then
						print = "<small>''Smash Wii U''</small>"
					elseif mode4 == "3dswiiu" or mode4 == "wiiu3ds" then
						print = "<small>''Smash 3DS / Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "<small>''Smash 4''</small>"
					else
						print = error
					end
				elseif mode3 == "3ds" then
					if mode4 == "nolink" then
						print = "<small>''Smash 3DS''</small>"
					elseif isEmpty(mode4) then
						print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash 3DS]]''</small>"
					else
						print = error
					end
				elseif mode3 == "wiiu" then
					if mode4 == "nolink" then
						print = "<small>''Smash Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash Wii U]]''</small>"
					else
						print = error
					end
				elseif mode3 == "3dswiiu" or mode3 == "wiiu3ds" then
					if mode4 == "nolink" then
						print = "<small>''Smash 3DS / Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash 3DS / Wii U]]''</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash 4]]''</small>"
				else
					print = error
				end
			elseif mode2 == "3ds" then
				if mode3 == "nolink" then
					if mode4 == "sm" then
						print = "<small>''Smash 3DS''</small>"
					elseif isEmpty(mode4) then
						print = "''Smash 3DS''"
					else
						print = error
					end
				elseif mode3 == "sm" then
					if mode4 == "nolink" then
						print = "<small>''Smash 3DS''</small>"
					elseif isEmpty(mode4) then
						print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash 3DS]]''</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash 3DS]]''"
				else
					print = error
				end
			elseif mode2 == "wiiu" then
				if mode3 == "nolink" then
					if mode4 == "sm" then
						print = "<small>''Smash Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "''Smash Wii U''"
					else
						print = error
					end
				elseif mode3 == "sm" then
					if mode4 == "nolink" then
						print = "<small>''Smash Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash Wii U]]''</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash Wii U]]''"
				else
					print = error
				end
			elseif mode2 == "3dswiiu" or mode2 == "wiiu3ds" then
				if mode3 == "nolink" then
					if mode4 == "sm" then
						print = "<small>''Smash 3DS / Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "''Smash 3DS / Wii U''"
					else
						print = error
					end
				elseif mode3 == "sm" then
					if mode4 == "nolink" then
						print = "<small>''Smash 3DS / Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash 3DS / Wii U]]''</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash 3DS / Wii U]]''"
				else
					print = error
				end
			elseif isEmpty(mode2) then
				print = "''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash 4]]''"
			else
				print = error
			end
		elseif mode1 == "shorter" then
			if mode2 == "nolink" then
				if mode3 == "sm" then
					if mode4 == "3ds" then
						print = "<small>SSB:3DS</small>"
					elseif mode4 == "wiiu" then
						print = "<small>SSB:Wii U</small>"
					elseif mode4 == "3dswiiu" or mode4 == "wiiu3ds" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>SSB4</small>"
					else
						print = error
					end
				elseif mode3 == "3ds" then
					if mode4 == "sm" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "SSB:3DS"
					else
						print = error
					end
				elseif mode3 == "wiiu" then
					if mode4 == "sm" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "SSB:Wii U"
					else
						print = error
					end
				elseif mode3 == "3dswiiu" or mode3 == "wiiu3ds" then
					if mode4 == "sm" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "SSB:3DS/Wii U"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "SSB4"
				else
					print = error
				end
			elseif mode2 == "sm" then
				if mode3 == "nolink" then
					if mode4 == "3ds" then
						print = "<small>SSB:3DS</small>"
					elseif mode4 == "wiiu" then
						print = "<small>SSB:Wii U</small>"
					elseif mode4 == "3dswiiu" or mode4 == "wiiu3ds" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>SSB4</small>"
					else
						print = error
					end
				elseif mode3 == "3ds" then
					if mode4 == "nolink" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS]]</small>"
					else
						print = error
					end
				elseif mode3 == "wiiu" then
					if mode4 == "nolink" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:Wii U]]</small>"
					else
						print = error
					end
				elseif mode3 == "3dswiiu" or mode3 == "wiiu3ds" then
					if mode4 == "nolink" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS/Wii U]]</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB4]]</small>"
				else
					print = error
				end
			elseif mode2 == "3ds" then
				if mode3 == "nolink" then
					if mode4 == "sm" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "SSB:3DS"
					else
						print = error
					end
				elseif mode3 == "sm" then
					if mode4 == "nolink" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS]]</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS]]"
				else
					print = error
				end
			elseif mode2 == "wiiu" then
				if mode3 == "nolink" then
					if mode4 == "sm" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "SSB:Wii U"
					else
						print = error
					end
				elseif mode3 == "sm" then
					if mode4 == "nolink" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:Wii U]]</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:Wii U]]"
				else
					print = error
				end
			elseif mode2 == "3dswiiu" or mode2 == "wiiu3ds" then
				if mode3 == "nolink" then
					if mode4 == "sm" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "SSB:3DS/Wii U"
					else
						print = error
					end
				elseif mode3 == "sm" then
					if mode4 == "nolink" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS/Wii U]]</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS/Wii U]]"
				else
					print = error
				end
			elseif isEmpty(mode2) then
				print = "[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB4]]"
			else
				print = error
			end
		elseif mode1 == "shortest" then
			if mode2 == "nolink" then
				if mode3 == "sm" then
					if mode4 == "3ds" then
						print = "<small>SSB:3DS</small>"
					elseif mode4 == "wiiu" then
						print = "<small>SSB:Wii U</small>"
					elseif mode4 == "3dswiiu" or mode4 == "wiiu3ds" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>SSB4</small>"
					else
						print = error
					end
				elseif mode3 == "3ds" then
					if mode4 == "sm" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "SSB:3DS"
					else
						print = error
					end
				elseif mode3 == "wiiu" then
					if mode4 == "sm" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "SSB:Wii U"
					else
						print = error
					end
				elseif mode3 == "3dswiiu" or mode3 == "wiiu3ds" then
					if mode4 == "sm" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "SSB:3DS/Wii U"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "SSB4"
				else
					print = error
				end
			elseif mode2 == "sm" then
				if mode3 == "nolink" then
					if mode4 == "3ds" then
						print = "<small>SSB:3DS</small>"
					elseif mode4 == "wiiu" then
						print = "<small>SSB:Wii U</small>"
					elseif mode4 == "3dswiiu" or mode4 == "wiiu3ds" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>SSB4</small>"
					else
						print = error
					end
				elseif mode3 == "3ds" then
					if mode4 == "nolink" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS]]</small>"
					else
						print = error
					end
				elseif mode3 == "wiiu" then
					if mode4 == "nolink" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:Wii U]]</small>"
					else
						print = error
					end
				elseif mode3 == "3dswiiu" or mode3 == "wiiu3ds" then
					if mode4 == "nolink" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS/Wii U]]</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB4]]</small>"
				else
					print = error
				end
			elseif mode2 == "3ds" then
				if mode3 == "nolink" then
					if mode4 == "sm" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "SSB:3DS"
					else
						print = error
					end
				elseif mode3 == "sm" then
					if mode4 == "nolink" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS]]</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS]]"
				else
					print = error
				end
			elseif mode2 == "wiiu" then
				if mode3 == "nolink" then
					if mode4 == "sm" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "SSB:Wii U"
					else
						print = error
					end
				elseif mode3 == "sm" then
					if mode4 == "nolink" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:Wii U]]</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:Wii U]]"
				else
					print = error
				end
			elseif mode2 == "3dswiiu" or mode2 == "wiiu3ds" then
				if mode3 == "nolink" then
					if mode4 == "sm" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "SSB:3DS/Wii U"
					else
						print = error
					end
				elseif mode3 == "sm" then
					if mode4 == "nolink" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS/Wii U]]</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS/Wii U]]"
				else
					print = error
				end
			elseif isEmpty(mode2) then
				print = "[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB4]]"
			else
				print = error
			end
		elseif mode1 == "sm" then
			if mode2 == "nolink" then
				if mode3 == "short" then
					if mode4 == "3ds" then
						print = "<small>''Smash 3DS''</small>"
					elseif mode4 == "wiiu" then
						print = "<small>''Smash Wii U''</small>"
					elseif mode4 == "3dswiiU" or mode4 == "wiiu3ds" then
						print = "<small>''Smash 3DS / Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "<small>''Smash 4''</small>"
					else
						print = error
					end
				elseif mode3 == "shorter" then
					if mode4 == "3ds" then
						print = "<small>SSB:3DS</small>"
					elseif mode4 == "wiiu" then
						print = "<small>SSB:Wii U</small>"
					elseif mode4 == "3dswiiU" or mode4 == "wiiu3ds" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>SSB4</small>"
					else
						print = error
					end
				elseif mode3 == "shortest" then
					if mode4 == "3ds" then
						print = "<small>SSB:3DS</small>"
					elseif mode4 == "wiiu" then
						print = "<small>SSB:Wii U</small>"
					elseif mode4 == "3dswiiu" or mode4 == "wiiu3ds" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>SSB4</small>"
					else
						print = error
					end
				elseif mode3 == "3ds" then
					if mode4 == "short" then
						print = "<small>''Smash 3DS''</small>"
					elseif mode4 == "shorter" then
						print = "<small>SSB:3DS</small>"
					elseif mode4 == "shortest" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "<small>''Super Smash Bros. for Nintendo 3DS''</small>"
					else
						print = error
					end
				elseif mode3 == "wiiu" then
					if mode4 == "short" then
						print = "<small>''Smash Wii U''</small>"
					elseif mode4 == "shorter" then
						print = "<small>SSB:Wii U</small>"
					elseif mode4 == "shortest" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>''Super Smash Bros. for Wii U''</small>"
					else
						print = error
					end
				elseif mode3 == "3dswiiu" or mode3 == "wiiu3ds" then
					if mode4 == "short" then
						print = "<small>''Smash 3DS / Wii U''</small>"
					elseif mode4 == "shorter" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif mode4 == "shortest" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>''Super Smash Bros. for Nintendo 3DS / Wii U''</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "<small>''Super Smash Bros. 4''</small>"
				else
					print = error
				end
			elseif mode2 == "short" then
				if mode3 == "nolink" then
					if mode4 == "3ds" then
						print = "<small>''Smash 3DS''</small>"
					elseif mode4 == "wiiu" then
						print = "<small>''Smash Wii U''</small>"
					elseif mode4 == "3dswiiu" or mode4 == "wiiu3ds" then
						print = "<small>''Smash 3DS / Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "<small>''Smash 4''</small>"
					else
						print = error
					end
				elseif mode3 == "3ds" then
					if mode4 == "nolink" then
						print = "<small>''Smash 3DS''</small>"
					elseif isEmpty(mode4) then
						print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash 3DS]]''</small>"
					else
						print = error
					end
				elseif mode3 == "wiiu" then
					if mode4 == "nolink" then
						print = "<small>''Smash Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash Wii U]]''</small>"
					else
						print = error
					end
				elseif mode3 == "3dswiiu" or mode3 == "wiiu3ds" then
					if mode4 == "nolink" then
						print = "<small>''Smash 3DS / Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash 3DS / Wii U]]''</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash 4]]''</small>"
				else
					print = error
				end
			elseif mode2 == "shorter" then
				if mode3 == "nolink" then
					if mode4 == "3ds" then
						print = "<small>SSB:3DS</small>"
					elseif mode4 == "wiiu" then
						print = "<small>SSB:Wii U</small>"
					elseif mode4 == "3dswiiu" or mode4 == "wiiu3ds" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>SSB4</small>"
					else
						print = error
					end
				elseif mode3 == "3ds" then
					if mode4 == "nolink" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS]]</small>"
					else
						print = error
					end
				elseif mode3 == "wiiu" then
					if mode4 == "nolink" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:Wii U]]</small>"
					else
						print = error
					end
				elseif mode3 == "3dswiiu" or mode3 == "wiiu3ds" then
					if mode4 == "nolink" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS/Wii U]]</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB4]]</small>"
				else
					print = error
				end
			elseif mode2 == "shortest" then
				if mode3 == "nolink" then
					if mode4 == "3ds" then
						print = "<small>SSB:3DS</small>"
					elseif mode4 == "wiiu" then
						print = "<small>SSB:Wii U</small>"
					elseif mode4 == "3dswiiu" or mode4 == "wiiu3ds" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>SSB4</small>"
					else
						print = error
					end
				elseif mode3 == "3ds" then
					if mode4 == "nolink" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS]]</small>"
					else
						print = error
					end
				elseif mode3 == "wiiu" then
					if mode4 == "nolink" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:Wii U]]</small>"
					else
						print = error
					end
				elseif mode3 == "3dswiiu" or mode3 == "wiiu3ds" then
					if mode4 == "nolink" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS/Wii U]]</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB4]]</small>"
				else
					print = error
				end
			elseif mode2 == "3ds" then
				if mode3 == "nolink" then
					if mode4 == "short" then
						print = "<small>''Smash 3DS''</small>"
					elseif mode4 == "shorter" then
						print = "<small>SSB:3DS</small>"
					elseif mode4 == "shortest" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "<small>''Super Smash Bros. for Nintendo 3DS''</small>"
					else
						print = error
					end
				elseif mode3 == "short" then
					if mode4 == "nolink" then
						print = "<small>''Smash 3DS''</small>"
					elseif isEmpty(mode4) then
						print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash 3DS]]''</small>"
					else
						print = error
					end
				elseif mode3 == "shorter" then
					if mode4 == "nolink" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS]]</small>"
					else
						print = error
					end
				elseif mode3 == "shortest" then
					if mode4 == "nolink" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS]]</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Super Smash Bros. for Nintendo 3DS]]''</small>"
				else
					print = error
				end
			elseif mode2 == "wiiu" then
				if mode3 == "nolink" then
					if mode4 == "short" then
						print = "<small>''Smash Wii U''</small>"
					elseif mode4 == "shorter" then
						print = "<small>SSB:Wii U</small>"
					elseif mode4 == "shortest" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>''Super Smash Bros. for Wii U''</small>"
					else
						print = error
					end
				elseif mode3 == "short" then
					if mode4 == "nolink" then
						print = "<small>''Smash Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash Wii U]]''</small>"
					else
						print = error
					end
				elseif mode3 == "shorter" then
					if mode4 == "nolink" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:Wii U]]</small>"
					else
						print = error
					end
				elseif mode3 == "shortest" then
					if mode4 == "nolink" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:Wii U]]</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Super Smash Bros. for Wii U]]''</small>"
				else
					print = error
				end
			elseif mode2 == "3dswiiu" or mode2 == "wiiu3ds" then
				if mode3 == "nolink" then
					if mode4 == "short" then
						print = "<small>''Smash 3DS / Wii U''</small>"
					elseif mode4 == "shorter" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif mode4 == "shortest" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>''Super Smash Bros. for Nintendo 3DS / Wii U''</small>"
					else
						print = error
					end
				elseif mode3 == "short" then
					if mode4 == "nolink" then
						print = "<small>''Smash 3DS / Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash 3DS / Wii U]]''</small>"
					else
						print = error
					end
				elseif mode3 == "shorter" then
					if mode4 == "nolink" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS/Wii U]]</small>"
					else
						print = error
					end
				elseif mode3 == "shortest" then
					if mode4 == "nolink" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS/Wii U]]</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Super Smash Bros. for Nintendo 3DS / Wii U]]''</small>"
				else
					print = error
				end
			elseif isEmpty(mode2) then
				print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash Smash Bros. 4]]''</small>"
			else
				print = error
			end
		elseif mode1 == "3ds" then
			if mode2 == "nolink" then
				if mode3 == "sm" then
					if mode4 == "short" then
						print = "<small>Smash 3DS</small>"
					elseif mode4 == "shorter" then
						print = "<small>SSB:3DS</small>"
					elseif mode4 == "shortest" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "<small>''Super Smash Bros. for Nintendo 3DS''</small>"
					else
						print = error
					end
				elseif mode3 == "short" then
					if mode4 == "sm" then
						print = "<small>Smash 3DS</small>"
					elseif isEmpty(mode4) then
						print = "Smash 3DS"
					else
						print = error
					end
				elseif mode3 == "shorter" then
					if mode4 == "sm" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "SSB:3DS"
					else
						print = error
					end
				elseif mode3 == "shortest" then
					if mode4 == "sm" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "SSB:3DS"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "''Super Smash Bros. for Nintendo 3DS''"
				else
					print = error
				end
			elseif mode2 == "short" then
				if mode3 == "nolink" then
					if mode4 == "sm" then
						print = "<small>''Smash 3DS''</small>"
					elseif isEmpty(mode4) then
						print = "''Smash 3DS''"
					else
						print = error
					end
				elseif mode3 == "sm" then
					if mode4 == "nolink" then
						print = "<small>''Smash 3DS''</small>"
					elseif isEmpty(mode4) then
						print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash 3DS]]''</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash 3DS]]''"
				else
					print = error
				end
			elseif mode2 == "shorter" then
				if mode3 == "nolink" then
					if mode4 == "sm" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "SSB:3DS"
					else
						print = error
					end
				elseif mode3 == "sm" then
					if mode4 == "nolink" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS]]</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS]]"
				else
					print = error
				end
			elseif mode2 == "shortest" then
				if mode3 == "nolink" then
					if mode4 == "sm" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "SSB:3DS"
					else
						print = error
					end
				elseif mode3 == "sm" then
					if mode4 == "nolink" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS]]</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS]]"
				else
					print = error
				end
			elseif mode2 == "sm" then
				if mode3 == "nolink" then
					if mode4 == "short" then
						print = "<small>''Smash 3DS''</small>"
					elseif mode4 == "shorter" then
						print = "<small>SSB:3DS</small>"
					elseif mode4 == "shortest" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "<small>''Super Smash Bros. for Nintendo 3DS''</small>"
					else
						print = error
					end
				elseif mode3 == "short" then
					if mode4 == "nolink" then
						print = "<small>''Smash 3DS''</small>"
					elseif isEmpty(mode4) then
						print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash 3DS]]''</small>"
					else
						print = error
					end
				elseif mode3 == "shorter" then
					if mode4 == "nolink" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS]]</small>"
					else
						print = error
					end
				elseif mode3 == "shortest" then
					if mode4 == "nolink" then
						print = "<small>SSB:3DS</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS]]</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Super Smash Bros. for Nintendo 3DS]]''</small>"
				else
					print = error
				end
			elseif isEmpty(mode2) then
				print = "''[[Super Smash Bros. for Nintendo 3DS and Wii U|Super Smash Bros. for Nintendo 3DS]]''"
			else
				print = error
			end
		elseif mode1 == "wiiu" then
			if mode2 == "nolink" then
				if mode3 == "sm" then
					if mode4 == "short" then
						print = "<small>Smash Wii U</small>"
					elseif mode4 == "shorter" then
						print = "<small>SSB:Wii U</small>"
					elseif mode4 == "shortest" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>''Super Smash Bros. for Wii U''</small>"
					else
						print = error
					end
				elseif mode3 == "short" then
					if mode4 == "sm" then
						print = "<small>Smash Wii U</small>"
					elseif isEmpty(mode4) then
						print = "Smash Wii U"
					else
						print = error
					end
				elseif mode3 == "shorter" then
					if mode4 == "sm" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "SSB:Wii U"
					else
						print = error
					end
				elseif mode3 == "shortest" then
					if mode4 == "sm" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "SSB:Wii U"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "''Super Smash Bros. for Wii U''"
				else
					print = error
				end
			elseif mode2 == "short" then
				if mode3 == "nolink" then
					if mode4 == "sm" then
						print = "<small>''Smash Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "''Smash Wii U''"
					else
						print = error
					end
				elseif mode3 == "sm" then
					if mode4 == "nolink" then
						print = "<small>''Smash Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash Wii U]]''</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash Wii U]]''"
				else
					print = error
				end
			elseif mode2 == "shorter" then
				if mode3 == "nolink" then
					if mode4 == "sm" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "SSB:Wii U"
					else
						print = error
					end
				elseif mode3 == "sm" then
					if mode4 == "nolink" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:Wii U]]</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:Wii U]]"
				else
					print = error
				end
			elseif mode2 == "shortest" then
				if mode3 == "nolink" then
					if mode4 == "sm" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "SSB:Wii U"
					else
						print = error
					end
				elseif mode3 == "sm" then
					if mode4 == "nolink" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:Wii U]]</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:Wii U]]"
				else
					print = error
				end
			elseif mode2 == "sm" then
				if mode3 == "nolink" then
					if mode4 == "short" then
						print = "<small>''Smash Wii U''</small>"
					elseif mode4 == "shorter" then
						print = "<small>SSB:Wii U</small>"
					elseif mode4 == "shortest" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>''Super Smash Bros. for Wii U''</small>"
					else
						print = error
					end
				elseif mode3 == "short" then
					if mode4 == "nolink" then
						print = "<small>''Smash Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash Wii U]]''</small>"
					else
						print = error
					end
				elseif mode3 == "shorter" then
					if mode4 == "nolink" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:Wii U]]</small>"
					else
						print = error
					end
				elseif mode3 == "shortest" then
					if mode4 == "nolink" then
						print = "<small>SSB:Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:Wii U]]</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Super Smash Bros. for Wii U]]''</small>"
				else
					print = error
				end
			elseif isEmpty(mode2) then
				print = "''[[Super Smash Bros. for Nintendo 3DS and Wii U|Super Smash Bros. for Wii U]]''"
			else
				print = error
			end
		elseif mode1 == "3dswiiu" or mode1 == "wiiu3ds" then
			if mode2 == "nolink" then
				if mode3 == "sm" then
					if mode4 == "short" then
						print = "<small>''Smash 3DS / Wii U''</small>"
					elseif mode4 == "shorter" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif mode4 == "shortest" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>''Super Smash Bros. for Nintendo 3DS / Wii U''</small>"
					else
						print = error
					end
				elseif mode3 == "short" then
					if mode4 == "sm" then
						print = "<small>''Smash 3DS / Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "Smash 3DS / Wii U"
					else
						print = error
					end
				elseif mode3 == "shorter" then
					if mode4 == "sm" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "SSB:3DS/Wii U"
					else
						print = error
					end
				elseif mode3 == "shortest" then
					if mode4 == "sm" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "SSB:3DS/Wii U"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "''Super Smash Bros. for Nintendo 3DS / Wii U''"
				else
					print = error
				end
			elseif mode2 == "short" then
				if mode3 == "nolink" then
					if mode4 == "sm" then
						print = "<small>''Smash 3DS / Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "''Smash 3DS / Wii U''"
					else
						print = error
					end
				elseif mode3 == "sm" then
					if mode4 == "nolink" then
						print = "<small>''Smash 3DS / Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash 3DS / Wii U]]''</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash 3DS / Wii U]]''"
				else
					print = error
				end
			elseif mode2 == "shorter" then
				if mode3 == "nolink" then
					if mode4 == "sm" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "SSB:3DS/Wii U"
					else
						print = error
					end
				elseif mode3 == "sm" then
					if mode4 == "nolink" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS/Wii U]]</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS/Wii U]]"
				else
					print = error
				end
			elseif mode2 == "shortest" then
				if mode3 == "nolink" then
					if mode4 == "sm" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "SSB:3DS/Wii U"
					else
						print = error
					end
				elseif mode3 == "sm" then
					if mode4 == "nolink" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS/Wii U]]</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS/Wii U]]"
				else
					print = error
				end
			elseif mode2 == "sm" then
				if mode3 == "nolink" then
					if mode4 == "short" then
						print = "<small>''Smash 3DS / Wii U''</small>"
					elseif mode4 == "shorter" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif mode4 == "shortest" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>''Super Smash Bros. for Nintendo 3DS / Wii U''</small>"
					else
						print = error
					end
				elseif mode3 == "short" then
					if mode4 == "nolink" then
						print = "<small>''Smash 3DS / Wii U''</small>"
					elseif isEmpty(mode4) then
						print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash 3DS / Wii U]]''</small>"
					else
						print = error
					end
				elseif mode3 == "shorter" then
					if mode4 == "nolink" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS/Wii U]]</small>"
					else
						print = error
					end
				elseif mode3 == "shortest" then
					if mode4 == "nolink" then
						print = "<small>SSB:3DS/Wii U</small>"
					elseif isEmpty(mode4) then
						print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS/Wii U]]</small>"
					else
						print = error
					end
				elseif isEmpty(mode3) then
					print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Super Smash Bros. for Nintendo 3DS / Wii U]]''</small>"
				else
					print = error
				end
			elseif isEmpty(mode2) then
				print = "''[[Super Smash Bros. for Nintendo 3DS and Wii U|Super Smash Bros. for Nintendo 3DS / Wii U]]''"
			else
				print = error
			end
		end
	elseif isEmpty(mode1) then
		print = "''[[Super Smash Bros. for Nintendo 3DS and Wii U|Super Smash Bros. 4]]''"
	else
		print = error
	end
	return print
end

return p