Module:Comic

local p = {} function p.comicSwitcher(frame, reference) -- Get comic value entered from template local comic if reference and frame.args["comic"] then comic = frame.args["comic"] else comic = frame.args[1] end -- Vox Machina Origins if comic == "Animals" or comic == "VMO Animals" then comicName = "Vox Machina Origins: Animals" elseif comic == "VMO1" or comic == "VMO 1" or comic == "VMO I 1" then comicName = "Vox Machina Origins 1|Vox Machina Origins Series I #1" elseif comic == "VMO2" or comic == "VMO 2" or comic == "VMO I 2" then comicName = "Vox Machina Origins 2|Vox Machina Origins Series I #2" elseif comic == "VMO3" or comic == "VMO 3" or comic == "VMO I 3" then comicName = "Vox Machina Origins 3|Vox Machina Origins Series I #3" elseif comic == "VMO4" or comic == "VMO 4" or comic == "VMO I 4" then comicName = "Vox Machina Origins 4|Vox Machina Origins Series I #4" elseif comic == "VMO5" or comic == "VMO 5" or comic == "VMO I 5" then comicName = "Vox Machina Origins 5|Vox Machina Origins Series I #5" elseif comic == "VMO6" or comic == "VMO 6" or comic == "VMO I 6" then comicName = "Vox Machina Origins 6|Vox Machina Origins Series I #6" elseif comic == "VMOII1" or comic == "VMOII 1" or comic == "VMO II 1" then comicName = "Vox Machina Origins II 1|Vox Machina Origins Series II #1" elseif comic == "VMOII2" or comic == "VMOII 2" or comic == "VMO II 2" then comicName = "Vox Machina Origins II 2|Vox Machina Origins Series II #2" elseif comic == "VMOII3" or comic == "VMOII 3" or comic == "VMO II 3" then comicName = "Vox Machina Origins II 3|Vox Machina Origins Series II #3" elseif comic == "VMOII4" or comic == "VMOII 4" or comic == "VMO II 4" then comicName = "Vox Machina Origins II 4|Vox Machina Origins Series II #4" elseif comic == "VMOII5" or comic == "VMOII 5" or comic == "VMO II 5" then comicName = "Vox Machina Origins II 5|Vox Machina Origins Series II #5" elseif comic == "VMOII6" or comic == "VMOII 6" or comic == "VMO II 6" then comicName = "Vox Machina Origins II 6|Vox Machina Origins Series II #6" elseif comic == "VMOIII1" or comic == "VMOIII 1" or comic == "VMO III 1" then comicName = "Vox Machina Origins III 1|Vox Machina Origins Series III #1" elseif comic == "VMOIII2" or comic == "VMOIII 2" or comic == "VMO III 2" then comicName = "Vox Machina Origins III 2|Vox Machina Origins Series III #2" elseif comic == "VMOIII3" or comic == "VMOIII 3" or comic == "VMO III 3" then comicName = "Vox Machina Origins III 3|Vox Machina Origins Series III #3" elseif comic == "VMOIII4" or comic == "VMOIII 4" or comic == "VMO III 4" then comicName = "Vox Machina Origins III 4|Vox Machina Origins Series III #4" elseif comic == "VMOIII5" or comic == "VMOIII 5" or comic == "VMO III 5" then comicName = "Vox Machina Origins III 5|Vox Machina Origins Series III #5" elseif comic == "VMOIII6" or comic == "VMOIII 6" or comic == "VMO III 6" then comicName = "Vox Machina Origins III 6|Vox Machina Origins Series III #6"

-- The Tales of Exandria: The Bright Queen elseif comic == "TBQ1" or comic == "TBQ 1" then comicName = "The Tales of Exandria: The Bright Queen 1|The Tales of Exandria: The Bright Queen #1" elseif comic == "TBQ2" or comic == "TBQ 2" then comicName = "The Tales of Exandria: The Bright Queen 2|The Tales of Exandria: The Bright Queen #2" elseif comic == "TBQ3" or comic == "TBQ 3" then comicName = "The Tales of Exandria: The Bright Queen 3|The Tales of Exandria: The Bright Queen #3" elseif comic == "TBQ4" or comic == "TBQ 4" then comicName = "The Tales of Exandria: The Bright Queen 4|The Tales of Exandria: The Bright Queen #4" -- Mighty Nein Origins elseif comic == "MNO Home" then comicName = "The Mighty Nein Origins: Home" elseif comic == "MNO Jester" then comicName = "The Mighty Nein Origins: Jester Lavorre" elseif comic == "MNO Caleb" then comicName = "The Mighty Nein Origins: Caleb Widogast" elseif comic == "MNO Yasha" then comicName = "The Mighty Nein Origins: Yasha Nydoorin" elseif comic == "MNO Nott" then comicName = "The Mighty Nein Origins: Nott the Brave" elseif comic == "MNO Fjord" then comicName = "The Mighty Nein Origins: Fjord Stone" elseif comic == "MNO Molly" then comicName = "The Mighty Nein Origins: Mollymauk Tealeaf"

else return comic end return comicName end -- function to determine that a variable has a value function isnotempty(s) return s ~= nil and s~= '' end return p