Module:Trig Jegman/Button

local f = {}

function f.main(frame) local result = {} local source = frame:getParent.args["source"] or "" local input = frame:getParent.args["input"] or "" function TEXT(X) local wiiu = wiiu local switch = switch local t = {} t = { ['wiiu'] = wiiu, ['Wii U'] = wiiu, ['Wii u'] = wiiu, ['splatoon'] = wiiu, ['Splatoon'] = wiiu, ['S'] = wiiu, ['S1'] = wiiu, ['s'] = wiiu, ['s1'] = wiiu, ['ov'] = wiiu, ['OV'] = wiiu, ['Octo Valley'] = wiiu, ['octo valley'] = wiiu, ['Octo valley'] = wiiu, ['switch'] = switch, ['Switch'] = switch, ['s2'] = switch, ['S2'] = switch, ['splatoon 2'] = switch, ['Splatoon 2'] = switch, ['Splat2n'] = switch, ['splat2n'] = switch, ['S3'] = switch, ['s3'] = switch, ['splatoon 3'] = switch, ['Splatoon 3'] = switch, ['sideorder'] = switch, ['side order'] = switch, ['Side order'] = switch, ['Side Order'] = switch, ['RotM'] = switch, ['ROTM'] = switch, ['rotm'] = switch, ['Return of the Mammalians'] = switch, ['Return of the mammalians'] = switch, ['Octo Canyon'] = switch, ['Octo canyon'] = switch, ['OC'] = switch, ['octo canyon'] = switch, ['oc'] = switch, ['Octo Expansion'] = switch, ['Octo expansion'] = switch, ['OE'] = switch, ['octo expansion'] = switch, ['oe'] = switch,

}		if not t[X] then return none else return t[X] end end

function BTN(X) local switcha = span class="switch-icon a" title="A" local switchb = span class="switch-icon b" title="B" local switchcap = span class="switch-icon capture" title="Capture" local switchco = span class="switch-icon controller-outline" title="Pro" local switchdpad = span class="pro-icon d-pad" title="D-Pad" local switchdpd = span class="pro-icon d-pad-down" title="D-Pad Down" local switchdpl = span class="pro-icon d-pad-left" title="D-Pad Left" local switchdpr = span class="pro-icon d-pad-right" title="D-Pad Right" local switchdpu = span class="pro-icon d-pad-up" title="D-Pad Up" local switchgpitch = span class="pro-icon gyro-pitch" title="Gyro Pitch" local switchgroll = span class="pro-icon gyro-roll" title="Gyro Roll" local switchgyaw = span class="pro-icon gyro-yaw" title="Gyro Yaw" local switchhandheld = local switchhome = span class="switch-icon home" title="Home" local switchl = span class="switch-icon l" title="L" local switchleftstickall = span class="switch-icon left-stick-all" title="Left Stick All" local switchleftstickclick = span class="switch-icon left-stick-click" title="Left Stick Click" local switchlsd = span class="switch-icon left-stick-down" title="Left Stick Down" local switchlslr = span class="switch-icon left-stick-left-right" title="Left Stick Left-Right" local switchlsl = span class="switch-icon left-stick-left" title="Left Stick Left" local switchlsr = span class="switch-icon left-stick-right" title="Left Stick Right" local switchlsud = span class="switch-icon left-stick-up-down" title="Left Stick Up-Down" local switchlsu = span class="switch-icon left-stick-up" title="Left Stick Up" local switchleftstick = span class="switch-icon left-stick" title="Left Stick" local switchminus = span class="switch-icon minus" title="Minus" local switchplus = span class="switch-icon plus" title="Plus" local switchpro = span class="pro-icon controller-outline" title="Pro" local switchr = span class="switch-icon r" title="R" local switchrightstickall = span class="switch-icon right-stick-all" title="Right Stick All" local switchrightstickclick = span class="switch-icon right-stick-click" title="Right Stick Click" local switchrsd = span class="switch-icon right-stick-down" title="Right Stick Down" local switchrslr = span class="switch-icon right-stick-left-right" title="Right Stick Left-Right" local switchrsl = span class="switch-icon right-stick-left" title="Right Stick Left" local switchrsr = span class="switch-icon right-stick-right" title="Right Stick Right" local switchrsud = span class="switch-icon right-stick-up-down" title="Right Stick Up-Down" local switchrsu = span class="switch-icon right-stick-up" title="Right Stick Up" local switchrightstick = span class="switch-icon right-stick" title="Right Stick" local switchsl = span class="switch-icon sl" title="SL" local switchsr = span class="switch-icon sr" title="SR" local switchx = span class="switch-icon x" title="X" local switchy = span class="switch-icon y" title="Y" local switchzl = span class="switch-icon zl" title="ZL" local switchzr = span class="switch-icon zr" title="ZR" local t = {} t = { ['wiiu'] = wiiu,

}		if not t[X] then return none else return t[X] end end

local panel_source = ' '.. source ..' ' local panel_input = ' '.. input ..' ' if source == "" then panel_game = "" end if input == "" then panel_description = "" end local panel = ''.. panel_input .. panel_game .. ''	table.insert(result, panel) return table.concat(result, "") end

return f