FANDOM


local p = {}
 
local games = {
    ["AR"] = "All Roads",
    ["FO1"] = "Fallout",
    ["FO2"] = "Fallout 2",
    ["FO3"] = "Fallout 3",
    ["FO3OA"] = "Operation: Anchorage",
    ["FO3TP"] = "The Pitt",
    ["FO3BS"] = "Broken Steel",
    ["FO3PL"] = "Point Lookout",
    ["FO3MZ"] = "Mothership Zeta",
    ["FNV"] = "Fallout: New Vegas",
    ["FNVDM"] = "Dead Money",
    ["FNVHH"] = "Honest Hearts",
    ["FNVOWB"] = "Old World Blues",
    ["FNVLR"] = "Lonesome Roads",
    ["FO4"] = "Fallout 4",
    ["FOS"] = "Fallout Shelter",
    ["FOT"] = "Fallout Tactics",
    ["FOBOS"] = "Fallout: Brotherhood of Steel"
}
 
function ftrim(str, char)
    local first = string.sub(str, 1, 1)
    if first == char then
        return string.sub(str, 2)
    else
        return str
    end
end
 
function p.links(frame)
    local result = ''
    for game in string.gmatch(frame.args[1], '([^,]+)') do
        result = result .. '[[' .. games[ftrim(game, ' ')] .. ']]<br/>'
    end
    return frame:preprocess(string.sub(result, 1, string.len(result) - 5))
end
 
function p.title(frame)
    local result = ''
    for game in string.gmatch(frame.args[1], '([^,]+)') do
        result = result .. '[[' .. games[ftrim(game, ' ')] .. ' characters|' .. games[ftrim(game, ' ')] .. ']] / '
    end
    return frame:preprocess(string.sub(result, 1, string.len(result) - 3))
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.