FANDOM


local p = {}
 
function p.stars(frame)
    local list = mw.loadData( ' Module:Infobox monster/star list ' )
    local input = string.upper(frame.args[1])
 
    return list[input]
 
end
 
function p.star_cat(frame)
    local list = mw.loadData('Module:Infobox monster/star list 2')
    local input = frame.args[1]
 
    return '[[Category:' .. list[input] .. '-Star]]'
end
 
 
function p.nav(frame)
    local name = frame.args[1]
    local firelink = frame.args[2]
    local waterlink = frame.args[3]
    local windlink = frame.args[4]
    local lightlink = frame.args[5]
    local darklink = frame.args[6]
    local result
 
    result = 
    '{|style="background:#EDF3FB; width:100%; border-radius:10px;" data-portable="true"\n' .. 
    '|style="padding-left:5x;"|<b style="margin-left:5px;">Navigator:</b> ' 
 
    if firelink ~= 'No' then
        result = result .. '[[File:Fire.png|20px|link=Fire ' .. name .. '#]] '
    end
 
    if waterlink ~= 'No' then
        result = result .. '[[File:Water.png|20px|link=Water ' .. name .. '#]] '
    end
 
    if windlink ~= 'No' then
        result = result .. '[[File:Wind.png|20px|link=Wind ' .. name .. '#]] '
    end
 
    if lightlink ~= 'No' then
        result = result .. '[[File:Light.png|20px|link=Light ' .. name .. '#]] '
    end
 
    if darklink ~= 'No' then
        result = result .. '[[File:Dark.png|20px|link=Dark' .. name .. '#]]'
    end
 
    result = result .. '\n|}\n<div style="height:10px;"></div>'
 
    if firelink == 'No' 
            and waterlink == 'No' 
            and windlink == 'No' 
            and lightlink == 'No' 
            and darklink == 'No' then
        result = ''
    end
 
    return result
 
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.