FANDOM


local p = {};
 
-- Update these on Sunday
local upcoming = "14";
local latest = "13";
local secondLatest = "12"
 
function p.rows(frame)
    local ep = frame.args['episode']
    if(ep == "1" or ep == "2" or ep == latest or ep == secondLatest) then
        return "3"
    else
        return "2"
    end
end
 
function p.firstLabel(frame)
    local ep = frame.args['episode']
 
    if(ep == "1") then
        return ""
    elseif(ep == "2") then
        return ""
    else
        return "⇐ First"
    end
 
end
 
function p.firstValue(frame)
    local ep = frame.args['episode']
 
    if(ep == "1") then
        return ""
    elseif(ep == "2") then
        return ""
    else
        return "[[Episode 1]]"
    end
 
end
 
function p.latestLabel(frame)
    local ep = frame.args['episode']
 
    if(ep == latest) then
        return ""
    elseif(ep == secondLatest) then
        return""
    else
        return "Latest ⇒"
    end
 
end
 
function p.latestValue(frame)
    local ep = frame:getParent().args['episode']
 
    if(ep == latest) then
        return ""
    elseif(ep == secondLatest) then
        return ""
    else
        return p.getLatestPage()
    end
 
end
 
function p.nextLabel(frame)
    local ep = frame.args['episode']
 
    if(ep == latest) then
        return ""
    else
        return "Next →"
    end
 
end
 
function p.previousLabel(frame)
    local ep = frame.args['episode']
 
    if(ep == "1") then
        return ""
    else
        return "← Previous"
    end
 
end
 
function p.getNext()
    return upcoming;
end;
 
function p.getLatest()
    return latest;
end;
 
function p.getSecondLatest()
    return secondLatest;
end;
 
function p.getLatestEp()
    return "Episode " .. latest;
end;
 
function p.getLatestPage()
    return "[[Episode " .. latest .. "]]";
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.