This is a legacy template
This is a legacy template that has been removed from the wiki, but cannot be deleted for technical reasons. If you see this template anywhere please delete Template:T from the article source or click on this template in the visual editor and delete.
|
This template depends on CSS
|
This template depends on JavaScript
|
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. The template has been depreciated, but due to technical problems preventing access for historic namespaces it cannot be removed cleanly. The documentation has been left in place in the event it comes back into active use.
Usage[]
{{Games|first abbrevation|second abbreviation|etc}}
Abbreviations should be listed in order of canonicity.
Parameters[]
The template takes up to 15 unnamed parameters, each one a single abbreviation.
Abbreviations[]
Abbreviation | text | short | link | icon |
---|---|---|---|---|
2D20 | Fallout 2d20 | Fallout 2d20 | Fallout 2d20 | |
AR | All Roads | All Roads | All Roads | |
D20 | Fallout Pen and Paper d20 | Fallout d20 | Fallout Pen and Paper d20 | |
FB | Fallout Bible | Fallout Bible | Fallout Bible | |
FBG | Fallout: The Board Game | Fallout: The Board Game | Fallout: The Board Game | |
FBGNC | Fallout: New California | Fallout: New California | Fallout: New California | |
FILM | Fallout (film) | Fallout (film) | Fallout (film) | |
FNV | Fallout: New Vegas | Fallout: New Vegas | Fallout: New Vegas | |
FNVCS | Courier's Stash | Courier's Stash | Courier's Stash | |
FNVDM | Dead Money | Dead Money | Dead Money | |
FNVHH | Honest Hearts | Honest Hearts | Honest Hearts | |
FNVGRA | Gun Runners' Arsenal | Gun Runners' Arsenal | Gun Runners' Arsenal | |
FNVLR | Lonesome Road | Lonesome Road | Lonesome Road (add-on) | |
FNVOWB | Old World Blues | Old World Blues | Old World Blues (add-on) | |
FO4 | Fallout 4 | Fallout 4 | Fallout 4 | |
FO4AUT | Automatron | Automatron | Automatron (add-on) | |
FO4WW | Wasteland Workshop | Wasteland Workshop | Wasteland Workshop | |
FO4FH | Far Harbor | Far Harbor | Far Harbor (add-on) | |
FO4CW | Contraptions Workshop | Contraptions Workshop | Contraptions Workshop | |
FO4VW | Vault-Tec Workshop | Vault-Tec Workshop | Vault-Tec Workshop | |
FO4NW | Nuka-World | Nuka-World | Nuka-World (add-on) | |
FO4VR | Fallout 4 VR | Fallout 4 VR | Fallout 4 VR | |
FO4CC | Creation Club | Creation Club | Creation Club | |
FO76 | Fallout 76 | Fallout 76 | Fallout 76 | |
FO76WA | Wild Appalachia | Wild Appalachia | Wild Appalachia | |
FO76NW | Nuclear Winter | Nuclear Winter | Nuclear Winter | |
FO76WL | Wastelanders | Wastelanders | Wastelanders | |
FO76LR | The Legendary Run | The Legendary Run | The Legendary Run (update) | |
FO76OW | One Wasteland For All | One Wasteland | One Wasteland For All | |
FO76FS | [[]] | [[File:|x40px]] | ||
FOS | Fallout Shelter | Fallout Shelter | Fallout Shelter | |
FPB | Fallout Pip-Boy | Fallout Pip-Boy | Fallout Pip-Boy | |
FO1 | Fallout | Fallout | Fallout | |
FO2 | Fallout 2 | Fallout 2 | Fallout 2 | |
FO3 | Fallout 3 | Fallout 3 | Fallout 3 | |
FO3BS | Broken Steel | Broken Steel | Broken Steel | |
FO3MZ | Mothership Zeta | Mothership Zeta | Mothership Zeta (add-on) | |
FO3OA | Operation: Anchorage | Operation: Anchorage | Operation: Anchorage (add-on) | |
FO3PL | Point Lookout | Point Lookout | Point Lookout (add-on) | |
FO3TP | The Pitt | The Pitt | The Pitt (add-on) | |
FOBOS | Fallout: Brotherhood of Steel | Fallout: BoS | Fallout: Brotherhood of Steel | |
FOBOS2 | Fallout: Brotherhood of Steel 2 | Fallout: BoS 2 | Fallout: Brotherhood of Steel 2 | |
PV13 | Project V13 | Project V13 | Project V13 | |
FOT | Fallout Tactics | Fallout Tactics | Fallout Tactics: Brotherhood of Steel | |
FOT2 | Fallout Tactics 2 | Fallout Tactics 2 | Fallout Tactics 2 | |
FOTV | Fallout television series | Fallout television series | Fallout television series | |
FOW | Fallout: Warfare | Fallout: Warfare | Fallout: Warfare | |
FOX | Fallout Extreme | Fallout Extreme | Fallout Extreme | |
FWW | [[]] | [[File:|x40px]] | ||
JES | J.E. Sawyer's Fallout RPG | JES Fallout RPG | J.E. Sawyer's Fallout RPG | |
LH | [[]] | [[File:|x40px]] | ||
PA | One Man, and a Crate of Puppets | Penny Arcade | One Man, and a Crate of Puppets | |
TAR | The Armageddon Rag | Armageddon Rag | The Armageddon Rag | |
TORN | [[]] | [[File:|x40px]] | ||
VB | Van Buren | Van Buren | Van Buren | |
Wiki | Nukapedia | Nukapedia | Fallout Wiki:About | |
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 = {
["2D20"] = "Fallout 2d20",
["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"] = "狂野阿帕拉契",
["FO76NW"] = "核災冬季",
["FO76WL"] = "廢土人",
["FO76LR"] = "傳奇比賽",
["FO76OW"] = "廢土利眾",
["FO76FS"] = "Steel Dawn",
["FO76SD"] = "鋼鐵黎明",
["FO76LL"] = "子彈上膛",
["FO76SR"] = "鋼鐵統治",
["FO76FW"] = "FALLOUT世界",
["FO76TS"] = "Tales From the Stars",
["FO76IB"] = "外太空入侵",
["FO76NM"] = "天蛾之夜",
["FO76TM"] = "金屬考驗",
["FO76TP"] = "遠征:匹堡",
["FO76NT"] = "核子世界大巡演",
["FO76OB"] = "藍月高高掛",
["FO76AC"] = "遠征:大西洋城",
["FO76BP"] = "棧道樂園",
["FO76AP"] = "美國遊樂場",
["FOBOS"] = "Fallout: Brotherhood of Steel",
["FOBOS2"] = "Fallout: Brotherhood of Steel 2",
["FORPG"] = "Fallout: The Roleplaying Game",
["FOS"] = "Fallout Shelter",
["FOSO"] = "Fallout Shelter Online",
["FOT"] = "Fallout Tactics",
["FOT2"] = "Fallout Tactics 2",
["FOTV"] = "Fallout television 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>