Fandom

Fairy Tail Wiki

Module:Infobox/FTW

3,848pages on
this wiki
Add New Page
Talk0

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.

local Infobox = {}
local language = mw.language.new('en')
 
-- <data><label>Previous</label><format></format></data>
function previous()
    -- '''Previous'''<br />← '''{{#ifeq: {{{chapter|}}} | 1 | N/A | {{#ifexist:Chapter {{#expr:{{{chapter|}}}-1}}|<includeonly>[[Chapter {{#expr:{{{chapter|}}}-1}}{{!}}</includeonly><font color="#000000">Chapter {{#expr:{{{chapter|}}}-1}}</font><includeonly>]]</includeonly>|N/A}} }}'''
    local chapter = frame.args['chapter'] or nil
    if chapter == 1 then
        return nil
    elseif tonumber(chapter) then
        local prevchapter = chapter - 1
        if mw.title.new(
            string.format('Chapter %s',prevchapter)
                ).exists then
                return '[['..string.format('Chapter %s',prevchapter)..']]'
            end
    else
        return 'N/A'
    end
end
 
return Infobox

Also on Fandom

Random Wiki