FANDOM


local p = {}
 
local ChapterLink = require("Module:ChapterLink")
local LATEST_CHAPTER = ChapterLink.getLatest()
 
function p.getChapterArticle(article)
    if article == "None" then
        return "List of Chapters"
    else
        return article
    end
end
 
function p.getFirstAppearanceArticle(frame)
    return p.getChapterArticle(frame:getParent().args['first_appearance'])
end
 
function p.getFirstNamedArticle(frame)
    return p.getChapterArticle(frame:getParent().args['first_named'])
end
 
function p.getLatest()
    return "Chapter " .. LATEST_CHAPTER
end
 
function p.getNext()
    return LATEST_CHAPTER + 1
end
 
return p
 
--[[Category:Lua modules]]

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.