FANDOM


local p = {}
 
-- function to take a given value of "ep" and return the episode's name and CxEE code
function p.epSwitcher(frame, reference)
    -- Get ep value entered from template
    local ep
    if reference and frame.args["ep"] then ep = frame.args["ep"]
    elseif reference then ep = "0x00"
    else ep = frame.args[1] end
    -- part only used here for Trial of the Take episodes
    local partTOTT
    if reference then partTOTT = frame.args["part"] or nil end
    if not isnotempty(partTOTT) then partTOTT = "0" end
 
    -- Get episode name and CxEE code
    if ep == "16a" or ep == "016a" or ep == "Episode 16a" or ep == "Episode 016a" or ep == "Sx01" or ep == "Special 1" or ep == "Special 01" or ep == "How to Score a Massive Hit"
        then epName, CxEE = "How to Score a Massive Hit", "Sx01"
    elseif ep == "26a" or ep == "026a" or ep == "Episode 26a" or ep == "Episode 026a" or ep == "Sx02" or ep == "Special 2" or ep == "Special 02" or ep == "Critical Trolls for Extra Life"
        then epName, CxEE = "Critical Trolls for Extra Life", "Sx02"
    elseif ep == "28a" or ep == "028a" or ep == "Episode 28a" or ep == "Episode 028a" or ep == "Sx03" or ep == "Special 3" or ep == "Special 03" or ep == "D&Diesel" or ep == "D&Diesel"
        then epName, CxEE = "D&Diesel", "Sx03"
    elseif ep == "31a" or ep == "031a" or ep == "Episode 31a" or ep == "Episode 031a" or ep == "Sx04" or ep == "Special 4" or ep == "Special 04" or ep == "November 2015 Critmas"
        then epName, CxEE = "November 2015 Critmas", "Sx04"
    elseif ep == "35a" or ep == "035a" or ep == "Episode 35a" or ep == "Episode 035a" or ep == "Sx05" or ep == "Special 5" or ep == "Special 05" or ep == "December 2015 Critmas"
        then epName, CxEE = "December 2015 Critmas", "Sx05"
    elseif ep == "36a" or ep == "036a" or ep == "Episode 36a" or ep == "Episode 036a" or ep == "Sx06" or ep == "Special 6" or ep == "Special 06" or ep == "The Story of Vox Machina"
        then epName, CxEE = "The Story of Vox Machina", "Sx06"
    elseif ep == "43a" or ep == "043a" or ep == "Episode 43a" or ep == "Episode 043a" or ep == "Sx07" or ep == "Special 7" or ep == "Special 07" or ep == "Wizard World Gaming Portland Panel"
        then epName, CxEE = "Wizard World Gaming Portland Panel", "Sx07"
    elseif ep == "43b" or ep == "043b" or ep == "Episode 43b" or ep == "Episode 043b" or ep == "Sx08" or ep == "Special 8" or ep == "Special 08" or ep == "Critical Role Q&A and Battle Royale!" or ep == "Critical Role Q%26A and Battle Royale!" or ep == "''Critical Role'' Q%26A and Battle Royale!" or ep == "''Critical Role'' Q&A and Battle Royale!" or ep == "Critical Role Q&A and Battle Royale!"
        then epName, CxEE = "Critical Role Q&A and Battle Royale!|''Critical Role'' Q&A and Battle Royale!", "Sx08"
    elseif ep == "49a" or ep == "049a" or ep == "Episode 49a" or ep == "Episode 049a" or ep == "Sx09" or ep == "Special 9" or ep == "Special 09" or ep == "To the Poop! Goblins: A Critical Role Pathfinder One-Shot" or ep == "To the Poop! Goblins: A ''Critical Role'' ''Pathfinder'' One-Shot" or ep == "To the Poop! Goblins: A %27%27Critical Role%27%27 %27%27Pathfinder%27%27 One-Shot" or ep == "To the Poop! Goblins%3A A %27%27Critical Role%27%27 %27%27Pathfinder%27%27 One-Shot"
        then epName, CxEE = "To the Poop! Goblins: A Critical Role Pathfinder One-Shot|To the Poop! Goblins: A ''Critical Role'' ''Pathfinder'' One-Shot", "Sx09"
    elseif ep == "54a" or ep == "054a" or ep == "Episode 54a" or ep == "Episode 054a" or ep == "Sx10" or ep == "Special 10" or ep == "Critical Role Q&A and Battle Royale: Take II" or ep == "Critical Role Q%26A and Battle Royale: Take II" or ep == "''Critical Role'' Q%26A and Battle Royale: Take II" or ep == "''Critical Role'' Q&A and Battle Royale: Take II" or ep == "''Critical Role'' Q&A and Battle Royale: Take II"
        then epName, CxEE = "Critical Role Q&A and Battle Royale: Take II|''Critical Role'' Q&A and Battle Royale: Take II", "Sx10"
    elseif ep == "58a" or ep == "058a" or ep == "Episode 58a" or ep == "Episode 058a" or ep == "Sx11" or ep == "Special 11" or ep == "Deadlands One-Shot for MDA Charity!" or ep == "''Deadlands'' One-Shot for MDA Charity!"
        then epName, CxEE = "Deadlands One-Shot for MDA Charity!|''Deadlands'' One-Shot for MDA Charity!", "Sx11"
    elseif ep == "58b" or ep == "058b" or ep == "Episode 58b" or ep == "Episode 058b" or ep == "Sx12" or ep == "Special 12" or ep == "Liam O'Brien's Lovecraftian Horror One-Shot and Cast Q&A" or ep == "Liam O'Brien's Lovecraftian Horror One-Shot and Cast Q%26A" or ep == "Liam O'Brien's Lovecraftian Horror One-Shot and Cast Q&A" or ep == "Critical Role EXTRA – Liam's Quest!" or ep == "Critical Role EXTRA – Liam's Quest!" or ep == "Critical Role EXTRA – Liam's Quest!" or ep == "Critical Role EXTRA – Liam's Quest!" or ep == "Critical Role EXTRA – Liam's Quest!"
        then epName, CxEE = "Critical Role EXTRA – Liam's Quest!", "Sx12"
    elseif ep == "60a" or ep == "060a" or ep == "Episode 60a" or ep == "Episode 060a" or ep == "Sx13" or ep == "Special 13" or ep == "Critical Role's 'The Dating Game' Panel – SDCC 2016" or ep == "''Critical Role''%27s 'The Dating Game' Panel – SDCC 2016" or ep == "''Critical Role'''s 'The Dating Game' Panel – SDCC 2016" or ep == "''Critical Role'''s 'The Dating Game' Panel – SDCC 2016" or ep == "%27%27Critical Role%27%27%27s %27The Dating Game%27 Panel – SDCC 2016" or ep == "Critical Role's 'The Dating Game' Panel – SDCC 2016"
        then epName, CxEE = "Critical Role's 'The Dating Game' Panel – SDCC 2016|''Critical Role'''s 'The Dating Game' Panel – SDCC 2016", "Sx13"
    elseif ep == "60b" or ep == "060b" or ep == "Episode 60b" or ep == "Episode 060b" or ep == "Sx14" or ep == "Special 14" or ep == "Critical Role Answers Your Questions at SDCC!" or ep == "''Critical Role'' Answers Your Questions at SDCC!" or ep == "''Critical Role'' Answers Your Questions at SDCC!"
        then epName, CxEE = "Critical Role Answers Your Questions at SDCC!|''Critical Role'' Answers Your Questions at SDCC!", "Sx14"
    elseif ep == "65a" or ep == "065a" or ep == "Episode 65a" or ep == "Episode 065a" or ep == "Sx15" or ep == "Special 15" or ep == "Critical Role Extra - The Return of Liam!" or ep == "Critical Role Extra – The Return of Liam!" or ep == "Critical Role Extra – The Return of Liam!"
        then epName, CxEE = "Critical Role Extra – The Return of Liam!", "Sx15"
    elseif ep == "Sx16" or ep == "Special 16"
        then epName, CxEE = "Special 16", "Sx16"
    elseif ep == "Sx17" or ep == "Special 17"
        then epName, CxEE = "Special 17", "Sx17"
    elseif ep == "1" or ep == "01" or ep == "001" or ep == "Episode 1" or ep == "Episode 01" or ep == "Episode 001" or ep == "1x01" or ep == "Arrival at Kraghammer"
        then epName, CxEE = "Arrival at Kraghammer", "1x01"
    elseif ep == "2" or ep == "02" or ep == "002" or ep == "Episode 2" or ep == "Episode 02" or ep == "Episode 002" or ep == "1x02" or ep == "Into the Greyspine Mines"
        then epName, CxEE = "Into the Greyspine Mines", "1x02"
    elseif ep == "3" or ep == "03" or ep == "003" or ep == "Episode 3" or ep == "Episode 03" or ep == "Episode 003" or ep == "1x03" or ep == "Strange Bedfellows"
        then epName, CxEE = "Strange Bedfellows", "1x03"
    elseif ep == "4" or ep == "04" or ep == "004" or ep == "Episode 4" or ep == "Episode 04" or ep == "Episode 004" or ep == "1x04" or ep == "Attack on the Duergar Warcamp"
        then epName, CxEE = "Attack on the Duergar Warcamp", "1x04"
    elseif ep == "5" or ep == "05" or ep == "005" or ep == "Episode 5" or ep == "Episode 05" or ep == "Episode 005" or ep == "1x05" or ep == "The Trick about Falling"
        then epName, CxEE = "The Trick about Falling", "1x05"
    elseif ep == "6" or ep == "06" or ep == "006" or ep == "Episode 6" or ep == "Episode 06" or ep == "Episode 006" or ep == "1x06" or ep == "Breaching the Emberhold"
        then epName, CxEE = "Breaching the Emberhold", "1x06"
    elseif ep == "7" or ep == "07" or ep == "007" or ep == "Episode 7" or ep == "Episode 07" or ep == "Episode 007" or ep == "1x07" or ep == "The Throne Room"
        then epName, CxEE = "The Throne Room", "1x07"
    elseif ep == "8" or ep == "08" or ep == "008" or ep == "Episode 8" or ep == "Episode 08" or ep == "Episode 008" or ep == "1x08" or ep == "Glass and Bone"
        then epName, CxEE = "Glass and Bone", "1x08"
    elseif ep == "9" or ep == "09" or ep == "009" or ep == "Episode 9" or ep == "Episode 09" or ep == "Episode 009" or ep == "1x09" or ep == "Yug'Voril Uncovered" or ep == "Yug'Voril Uncovere"
        then epName, CxEE = "Yug'Voril Uncovered", "1x09"
    elseif ep == "10" or ep == "010" or ep == "Episode 10" or ep == "Episode 010" or ep == "1x10" or ep == "K'Varn Revealed" or ep == "K'Varn Revealed"
        then epName, CxEE = "K'Varn Revealed", "1x10"
    elseif ep == "11" or ep == "011" or ep == "Episode 11" or ep == "Episode 011" or ep == "1x11" or ep == "The Temple Showdown"
        then epName, CxEE = "The Temple Showdown", "1x11"
    elseif ep == "12" or ep == "012" or ep == "Episode 12" or ep == "Episode 012" or ep == "1x12" or ep == "Dungeons & Dragons Campaign Tips" or ep == "Dungeons & Dragons Campaign Tips" or ep == "''Dungeons & Dragons'' Campaign Tips" or ep == "''Dungeons & Dragons'' Campaign Tips"
        then epName, CxEE = "''Dungeons & Dragons'' Campaign Tips", "1x12"
    elseif ep == "13" or ep == "013" or ep == "Episode 13" or ep == "Episode 013" or ep == "1x13" or ep == "Escape from the Underdark"
        then epName, CxEE = "Escape from the Underdark", "1x13"
    elseif ep == "14" or ep == "014" or ep == "Episode 14" or ep == "Episode 014" or ep == "1x14" or ep == "Shopping and Shipping"
        then epName, CxEE = "Shopping and Shipping", "1x14"
    elseif ep == "15" or ep == "015" or ep == "Episode 15" or ep == "Episode 015" or ep == "1x15" or ep == "Skyward"
        then epName, CxEE = "Skyward", "1x15"
    elseif ep == "16" or ep == "016" or ep == "Episode 16" or ep == "Episode 016" or ep == "1x16" or ep == "Enter Vasselheim"
        then epName, CxEE = "Enter Vasselheim", "1x16"
    elseif ep == "17" or ep == "017" or ep == "Episode 17" or ep == "Episode 017" or ep == "2x01" or ep == "Hubris"
        then epName, CxEE = "Hubris", "2x01"
    elseif ep == "18" or ep == "018" or ep == "Episode 18" or ep == "Episode 018" or ep == "2x02" or ep == "Trial of the Take: Part 1" or (ep == "Trial of the Take" and partTOTT == "1")
        then epName, CxEE = "Trial of the Take: Part 1", "2x02"
    elseif ep == "19" or ep == "019" or ep == "Episode 19" or ep == "Episode 019" or ep == "2x03" or ep == "Trial of the Take: Part 2" or (ep == "Trial of the Take" and partTOTT == "2")
        then epName, CxEE = "Trial of the Take: Part 2", "2x03"
    elseif ep == "20" or ep == "020" or ep == "Episode 20" or ep == "Episode 020" or ep == "2x04" or ep == "Trial of the Take: Part 3" or (ep == "Trial of the Take" and partTOTT == "3")
        then epName, CxEE = "Trial of the Take: Part 3", "2x04"
    elseif ep == "21" or ep == "021" or ep == "Episode 21" or ep == "Episode 021" or ep == "2x05" or ep == "Trial of the Take: Part 4" or (ep == "Trial of the Take" and partTOTT == "4")
        then epName, CxEE = "Trial of the Take: Part 4", "2x05"
    elseif ep == "22" or ep == "022" or ep == "Episode 22" or ep == "Episode 022" or ep == "2x06" or ep == "Aramente to Pyrah" or ep == "Aramenté to Pyrah" or ep == "Aramenté to Pyrah"
        then epName, CxEE = "Aramenté to Pyrah", "2x06"
    elseif ep == "23" or ep == "023" or ep == "Episode 23" or ep == "Episode 023" or ep == "2x07" or ep == "The Rematch"
        then epName, CxEE = "The Rematch", "2x07"
    elseif ep == "24" or ep == "024" or ep == "Episode 24" or ep == "Episode 024" or ep == "3x01" or ep == "The Feast"
        then epName, CxEE = "The Feast", "3x01"
    elseif ep == "25" or ep == "025" or ep == "Episode 25" or ep == "Episode 025" or ep == "3x02" or ep == "Crimson Diplomacy"
        then epName, CxEE = "Crimson Diplomacy", "3x02"
    elseif ep == "26" or ep == "026" or ep == "Episode 26" or ep == "Episode 026" or ep == "3x03" or ep == "Consequences and Cows"
        then epName, CxEE = "Consequences and Cows", "3x03"
    elseif ep == "27" or ep == "027" or ep == "Episode 27" or ep == "Episode 027" or ep == "3x04" or ep == "The Path to Whitestone"
        then epName, CxEE = "The Path to Whitestone", "3x04"
    elseif ep == "28" or ep == "028" or ep == "Episode 28" or ep == "Episode 028" or ep == "3x05" or ep == "The Sun Tree" or ep == "The Sun Tree (episode)"
        then epName, CxEE = "The Sun Tree (episode)|The Sun Tree", "3x05"
    elseif ep == "29" or ep == "029" or ep == "Episode 29" or ep == "Episode 029" or ep == "3x06" or ep == "Whispers"
        then epName, CxEE = "Whispers", "3x06"
    elseif ep == "30" or ep == "030" or ep == "Episode 30" or ep == "Episode 030" or ep == "3x07" or ep == "Stoke the Flames"
        then epName, CxEE = "Stoke the Flames", "3x07"
    elseif ep == "31" or ep == "031" or ep == "Episode 31" or ep == "Episode 031" or ep == "3x08" or ep == "Gunpowder Plot"
        then epName, CxEE = "Gunpowder Plot", "3x08"
    elseif ep == "32" or ep == "032" or ep == "Episode 32" or ep == "Episode 032" or ep == "3x09" or ep == "Against the Tide of Bone"
        then epName, CxEE = "Against the Tide of Bone", "3x09"
    elseif ep == "33" or ep == "033" or ep == "Episode 33" or ep == "Episode 033" or ep == "3x10" or ep == "Reunions"
        then epName, CxEE = "Reunions", "3x10"
    elseif ep == "34" or ep == "034" or ep == "Episode 34" or ep == "Episode 034" or ep == "3x11" or ep == "Race to the Ziggurat"
        then epName, CxEE = "Race to the Ziggurat", "3x11"
    elseif ep == "35" or ep == "035" or ep == "Episode 35" or ep == "Episode 035" or ep == "3x12" or ep == "Denouement"
        then epName, CxEE = "Denouement", "3x12"
    elseif ep == "36" or ep == "036" or ep == "Episode 36" or ep == "Episode 036" or ep == "3x13" or ep == "Winter's Crest in Whitestone" or ep == "Winter's Crest in Whitestone"
        then epName, CxEE = "Winter's Crest in Whitestone", "3x13"
    elseif ep == "37" or ep == "037" or ep == "Episode 37" or ep == "Episode 037" or ep == "3x14" or ep == "A Musician's Nostalgia" or ep == "A Musician's Nostalgia"
        then epName, CxEE = "A Musician's Nostalgia", "3x14"
    elseif ep == "38" or ep == "038" or ep == "Episode 38" or ep == "Episode 038" or ep == "3x15" or ep == "Echoes of the Past"
        then epName, CxEE = "Echoes of the Past", "3x15"
    elseif ep == "39" or ep == "039" or ep == "Episode 39" or ep == "Episode 039" or ep == "4x01" or ep == "Omens"
        then epName, CxEE = "Omens", "4x01"
    elseif ep == "40" or ep == "040" or ep == "Episode 40" or ep == "Episode 040" or ep == "4x02" or ep == "Desperate Measures"
        then epName, CxEE = "Desperate Measures", "4x02"
    elseif ep == "41" or ep == "041" or ep == "Episode 41" or ep == "Episode 041" or ep == "4x03" or ep == "In Ruins"
        then epName, CxEE = "In Ruins", "4x03"
    elseif ep == "42" or ep == "042" or ep == "Episode 42" or ep == "Episode 042" or ep == "4x04" or ep == "Dangerous Dealings"
        then epName, CxEE = "Dangerous Dealings", "4x04"
    elseif ep == "43" or ep == "043" or ep == "Episode 43" or ep == "Episode 043" or ep == "4x05" or ep == "Return to Vasselheim"
        then epName, CxEE = "Return to Vasselheim", "4x05"
    elseif ep == "44" or ep == "044" or ep == "Episode 44" or ep == "Episode 044" or ep == "4x06" or ep == "The Sunken Tomb"
        then epName, CxEE = "The Sunken Tomb", "4x06"
    elseif ep == "45" or ep == "045" or ep == "Episode 45" or ep == "Episode 045" or ep == "4x07" or ep == "Those Who Walk Away"
        then epName, CxEE = "Those Who Walk Away", "4x07"
    elseif ep == "46" or ep == "046" or ep == "Episode 46" or ep == "Episode 046" or ep == "4x08" or ep == "Cindergrove Revisited"
        then epName, CxEE = "Cindergrove Revisited", "4x08"
    elseif ep == "47" or ep == "047" or ep == "Episode 47" or ep == "Episode 047" or ep == "4x09" or ep == "The Family Business"
        then epName, CxEE = "The Family Business", "4x09"
    elseif ep == "48" or ep == "048" or ep == "Episode 48" or ep == "Episode 048" or ep == "4x10" or ep == "Into the Frostweald"
        then epName, CxEE = "Into the Frostweald", "4x10"
    elseif ep == "49" or ep == "049" or ep == "Episode 49" or ep == "Episode 049" or ep == "4x11" or ep == "A Name Is Earned"
        then epName, CxEE = "A Name Is Earned", "4x11"
    elseif ep == "50" or ep == "050" or ep == "Episode 50" or ep == "Episode 050" or ep == "4x12" or ep == "Best Laid Plans..."
        then epName, CxEE = "Best Laid Plans...", "4x12"
    elseif ep == "51" or ep == "051" or ep == "Episode 51" or ep == "Episode 051" or ep == "4x13" or ep == "Test of Pride"
        then epName, CxEE = "Test of Pride", "4x13"
    elseif ep == "52" or ep == "052" or ep == "Episode 52" or ep == "Episode 052" or ep == "4x14" or ep == "The Kill Box"
        then epName, CxEE = "The Kill Box", "4x14"
    elseif ep == "53" or ep == "053" or ep == "Episode 53" or ep == "Episode 053" or ep == "4x15" or ep == "At Dawn, We Plan!"
        then epName, CxEE = "At Dawn, We Plan!", "4x15"
    elseif ep == "54" or ep == "054" or ep == "Episode 54" or ep == "Episode 054" or ep == "4x16" or ep == "In the Belly of the Beast"
        then epName, CxEE = "In the Belly of the Beast", "4x16"
    elseif ep == "55" or ep == "055" or ep == "Episode 55" or ep == "Episode 055" or ep == "4x17" or ep == "Umbrasyl" or ep == "Umbrasyl (episode)"
        then epName, CxEE = "Umbrasyl (episode)|Umbrasyl", "4x17"
    elseif ep == "56" or ep == "056" or ep == "Episode 56" or ep == "Episode 056" or ep == "4x18" or ep == "Hope"
        then epName, CxEE = "Hope", "4x18"
    elseif ep == "57" or ep == "057" or ep == "Episode 57" or ep == "Episode 057" or ep == "5x01" or ep == "Duskmeadow"
        then epName, CxEE = "Duskmeadow", "5x01"
    elseif ep == "58" or ep == "058" or ep == "Episode 58" or ep == "Episode 058" or ep == "5x02" or ep == "A Cycle of Vengeance"
        then epName, CxEE = "A Cycle of Vengeance", "5x02"
    elseif ep == "59" or ep == "059" or ep == "Episode 59" or ep == "Episode 059" or ep == "5x03" or ep == "Into the Feywild"
        then epName, CxEE = "Into the Feywild", "5x03"
    elseif ep == "60" or ep == "060" or ep == "Episode 60" or ep == "Episode 060" or ep == "5x04" or ep == "Heredity and Hats"
        then epName, CxEE = "Heredity and Hats", "5x04"
    elseif ep == "61" or ep == "061" or ep == "Episode 61" or ep == "Episode 061" or ep == "5x05" or ep == "Denizens of the Moonbrush"
        then epName, CxEE = "Denizens of the Moonbrush", "5x05"
    elseif ep == "62" or ep == "062" or ep == "Episode 62" or ep == "Episode 062" or ep == "5x06" or ep == "Uninviting Waters"
        then epName, CxEE = "Uninviting Waters", "5x06"
    elseif ep == "63" or ep == "063" or ep == "Episode 63" or ep == "Episode 063" or ep == "5x07" or ep == "The Echo Tree"
        then epName, CxEE = "The Echo Tree", "5x07"
    elseif ep == "64" or ep == "064" or ep == "Episode 64" or ep == "Episode 064" or ep == "5x08" or ep == "The Frigid Doom"
        then epName, CxEE = "The Frigid Doom", "5x08"
    elseif ep == "65" or ep == "065" or ep == "Episode 65" or ep == "Episode 065" or ep == "5x09" or ep == "The Streets of Ank'Harel" or ep == "The Streets of Ank'Harel"
        then epName, CxEE = "The Streets of Ank'Harel", "5x09"
    elseif ep == "66" or ep == "066" or ep == "Episode 66" or ep == "Episode 066" or ep == "5x10" or ep == "A Traveler's Gamble" or ep == "A Traveler's Gamble"
        then epName, CxEE = "A Traveler's Gamble", "5x10"
    elseif ep == "67" or ep == "067" or ep == "Episode 67" or ep == "Episode 067" or ep == "5x11" or ep == "The Chase to Glintshore"
        then epName, CxEE = "The Chase to Glintshore", "5x11"
    elseif ep == "68" or ep == "068" or ep == "Episode 68" or ep == "Episode 068" or ep == "5x12" or ep == "Cloak and Dagger"
        then epName, CxEE = "Cloak and Dagger", "5x12"
    elseif ep == "69" or ep == "069" or ep == "Episode 69" or ep == "Episode 069" or ep == "5x13" or ep == "Passed Through Fire"
        then epName, CxEE = "Passed Through Fire", "5x13"
    elseif ep == "70" or ep == "070" or ep == "Episode 70" or ep == "Episode 070" or ep == "6x01" or ep == "Trust"
        then epName, CxEE = "Trust", "6x01"
    elseif ep == "71" or ep == "071" or ep == "Episode 71" or ep == "Episode 071" or ep == "6x02" or ep == "Vorugal" or ep == "Vorugal (episode)"
        then epName, CxEE = "Vorugal (episode)|Vorugal", "6x02"
    elseif ep == "72" or ep == "072" or ep == "Episode 72" or ep == "Episode 072" or ep == "6x03" or ep == "The Elephant in the Room"
        then epName, CxEE = "The Elephant in the Room", "6x03"
    elseif ep == "73" or ep == "073" or ep == "Episode 73" or ep == "Episode 073" or ep == "6x04" or ep == "The Coming Storm"
        then epName, CxEE = "The Coming Storm", "6x04"
    elseif ep == "74" or ep == "074" or ep == "Episode 74" or ep == "Episode 074" or ep == "6x05" or ep == "Path of Brass"
        then epName, CxEE = "Path of Brass", "6x05"
    elseif ep == "75" or ep == "075" or ep == "Episode 75" or ep == "Episode 075" or ep == "6x06" or ep == "Where the Cards Fall"
        then epName, CxEE = "Where the Cards Fall", "6x06"
    elseif ep == "76" or ep == "076" or ep == "Episode 76" or ep == "Episode 076" or ep == "6x07" or ep == "Brawl in the Arches"
        then epName, CxEE = "Brawl in the Arches", "6x07"
    elseif ep == "77" or ep == "077" or ep == "Episode 77" or ep == "Episode 077" or ep == "6x08" or ep == "Clash at Daxio"
        then epName, CxEE = "Clash at Daxio", "6x08"
    elseif ep == "78" or ep == "078" or ep == "Episode 78" or ep == "Episode 078" or ep == "6x09" or ep == "The Siege of Emon"
        then epName, CxEE = "The Siege of Emon", "6x09"
    elseif ep == "79" or ep == "079" or ep == "Episode 79" or ep == "Episode 079" or ep == "6x10" or ep == "Thordak" or ep == "Thordak (episode)"
        then epName, CxEE = "Thordak (episode)|Thordak", "6x10"
    elseif ep == "80" or ep == "080" or ep == "Episode 80" or ep == "Episode 080" or ep == "6x11" or ep == "Raishan" or ep == "Raishan (episode)"
        then epName, CxEE = "Raishan (episode)|Raishan", "6x11"
    elseif ep == "81" or ep == "081" or ep == "Episode 81" or ep == "Episode 081" or ep == "6x12" or ep == "What Lies Beneath the Surface"
        then epName, CxEE = "What Lies Beneath the Surface", "6x12"
    elseif ep == "82" or ep == "082" or ep == "Episode 82" or ep == "Episode 082" or ep == "6x13" or ep == "Deadly Echoes"
        then epName, CxEE = "Deadly Echoes", "6x13"
    elseif ep == "83" or ep == "083" or ep == "Episode 83" or ep == "Episode 083" or ep == "6x14" or ep == "The Deceiver's Stand" or ep == "The Deceiver's Stand"
        then epName, CxEE = "The Deceiver's Stand", "6x14"
    elseif ep == "84" or ep == "084" or ep == "Episode 84" or ep == "Episode 084" or ep == "6x15" or ep == "Loose Ends"
        then epName, CxEE = "Loose Ends", "6x15"
    elseif ep == "85" or ep == "085" or ep == "Episode 85" or ep == "Episode 085" or ep == "7x01" or ep == "A Bard's Lament" or ep == "A Bard's Lament"
        then epName, CxEE = "A Bard's Lament", "7x01"
    elseif ep == "86" or ep == "086" or ep == "Episode 86" or ep == "Episode 086" or ep == "7x02" or ep == "Daring Days"
        then epName, CxEE = "Daring Days", "7x02"
    elseif ep == "87" or ep == "087" or ep == "Episode 87" or ep == "Episode 087" or ep == "7x03" or ep == "Onward to Vesrah"
        then epName, CxEE = "Onward to Vesrah", "7x03"
    elseif ep == "88" or ep == "088" or ep == "Episode 88" or ep == "Episode 088" or ep == "7x04" or ep == "Tangled Depths"
        then epName, CxEE = "Tangled Depths", "7x04"
    elseif ep == "89" or ep == "089" or ep == "Episode 89" or ep == "Episode 089" or ep == "7x05" or ep == "Curious Tides"
        then epName, CxEE = "Curious Tides", "7x05"
    elseif ep == "90" or ep == "090" or ep == "Episode 90" or ep == "Episode 090" or ep == "7x06" or ep == "Voice of the Tempest"
        then epName, CxEE = "Voice of the Tempest", "7x06"
    elseif ep == "91" or ep == "091" or ep == "Episode 91" or ep == "Episode 091" or ep == "7x07" or ep == "Episode 91"
        then epName, CxEE = "Episode 91", "7x07"
    elseif ep == "92" or ep == "092" or ep == "Episode 92" or ep == "Episode 092" or ep == "7x08" or ep == "Episode 92"
        then epName, CxEE = "Episode 92", "7x08"
    elseif ep == "93" or ep == "093" or ep == "Episode 93" or ep == "Episode 093" or ep == "7x09" or ep == "Episode 93"
        then epName, CxEE = "Episode 93", "7x09"
    elseif ep == "94" or ep == "094" or ep == "Episode 94" or ep == "Episode 094" or ep == "7x10" or ep == "Episode 94"
        then epName, CxEE = "Episode 94", "7x10"
    elseif ep == "95" or ep == "095" or ep == "Episode 95" or ep == "Episode 095" or ep == "7x11" or ep == "Episode 95"
        then epName, CxEE = "Episode 95", "7x11"
    elseif ep == "96" or ep == "096" or ep == "Episode 96" or ep == "Episode 096" or ep == "7x12" or ep == "Episode 96"
        then epName, CxEE = "Episode 96", "7x12"
    elseif ep == "97" or ep == "097" or ep == "Episode 97" or ep == "Episode 097" or ep == "7x13" or ep == "Episode 97"
        then epName, CxEE = "Episode 97", "7x13"
    elseif ep == "98" or ep == "098" or ep == "Episode 98" or ep == "Episode 098" or ep == "7x14" or ep == "Episode 98"
        then epName, CxEE = "Episode 98", "7x14"
    elseif ep == "99" or ep == "099" or ep == "Episode 99" or ep == "Episode 099" or ep == "7x15" or ep == "Episode 99"
        then epName, CxEE = "Episode 99", "7x15"
    elseif ep == "100" or ep == "100" or ep == "Episode 100" or ep == "Episode 100" or ep == "7x16" or ep == "Episode 100"
        then epName, CxEE = "Episode 100", "7x16"
    else return ep .. "[[Category:Ep calls to undefined episodes]]", ""
    end
 
    return epName, CxEE
end    
 
-- function to determine that a variable has a value
function isnotempty(s)
    return s ~= nil and s~= ''
end
 
 
return p

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.