Difference between revisions of "Module:SSB4Link"

From Nookipedia, the Animal Crossing wiki
(finishing this module off)
(fixing logic issues)
Line 1,042: Line 1,042:
 
print = error
 
print = error
 
end
 
end
else
+
elseif mode1 == "3ds" then
print = error
+
if mode2 == "nolink" then
end
+
if mode3 == "sm" then
elseif mode1 == "3ds" then
+
if mode4 == "short" then
if mode2 == "nolink" then
+
print = "<small>Smash 3DS</small>"
if mode3 == "sm" then
+
elseif mode4 == "shorter" then
if mode4 == "short" then
+
print = "<small>SSB:3DS</small>"
print = "<small>Smash 3DS</small>"
+
elseif mode4 == "shortest" then
elseif mode4 == "shorter" then
+
print = "<small>SSB:3DS</small>"
print = "<small>SSB:3DS</small>"
+
elseif isEmpty(mode4) then
elseif mode4 == "shortest" then
+
print = "<small>''Super Smash Bros. for Nintendo 3DS''</small>"
print = "<small>SSB: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(mode4) then
 
elseif isEmpty(mode4) then
print = "<small>''Super Smash Bros. for Nintendo 3DS''</small>"
 
 
else
 
else
 
print = error
 
print = error
 
end
 
end
elseif mode3 == "short" then
+
elseif mode2 == "short" then
if mode4 == "sm" then
+
if mode3 == "nolink" then
print = "<small>Smash 3DS</small>"
+
if mode4 == "sm" then
elseif isEmpty(mode4) then
+
print = "<small>''Smash 3DS''</small>"
print = "Smash 3DS"
+
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''"
 
else
 
else
 
print = error
 
print = error
 
end
 
end
elseif mode3 == "shorter" then
+
elseif mode2 == "shorter" then
if mode4 == "sm" then
+
if mode3 == "nolink" then
print = "<small>SSB:3DS</small>"
+
if mode4 == "sm" then
elseif isEmpty(mode4) then
+
print = "<small>SSB:3DS</small>"
print = "SSB:3DS"
+
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
 
else
 
else
 
print = error
 
print = error
 
end
 
end
elseif mode3 == "shortest" then
+
elseif mode2 == "shortest" then
if mode4 == "sm" then
+
if mode3 == "nolink" then
print = "<small>SSB:3DS</small>"
+
if mode4 == "sm" then
elseif isEmpty(mode4) then
+
print = "<small>SSB:3DS</small>"
print = "SSB:3DS"
+
elseif isEmpty(mode4) then
else
+
print = "SSB:3DS"
print = error
+
else
end
+
print = error
elseif isEmpty(mode4) then
+
end
else
+
elseif mode3 == "sm" then
print = error
+
if mode4 == "nolink" then
end
+
print = "<small>SSB:3DS</small>"
elseif mode2 == "short" then
+
elseif isEmpty(mode4) then
if mode3 == "nolink" then
+
print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS]]</small>"
if mode4 == "sm" then
+
else
print = "<small>''Smash 3DS''</small>"
+
print = error
elseif isEmpty(mode4) then
+
end
print = "''Smash 3DS''"
+
elseif isEmpty(mode3) then
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''"
 
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
 
else
 
print = error
 
print = error
 
end
 
end
elseif mode3 == "sm" then
+
elseif mode2 == "sm" then
if mode4 == "nolink" then
+
if mode3 == "nolink" then
print = "<small>SSB:3DS</small>"
+
if mode4 == "short" then
elseif isEmpty(mode4) then
+
print = "<small>''Smash 3DS''</small>"
print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB: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
 
else
 
print = error
 
print = error
 
end
 
end
elseif isEmpty(mode3) then
+
elseif isEmpty(mode2) then
 +
print = "''[[Super Smash Bros. for Nintendo 3DS and Wii U|Super Smash Bros. for Nintendo 3DS]]''"
 
else
 
else
 
print = error
 
print = error
 
end
 
end
elseif mode2 == "shortest" then
+
elseif mode1 == "wiiu" then
if mode3 == "nolink" then
+
if mode2 == "nolink" then
if mode4 == "sm" then
+
if mode3 == "sm" then
print = "<small>SSB:3DS</small>"
+
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(mode4) then
 
elseif isEmpty(mode4) then
print = "SSB:3DS"
 
 
else
 
else
 
print = error
 
print = error
 
end
 
end
elseif mode3 == "sm" then
+
elseif mode2 == "short" then
if mode4 == "nolink" then
+
if mode3 == "nolink" then
print = "<small>SSB:3DS</small>"
+
if mode4 == "sm" then
elseif isEmpty(mode4) then
+
print = "<small>''Smash Wii U''</small>"
print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS]]</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 Wii U''"
 
