Fallout Wiki
Register
Advertisement
Fallout Wiki

This template is used for marking which Fallout games the content of an article originates from or relates to. It displays small icons in the top right corner of each page it is used in.

Usage[]

{{Games|first abbrevation|second abbreviation|etc}}

Abbreviations should be listed in order of canonicity.

Parameters[]

Yes
<unnamed 1> up to <unnamed 15>
Game abbrevation; see #Abbreviations below for valid inputs. Games should be listed in order of canonicity.

Abbreviations[]

Abbreviation text short link icon
AR All Roads All Roads All Roads Gametitle-AR
D20 Fallout Pen and Paper d20 Fallout d20 Fallout Pen and Paper d20 Gametitle-D20
FB Fallout Bible Fallout Bible Fallout Bible Gametitle-FB
FBG Fallout: The Board Game Fallout: The Board Game Fallout: The Board Game Gametitle-FBG
FSBG Fallout Shelter: The Board Game Fallout Shelter: The Board Game Fallout Shelter: The Board Game Gametitle-FBG
FBGNC Fallout: New California Fallout: New California Fallout: New California Gametitle-FBGNC
FILM Fallout (film) Fallout (film) Fallout (film) Film
FNV Fallout: New Vegas Fallout: New Vegas Fallout: New Vegas Gametitle-FNV
FNVCS Courier's Stash Courier's Stash Courier's Stash Gametitle-FNV CS
FNVDM Dead Money Dead Money Dead Money Gametitle-FNV DM
FNVHH Honest Hearts Honest Hearts Honest Hearts Gametitle-FNV HH
FNVGRA Gun Runners' Arsenal Gun Runners' Arsenal Gun Runners' Arsenal Gametitle-FNV GRA
FNVLR Lonesome Road Lonesome Road Lonesome Road (add-on) Gametitle-FNV LR
FNVOWB Old World Blues Old World Blues Old World Blues (add-on) Gametitle-FNV OWB
FO4 Fallout 4 Fallout 4 Fallout 4 Gametitle-FO4
FO4AUT Automatron Automatron Automatron (add-on) Gametitle-FO4 AUT
FO4WW Wasteland Workshop Wasteland Workshop Wasteland Workshop Gametitle-FO4 WW
FO4FH Far Harbor Far Harbor Far Harbor (add-on) Gametitle-FO4 FH
FO4CW Contraptions Workshop Contraptions Workshop Contraptions Workshop Gametitle-FO4 CW
FO4VW Vault-Tec Workshop Vault-Tec Workshop Vault-Tec Workshop Gametitle-FO4 VW
FO4NW Nuka-World Nuka-World Nuka-World (add-on) Gametitle-FO4 NW
FO4VR Fallout 4 VR Fallout 4 VR Fallout 4 VR Gametitle-FO4VR
FO4CC Creation Club Creation Club Creation Club Gametitle-FO4 CC
FO76 Fallout 76 Fallout 76 Fallout 76 Gametitle-FO76
FO76WA Wild Appalachia Wild Appalachia Wild Appalachia Gametitle-FO76 WA
FO76NW Nuclear Winter Nuclear Winter Nuclear Winter Gametitle-FO76 NW
FO76WL Wastelanders Wastelanders Wastelanders Gametitle-FO76 WL
FO76LR The Legendary Run The Legendary Run The Legendary Run (update) Gametitle-FO76 LR
FO76OW One Wasteland For All One Wasteland One Wasteland For All Gametitle-FO76 One Wasteland
FO76SD Steel Dawn Steel Dawn Steel Dawn Gametitle-FO76 Steel Dawn
FO76LL Locked & Loaded Locked & Loaded Locked & Loaded Gametitle-FO76 Locked n Loaded
FO76SR Steel Reign Steel Reign Steel Reign Gametitle-FO76 Steel Reign
FO76FW Fallout Worlds Fallout Worlds Fallout Worlds (update) Gametitle-FO76 FW
FO76NM Night of the Moth Night of the Moth Night of the Moth Gametitle-FO76 NM
FO76IB Invaders from Beyond Invaders from Beyond Invaders from Beyond (update) Gametitle-FO76 IB
FO76TM Test Your Metal Test Your Metal Test Your Metal (update) Gametitle-FO76 TM
FO76TP Expeditions: The Pitt Expeditions: The Pitt Expeditions: The Pitt Gametitle-FO76 TP
FO76NT Nuka-World on Tour Nuka-World on Tour Nuka-World on Tour (update) Gametitle-FO76 NT
FO76MI Mutation Invasion Mutation Invasion Mutation Invasion Gametitle-FO76MI
FO76OB Once in a Blue Moon Once in a Blue Moon Once in a Blue Moon Gametitle-FO76 OB
FO76AC Expeditions: Atlantic City Expeditions: Atlantic City Expeditions: Atlantic City Gametitle-FO76 AC
FOS Fallout Shelter Fallout Shelter Fallout Shelter Gametitle-FOS
FOSO Fallout Shelter Online Fallout Shelter Online Fallout Shelter Online Gametitle-FOSO
FPB Fallout Pip-Boy Fallout Pip-Boy Fallout Pip-Boy Gametitle-FPB
FO1 Fallout Fallout Fallout Gametitle-FO1
FO2 Fallout 2 Fallout 2 Fallout 2 Gametitle-FO2
FO3 Fallout 3 Fallout 3 Fallout 3 Gametitle-FO3
FO3BS Broken Steel Broken Steel Broken Steel Gametitle-FO3 BS
FO3MZ Mothership Zeta Mothership Zeta Mothership Zeta (add-on) Gametitle-FO3 MZ
FO3OA Operation: Anchorage Operation: Anchorage Operation: Anchorage (add-on) Gametitle-FO3 OA
FO3PL Point Lookout Point Lookout Point Lookout (add-on) Gametitle-FO3 PL
FO3TP The Pitt The Pitt The Pitt (add-on) Gametitle-FO3 TP
FOBOS Fallout: Brotherhood of Steel Fallout: BoS Fallout: Brotherhood of Steel Gametitle-FOBOS
FOBOS2 Fallout: Brotherhood of Steel 2 Fallout: BoS 2 Fallout: Brotherhood of Steel 2 Gametitle-FOBOS2
PV13 Project V13 Project V13 Project V13 PV13
FOT Fallout Tactics Fallout Tactics Fallout Tactics: Brotherhood of Steel Gametitle-FOT
FOT2 Fallout Tactics 2 Fallout Tactics 2 Fallout Tactics 2 Gametitle-FOT2
FOTV Fallout TV series Fallout (TV series) Fallout (TV series) Title icon Fallout TV
FOW Fallout: Warfare Fallout: Warfare Fallout: Warfare Gametitle-FOW
FOX Fallout Extreme Fallout Extreme Fallout Extreme Gametitle-FOX
FOWW Fallout: Wasteland Warfare Fallout: Wasteland Warfare Fallout: Wasteland Warfare Gametitle-FWW
FOWWRPG Fallout: Wasteland Warfare Roleplaying Game Fallout: Wasteland Warfare Roleplaying Game Fallout: Wasteland Warfare Roleplaying Game Gametitle-FWWRPG
FORPG Fallout: The Roleplaying Game Fallout: The Roleplaying Game Fallout: The Roleplaying Game Gametitle-2D20
FORPGWOA Winter of Atom Winter of Atom Winter of Atom Gametitle-2D20
JES J.E. Sawyer's Fallout RPG JES Fallout RPG J.E. Sawyer's Fallout RPG Gametitle-JES
PA One Man, and a Crate of Puppets Penny Arcade One Man, and a Crate of Puppets Penny Arcade
TAR The Armageddon Rag Armageddon Rag The Armageddon Rag Gametitle-TAR
VB Van Buren Van Buren Van Buren Gametitle-VB
Wiki Nukapedia Nukapedia Fallout Wiki:About Gametitle-Wiki
none mentioned-only mentioned-only


