FANDOM


local p
 
local data = mw.loadData("Module:TableLine/RWBCountry/data")
 
function p.main(frame)
    local name = tostring(frame.args[1])
    return name
end
 
function p.data(frame)
    local typeBldg = data[frame.args['type']] or nil
    if typeBldg then
        return typeBldg
    else
        return "''Unspecified Type''"
    end
end
 
function p.img(frame)
    local img  = frame.args['img']
    local name = tostring(frame.args[1])
    if img == '' then
        img = name
    else
        img = img
    end
    return '[[File:' .. img .. '.png|180px]]'
end
 
function p.realimg(frame)
    local realimg  = frame.args['realimg']
    local name = tostring(frame.args[1])
    if realimg == '' then
        realimg = name
    else
        realimg = realimg
    end
    return '[[File:RealWorld' .. realimg .. '.jpg|180px]]'
end

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.