else
 
else
 
print = error
 
print = error
 
end
 
end
elseif isEmpty(mode3) then
+
elseif mode2 == "shorter" then
else
+
if mode3 == "nolink" then
print = error
+
if mode4 == "sm" then
end
+
print = "<small>SSB:Wii U</small>"
elseif mode2 == "sm" then
+
elseif isEmpty(mode4) then
if mode3 == "nolink" then
+
print = "SSB:Wii U"
if mode4 == "short" then
+
else
print = "<small>''Smash 3DS''</small>"
+
print = error
elseif mode4 == "shorter" then
+
end
print = "<small>SSB:3DS</small>"
+
elseif mode3 == "sm" then
elseif mode4 == "shortest" then
+
if mode4 == "nolink" then
print = "<small>SSB:3DS</small>"
+
print = "<small>SSB:Wii U</small>"
elseif isEmpty(mode4) then
+
elseif isEmpty(mode4) then
print = "<small>''Super Smash Bros. for Nintendo 3DS''</small>"
+
print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:Wii U]]</small>"
 +
else
 +
print = error
 +
end
 +
elseif isEmpty(mode3) then
 
else
 
else
 
print = error
 
print = error
 
end
 
end
elseif mode3 == "short" then
+
elseif mode2 == "shortest" then
if mode4 == "nolink" then
+
if mode3 == "nolink" then
print = "<small>''Smash 3DS''</small>"
+
if mode4 == "sm" then
elseif isEmpty(mode4) then
+
print = "<small>SSB:Wii U</small>"
print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash 3DS]]''</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
 
else
 
else
 
print = error
 
print = error
 
end
 
end
elseif mode3 == "shorter" then
+
elseif mode2 == "sm" then
if mode4 == "nolink" then
+
if mode3 == "nolink" then
print = "<small>SSB:3DS</small>"
+
if mode4 == "short" then
elseif isEmpty(mode4) then
+
print = "<small>''Smash Wii U''</small>"
print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS]]</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
 
else
 
print = error
 
print = error
 
end
 
end
elseif mode3 == "shortest" then
+
elseif isEmpty(mode2) then
if mode4 == "nolink" then
+
print = "''[[Super Smash Bros. for Nintendo 3DS and Wii U|Super Smash Bros. for Wii U]]''"
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
 
else
 
print = error
 
print = error
 
end
 
end
elseif isEmpty(mode2) then
+
elseif mode1 == "3dswiiu" or mode1 == "wiiu3ds" then
print = "''[[Super Smash Bros. for Nintendo 3DS and Wii U|Super Smash Bros. for Nintendo 3DS]]''"
+
if mode2 == "nolink" then
else
+
if mode3 == "sm" then
print = error
+
if mode4 == "short" then
end
+
print = "<small>Smash 3DS / Wii U</small>"
elseif mode1 == "wiiu" then
+
elseif mode4 == "shorter" then
if mode2 == "nolink" then
+
print = "<small>SSB:3DS/Wii U</small>"
if mode3 == "sm" then
+
elseif mode4 == "shortest" then
if mode4 == "short" then
+
print = "<small>SSB:3DS/Wii U</small>"
print = "<small>Smash Wii U</small>"
+
elseif isEmpty(mode4) then
elseif mode4 == "shorter" then
+
print = "<small>''Super Smash Bros. for Nintendo 3DS / Wii U''</small>"
print = "<small>SSB:Wii U</small>"
+
else
elseif mode4 == "shortest" then
+
print = error
print = "<small>SSB:Wii U</small>"
+
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(mode4) then
 
elseif isEmpty(mode4) then
print = "<small>''Super Smash Bros. for Wii U''</small>"
 
 
else
 
else
 
print = error
 
print = error
 
end
 
end
elseif mode3 == "short" then
+
elseif mode2 == "short" then
if mode4 == "sm" then
+
if mode3 == "nolink" then
print = "<small>Smash Wii U</small>"
+
if mode4 == "sm" then
elseif isEmpty(mode4) then
+
print = "<small>''Smash 3DS / Wii U''</small>"
print = "Smash Wii U"
+
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 / Wii U''"
 
else
 
else
 
print = error
 
print = error
 
end
 
end
elseif mode3 == "shorter" then
+
elseif mode2 == "shorter" then
if mode4 == "sm" then
+
if mode3 == "nolink" then
print = "<small>SSB:Wii U</small>"
+
if mode4 == "sm" then
elseif isEmpty(mode4) then
+
print = "<small>SSB:3DS/Wii U</small>"
print = "SSB:Wii U"
+
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
 