Example[]

{{Games|FO1|FO2|FO3}}

results in the icons for Fallout, Fallout 2 and Fallout 3 being displayed in the upper right corner of a page.

Technical[]

  • Auxiliary template: {{Abb}} (defines abbreviation/icon combinations)
  • Uses JavaScript located in MediaWiki:Common.js.

--<nowiki>

local p = {}

local games = {
    ["AR"] = "All Roads",
    ["D20"] = "Fallout Pen and Paper d20",
    ["FB"] = "Fallout Bible",
    ["FBG"] = "Fallout: The Board Game",
    ["FBGNC"] = "Fallout: New California",
    ["FILM"] = "Fallout (film)",
    ["FNV"] = "Fallout: New Vegas",
    ["FNVGRA"] = "Gun Runners' Arsenal",
    ["FNVDM"] = "Dead Money",
    ["FNVHH"] = "Honest Hearts",
    ["FNVOWB"] = "Old World Blues (add-on)",
    ["FNVLR"] = "Lonesome Road (add-on)",
    ["FO1"] = "Fallout",
    ["FO2"] = "Fallout 2",
    ["FO3"] = "Fallout 3",
    ["FO3OA"] = "Operation: Anchorage (add-on)",
    ["FO3TP"] = "The Pitt (add-on)",
    ["FO3BS"] = "Broken Steel",
    ["FO3PL"] = "Point Lookout (add-on)",
    ["FO3MZ"] = "Mothership Zeta (add-on)",
    ["FO4"] = "Fallout 4",
    ["FO4AUT"] = "Automatron (add-on)",
    ["FO4WW"] = "Wasteland Workshop",
    ["FO4FH"] = "Far Harbor (add-on)",
    ["FO4CW"] = "Contraptions Workshop",
    ["FO4VW"] = "Vault-Tec Workshop",
    ["FO4NW"] = "Nuka-World (add-on)",
    ["FO4VR"] = "Fallout 4 VR",
    ["FO4CC"] = "Creation Club",
    ["FO76"] = "Fallout 76",
    ["FO76WA"] = "Wild Appalachia",
    ["FO76NW"] = "Nuclear Winter",
    ["FO76WL"] = "Wastelanders",
    ["FO76LR"] = "The Legendary Run (update)",
    ["FO76OW"] = "One Wasteland For All",
    ["FO76FS"] = "Steel Dawn",
    ["FO76SD"] = "Steel Dawn",
    ["FO76LL"] = "Locked & Loaded",
    ["FO76SR"] = "Steel Reign",
    ["FO76FW"] = "Fallout Worlds (update)",
    ["FO76TS"] = "Tales From the Stars",
    ["FO76IB"] = "Invaders from Beyond (update)",
    ["FO76NM"] = "Night of the Moth",
    ["FO76TM"] = "Test Your Metal (update)",
    ["FO76TP"] = "Expeditions: The Pitt",
    ["FO76NT"] = "Nuka-World on Tour (update)",
    ["FO76NWOT"] = "Nuka-World on Tour (update)",
    ["FO76MI"] = "Mutation Invasion",
    ["FO76OB"] = "Once in a Blue Moon",
    ["FO76AC"] = "Expeditions: Atlantic City",
    ["FO76BP"] = "AC Boardwalk Paradise",
    ["FO76AP"] = "AC America's Playground",
    ["FOBOS"] = "Fallout: Brotherhood of Steel",
    ["FOBOS2"] = "Fallout: Brotherhood of Steel 2",
    ["FORPG"] = "Fallout: The Roleplaying Game",
    ["2D20"] = "Fallout: The Roleplaying Game",
    ["FORPGWOA"] = "Winter of Atom",
    ["FOS"] = "Fallout Shelter",
    ["FOSO"] = "Fallout Shelter Online",
    ["FOT"] = "Fallout Tactics",
    ["FOT2"] = "Fallout Tactics 2",
    ["FOTV"] = "Fallout TV series",
    ["FTV"] = "Fallout TV series",
    ["FOW"] = "Fallout: Warfare",
    ["FOX"] = "Fallout Extreme",
    ["FWW"] = "Fallout: Wasteland Warfare",
    ["FOWW"] = "Fallout: Wasteland Warfare",
    ["JES"] = "J.E. Sawyer's Fallout RPG",
    ["PA"] = "One Man, and a Crate of Puppets",
    ["PV13"] = "Project V13",
    ["TAR"] = "Project V13",
    ["VB"] = "Van Buren",
}

