Удивительный мир Гамбола вики
Advertisement
Удивительный мир Гамбола вики

Для документации этого модуля может быть создана страница Модуль:Episode/doc

local episodes = {
    "Early reel",
    "The DVD",
    "The Responsible",
    "The Third",
    "The Debt",
    "The End",
    "The Dress",
    "The Quest",
    "The Spoon",
    "The Pressure",
    "The Painting",
    "The Laziest",
    "The Ghost",
    "The Mystery",
    "The Prank",
    "The Gi",
    "The Kiss",
    "The Party",
    "The Refund",
    "The Robot",
    "The Picnic",
    "The Goons",
    "The Secret",
    "The Sock",
    "The Genius",
    "The Poltergeist",
    "The Mustache",
    "The Date",
    "The Club",
    "The Wand",
    "The Ape",
    "The Car",
    "The Curse",
    "The Microwave",
    "The Meddler",
    "The Helmet",
    "The Fight",
    "The Remote",
    "The Colossus",
    "The Knights",
    "The Fridge",
    "The Flower",
    "The Banana",
    "The Phone",
    "The Job",
    "Halloween",
    "The Treasure",
    "The Apology",
    "The Words",
    "The Skull",
    "The Bet",
    "Christmas",
    "The Watch",
    "The Bumpkin",
    "The Flakers",
    "The Authority",
    "The Virus",
    "The Pony",
    "The Hero",
    "The Dream",
    "The Sidekick",
    "The Photo",
    "The Tag",
    "The Storm",
    "The Lesson",
    "The Game",
    "The Limit",
    "The Voice",
    "The Promise",
    "The Castle",
    "The Boombox",
    "The Tape",
    "The Sweaters",
    "The Internet",
    "The Plan",
    "The World",
    "The Finale",
    "The Kids",
    "The Fan",
    "The Coach",
    "The Joy",
    "The Puppy",
    "The Recipe",
    "The Name",
    "The Extras",
    "The Gripes",
    "The Vacation",
    "The Fraud",
    "The Void",
    "The Boss",
    "The Move",
    "The Law",
    "The Allergy",
    "The Mothers",
    "The Password",
    "The Procrastinators",
    "The Shell",
    "The Burden",
    "The Bros",
    "The Mirror",
    "The Man",
    "The Pizza",
    "The Lie",
    "The Butterfly",
    "The Question",
    "The Saint",
    "The Friend",
    "The Oracle",
    "The Safety",
    "The Society",
    "The Spoiler",
    "The Countdown",
    "The Nobody",
    "The Downer",
    "The Egg",
    "The Triangle",
    "The Money",
    "The Return",
    "The Nemesis",
    "The Crew",
    "The Others",
    "The Signature",
    "The Check",
    "The Pest",
    "The Sale",
    "The Gift",
    "The Parking",
    "The Routine",
    "The Upgrade",
    "The Comic",
    "The Romantic",
    "The Uploads",
    "The Apprentice",
    "The Hug",
    "The Wicked",
    "The Traitor",
    "The Origins",
    "The Origins: Part Two",
    "The Girlfriend",
    "The Advice",
    "The Signal",
    "The Parasite",
    "The Love",
    "The Awkwardness",
    "The Nest",
    "The Points",
    "The Bus",
    "The Night",
    "The Misunderstandings",
    "The Roots",
    "The Blame",
    "The Slap",
    "The Detective",
    "The Fury",
    "The Compilation",
    "The Scam",
    "The Disaster",
    "The Rerun",
    "The Stories",
    "The Guy",
    "The Boredom",
    "The Vision",
    "The Choices",
    "The Code",
    "The Test",
    "The Slide",
    "The Loophole",
    "The Copycats",
    "The Potato",
    "The Fuss",
    "The Outside",
    "The Vase",
    "The Matchmaker",
    "The Box",
    "The Console",
    "The Ollie",
    "The Catfish",
    "The Cycle",
    "The Stars",
    "The Grades",
    "The Diet",
    "The Ex",
    "The Sorcerer",
    "The Menu",
    "The Uncle",
    "The Weirdo",
    "The Heist",
    "The News",
    "The Petals",
    "The Nuisance",
    "The Best",
    "The Worst",
    "The List",
    "The Deal",
    "The Line",
    "The Singing",
    "The Puppets",
}

local episodes_num = {}
for i, v in ipairs(episodes) do episodes_num[v] = i end

local p = {}

local function episode(ep)
    return episodes_num[ep] or -1
end
 
function p.get_next(frame)
    n = episode(frame.args[1])
    next_n = n+1
    return episodes[next_n] and '[['..episodes[next_n]..']]' or 'Нет'
end
 
function p.get_prev(frame)
    n = episode(frame.args[1])
    prev_n = n-1
    return episodes[prev_n] and '[['..episodes[prev_n]..']]' or 'Нет'
end

return p
Advertisement