else
 
else
 
print = error
 
print = error
 
end
 
end
elseif mode3 == "shortest" then
+
elseif mode2 == "shortest" then
if mode4 == "sm" then
+
if mode3 == "nolink" then
print = "<small>SSB:Wii U</small>"
+
if mode4 == "sm" then
elseif isEmpty(mode4) then
+
print = "<small>SSB:3DS/Wii U</small>"
print = "SSB:Wii U"
+
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
 
else
 
else
 
print = error
 
print = error
 
end
 
end
elseif isEmpty(mode4) then
+
elseif mode2 == "sm" then
else
+
if mode3 == "nolink" then
print = error
+
if mode4 == "short" then
end
+
print = "<small>''Smash 3DS / Wii U''</small>"
elseif mode2 == "short" then
+
elseif mode4 == "shorter" then
if mode3 == "nolink" then
+
print = "<small>SSB:3DS/Wii U</small>"
if mode4 == "sm" then
+
elseif mode4 == "shortest" then
print = "<small>''Smash Wii U''</small>"
+
print = "<small>SSB:3DS/Wii U</small>"
elseif isEmpty(mode4) then
+
elseif isEmpty(mode4) then
print = "''Smash Wii U''"
+
print = "<small>''Super Smash Bros. for Nintendo 3DS / Wii U''</small>"
else
+
else
print = error
+
print = error
end
+
end
elseif mode3 == "sm" then
+
elseif mode3 == "short" then
if mode4 == "nolink" then
+
if mode4 == "nolink" then
print = "<small>''Smash Wii U''</small>"
+
print = "<small>''Smash 3DS / Wii U''</small>"
elseif isEmpty(mode4) then
+
elseif isEmpty(mode4) then
print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash Wii U]]''</small>"
+
print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash 3DS / Wii U]]''</small>"
else
+
else
print = error
+
print = error
end
+
end
elseif isEmpty(mode3) then
+
elseif mode3 == "shorter" then
print = "''Super Smash Bros. for Wii U''"
+
if mode4 == "nolink" then
else
+
print = "<small>SSB:3DS/Wii U</small>"
print = error
+
elseif isEmpty(mode4) then
end
+
print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS/Wii U]]</small>"
elseif mode2 == "shorter" then
+
else
if mode3 == "nolink" then
+
print = error
if mode4 == "sm" then
+
end
print = "<small>SSB:Wii U</small>"
+
elseif mode3 == "shortest" then
elseif isEmpty(mode4) then
+
if mode4 == "nolink" then
print = "SSB:Wii U"
+
print = "<small>SSB:3DS/Wii U</small>"
else
+
elseif isEmpty(mode4) then
print = error
+
print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:3DS/Wii U]]</small>"
end
+
else
elseif mode3 == "sm" then
+
print = error
if mode4 == "nolink" then
+
end
print = "<small>SSB:Wii U</small>"
+
elseif isEmpty(mode3) then
elseif isEmpty(mode4) then
+
print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Super Smash Bros. for Nintendo 3DS / Wii U]]''</small>"
print = "<small>[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB:Wii U]]</small>"
 
else
 
print = error
 
end
 
elseif isEmpty(mode3) then
 
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
 
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(mode4) then
 
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 / 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
 
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
 
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
 
else
 
print = error
 
print = error
 
end
 
end
elseif isEmpty(mode3) then
+
elseif isEmpty(mode2) then
print = "<small>''[[Super Smash Bros. for Nintendo 3DS and Wii U|Super Smash Bros. for Nintendo 3DS / Wii U]]''</small>"
+
print = "''[[Super Smash Bros. for Nintendo 3DS and Wii U|Super Smash Bros. for Nintendo 3DS / Wii U]]''"
 
else
 
else
 
print = error
 
print = error
 
end
 
end
elseif isEmpty(mode2) then
+
elseif isEmpty(mode1) then
print = "''[[Super Smash Bros. for Nintendo 3DS and Wii U|Super Smash Bros. for Nintendo 3DS / Wii U]]''"
+
print = "''[[Super Smash Bros. for Nintendo 3DS and Wii U|Super Smash Bros. 4]]''"
 
else
 
else
 
print = error
 
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
 
end
 
return print
 
return print

Revision as of 01:14, November 8, 2022

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 entered 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 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(mode4) then
				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''"
				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
				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
				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(mode4) then
				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 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
				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
				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(mode4) then
				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 / 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
				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
				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
		elseif isEmpty(mode1) then
			print = "''[[Super Smash Bros. for Nintendo 3DS and Wii U|Super Smash Bros. 4]]''"
		else
			print = error
		end
	end
	return print
end

return p