FANDOM


local function get(data)
    local p = {}
 
    p.getName = function(value)
        return data.names[value] or value
    end
 
    p.getLinkName = function(value)
        return data.link_names[value] or data.names[value] or value
    end
 
    p.getLink = function(value)
        local linkName = p.getLinkName(value)
        local name = p.getName(value)
        return name == linkName 
            and string.format("[[%s]]", name)
            or string.format("[[%s|%s]]", linkName, name)
    end
 
    p.Name = function(frame)
        return p.getName(frame.args[1])
    end
 
    p.LinkName = function(frame)
        return p.getLinkName(frame.args[1])
    end
 
    p.Link = function(frame)
        return p.getLink(frame.args[1])
    end
 
    return p
end
 
return {
    Weapon = get(require("Module:Weapon")),
    Armor = get(require("Module:Armor")),
    Pet = get(require("Module:Pet")),
    Skill = get(require("Module:Skill")),
 
    WName = get(require("Module:Weapon")).Name,
    WLinkName = get(require("Module:Weapon")).LinkName,
    WLink = get(require("Module:Weapon")).Link,
 
    AName = get(require("Module:Armor")).Name,
    ALinkName = get(require("Module:Armor")).LinkName,
    ALink = get(require("Module:Armor")).Link,
 
    PName = get(require("Module:Pet")).Name,
    PLinkName = get(require("Module:Pet")).LinkName,
    PLink = get(require("Module:Pet")).Link,
 
    SName = get(require("Module:Skill")).Name,
    SLinkName = get(require("Module:Skill")).LinkName,
    SLink = get(require("Module:Skill")).Link,
}

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.