FANDOM


local p = {}
 
function p.TQ(frame)
    local r = frame:getParent()
    local name = r.args['name']
    local link = r.args['link'] or nil
    if not(r.args['link']) then
        link = name
    end
    return "[[" .. link .. "|" .. name .. "]]"
end
 
function p.img(frame)
    local s = frame:getParent()
    local name = s.args['name']
    local img = s.args['img']
    if not(s.args['img']) then
        img = name
    end
    return "[[File:Quest " .. img .. ".png|100px|center|link=]]"
end
 
function p.items(frame)
    local t = frame:getParent() 
    if not(t.args[1]) then
       t = frame
    end
    local ret = ''
 
    for i, v in ipairs(t.args) do
        v = v:gsub(" ", " ")
        local extra = ''
        extra0A = t.args['extraA' .. i] or nil
        extra0B = t.args['extraB' .. i] or nil
        extra0C = t.args['extraC' .. i] or nil
        extra0D = t.args['extraD' .. i] or nil
        if extra0A and extra0B and extra0C and extra0D then
            extra = '• ' .. extra0A .. ' • ' .. extra0B .. ' • ' .. extra0C .. ' • ' .. extra0D
        elseif extra0A and extra0B and extra0C then
            extra = '• ' .. extra0A .. ' • ' .. extra0B .. ' • ' .. extra0C
        elseif extra0A and extra0B then
            extra = '• ' .. extra0A .. ' • ' .. extra0B
        elseif extra0A then
            extra = '• ' .. extra0A
        end
        if extra == '' then
            ret = ret .. '•&nbsp;<b><i>[[' .. v .. ']]</i></b> '
        else
            ret = ret .. '•&nbsp;<b><i>[[' .. v .. ']]</i> <small>' .. extra .. '</small></b> '
        end
    end
    return ret
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.