-- look up short title without disambig
function stitle(game)
    local result = games[game]
    if game ~= "FILM" then
        result = result:gsub('%s%(.*', '')
    end
    return result
end

-- ====================
-- This function, links, is for ordinary links within the body of
-- an infobox.  So if all you want returned is [[Fallout 4]], then
-- use the syntax:
--        {{#invoke:Games|links|{{{games|}}}}}
-- specifying a second argument returns the text in italics:
--        {{#invoke:Games|links|{{{games|}}}|1}}
-- ====================

function p.links(frame)
    local result = ''
 
    local game_list = mw.text.split(frame.args[1], "%s*,%s*") 
    for n, game in ipairs(game_list) do
        if game:lower() == "none" then
            result = ''
        else
            result = result .. '[[' .. games[game] .. '|' .. stitle(game) .. ']]'
            if n ~= #game_list then
                result = result .. '<br/>'
            end
        end
    end
 
    if (frame.args[2] and result ~= '') then
        return "''" .. result .. "''"
    else
      return result
    end
end

-- ====================
--  This function, title, generically generates links for the supertitle.
--  Either just to the game page itself or to a more specific page.
--
--  {{#invoke:Games|title|FO4}} gives just [[Fallout 4|Fallout 4]]
--  {{#invoke:Games|title|FO4|weapons}} results in [[Fallout 4 weapons|Fallout 4]]
--  {{#invoke:Games|title|FO4|weapons|weapon}} results in [[Fallout 4 weapons|Fallout 4 weapon]]
-- ====================

function p.title(frame)
    local result = ''
 
    local game_list = mw.text.split(frame.args[1], "%s*,%s*") 
    for n, game in ipairs(game_list) do
        if game:lower() == "none" then
            result = 'Mentioned-only'
            if frame.args[3] then
                result = result .. ' ' .. frame.args[3]
            end
        else
            local link
            if frame.args[2] then
                link = stitle(game) .. ' ' .. frame.args[2]
            else
                link = games[game]
            end
            local text = stitle(game)
            if frame.args[3] and n == #game_list then
                text = text .. ' ' .. frame.args[3]
            end 
            result = result .. '[[' .. link .. '|' .. text .. ']]'
            if n ~= #game_list then
                result = result .. ' / '
            end
        end
    end
 
    return result
end


return p

--</nowiki>
Advertisement