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 == "vmo" or comic == "vox machina origins" then comicName = "Vox Machina Origins" elseif comic == "animals" or comic == "vmo animals" then comicName = "Vox Machina Origins: Animals" elseif comic == "vmo series i" or comic == "vmo i"       then comicName = "Vox Machina Origins Series I"    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 == "vmo series ii" or comic == "vmo ii" then comicName = "Vox Machina Origins Series II" 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 == "vmo series iii" or comic == "vmo iii" then comicName = "Vox Machina Origins Series III" 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 elseif comic == "tales of exandria" or comic =="tales" then comicName = "The Tales of Exandria" elseif comic == "tbq" or comic == "the bright queen" then comicName = "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" then comicName = "The 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" -- Other comics elseif comic == "cr winter's crest festival" or comic == "cr wcf" or comic == "cr winter's crest" then comicName = "Critical Role: Winter's Crest Festival"

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