FANDOM


local p = {}
 
function p.test(frame)
    local text = '<infobox>'
    text = text..'\n<title source="title">'
    text = text..'\n<default>default title</default>'
    text = text..'\n</title>'
    text = text..'\n<image source="image">'
    text = text..'\n<default>panel.png</default>'
    text = text..'\n</image>'
    text = text..'\n<data source="row1">'
    text = text..'\n<label>Label</label>'
    text = text..'\n<default>default row text</default>'
    text = text..'\n</data>'
    text = text..'\n</infobox>'
    return text
end
 
function p.GetValue(frame)
    local valName = frame.args[1]
    local pageName = frame.args[2]
 
    if(valName == nil) then
        return "ERROR: No Value Name"
    end
    if(pageName == nil) then
        return "ERROR: No Page Name"
    end
 
    if(valName == "Second Value") then
        return ""
    end
 
    return valName.." - "..pageName
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.