A template that retrieves the name of a game or source text. Used to auto format references. Please when updating Module:Abb also update Template:Abb.
Usage
{{abb|abbreviation}}
Parameters
<unnamed 1> or abb
See #Abbreviations below for list of valid inputs.
(default: "text")
modeDetermines the template output.
Available options:
- icon: Returns an icon (without "File:" prefix).
- link: Returns the name of the overview article if applicable.
- short: Returns a shortened version of the name.
- text: Returns the source's name.
Advanced options:
- category: Will add "
[[Category:
" and the short name as a category. Used in Template:Mbox.
Example:
-->{{#invoke:Abb|category<!-- -->|games ={{{games|}}}<!-- -->|category ={{{category}}}<!-- -->|mode =append<!-- -->|prepend =(<!-- -->|sort key ={{{sort key|}}}<!-- -->|append =)<!-- -->}}<!---->
Abbreviations
Abbreviation | text | short | link | icon |
---|---|---|---|---|
2D20 | Fallout 2d20 | Fallout 2d20 | Fallout 2d20 | |
FORPG | Fallout: The Roleplaying Game | Fallout: The Roleplaying Game | Fallout: The Roleplaying Game | |
D20 | Fallout Pen and Paper d20 | Fallout d20 | Fallout Pen and Paper d20 | |
FBG | Fallout: The Board Game | Fallout: The Board Game | Fallout: The Board Game | |
FBGNC | Fallout: New California | Fallout: New California | Fallout: New California | |
FOFNW | Fallout Factions: Nuka World | Fallout Factions: Nuka World | Fallout Factions: Nuka World | |
FORPGSGB | Settler's Guide Book | Settler's Guide Book | Settler's Guide Book | |
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) | |
FO4CC | Creation Club | Creation Club | Creation Club | |
FO4VR | Fallout 4 VR | Fallout 4 VR | Fallout 4 VR | |
FO76 | Fallout 76 | Fallout 76 | Fallout 76 | |
FO76WA | Wild Appalachia | Wild Appalachia | Wild Appalachia | |
FO76NW | Nuclear Winter | Nuclear Winter | Nuclear Winter (update) | |
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 | |
FO76SD | Steel Dawn | Steel Dawn | Steel Dawn | |
FO76LL | Locked & Loaded | Locked & Loaded | Locked & Loaded | |
FO76SR | Steel Reign | Steel Reign | Steel Reign | |
FO76FW | Fallout Worlds | Fallout Worlds | Fallout Worlds (update) | |
FO76NM | Night of the Moth | Night of the Moth | Night of the Moth | |
FO76IB | Invaders from Beyond | Invaders from Beyond | Invaders from Beyond (update) | |
FO76TM | Test Your Metal | Test Your Metal | Test Your Metal (update) | |
FO76TP | Expeditions: The Pitt | Expeditions: The Pitt | Expeditions: The Pitt | |
FO76NWT | Nuka-World on Tour | Nuka-World on Tour | Nuka-World on Tour | |
FO76MI | Mutation Invasion | Mutation Invasion | Mutation Invasion | |
FO76OBM | Once in a Blue Moon | Once in a Blue Moon | Once in a Blue Moon | |
FOS | Fallout Shelter | Fallout Shelter | Fallout Shelter | |
FOSO | Fallout Shelter Online | Fallout Shelter Online | Fallout Shelter Online | |
FPB | Fallout Pip-Boy | Fallout Pip-Boy | Fallout Pip-Boy | |
FO1 | Fallout | Fallout | Fallout | |
FO2 | Fallout 2 | Fallout 2 | Fallout 2 | |
FOT | Fallout Tactics | Fallout Tactics | Fallout Tactics | |
FOT2 | Fallout Tactics 2 | Fallout Tactics 2 | Fallout Tactics 2 | |
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 | |
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 | |
FO3PL | Point Lookout | Point Lookout | Point Lookout (add-on) | |
FO3TP | The Pitt | The Pitt | The Pitt (add-on) | |
FOTV | Fallout Television Series | Fallout TV Series | Fallout Television Series | |
FOW | Fallout: Warfare | Fallout: Warfare | Fallout: Warfare | |
FOX | Fallout Extreme | Fallout Extreme | Fallout Extreme | |
FOWW | Fallout: Wasteland Warfare | Fallout: Wasteland Warfare | Fallout: Wasteland Warfare | |
FOWWRPG | Fallout: Wasteland Warfare Roleplaying Game | Fallout: Wasteland Warfare Roleplaying Game | Fallout: Wasteland Warfare Roleplaying Game | |
VB | Van Buren | Van Buren | Van Buren | |
WIKI | Fallout Wiki | Fallout Wiki | Fallout Wiki | |
IFW | Fallout Wiki | Fallout Wiki | Fallout Wiki | |
none |
Publications
Abbreviation | text | short | link | icon |
---|---|---|---|---|
AR | All Roads | All Roads | All Roads | |
FNVCE | Fallout: New Vegas Official Game Guide | Fallout: New Vegas Official Game Guide | Fallout: New Vegas Official Game Guide | |
FNVCE1 | Behind the Bright Lights & Big City | Behind the Bright Lights & Big City | Fallout: New Vegas Official Game Guide/Behind the Bright Lights & Big City | |
FNVCE2 | Faction Profiles | Faction Profiles | Fallout: New Vegas Official Game Guide/Faction Profiles | |
FNVCE3 | Tour of the Mojave Wasteland | Tour of the Mojave Wasteland | Fallout: New Vegas Official Game Guide/Tour of the Mojave Wasteland | |
FNVCE4 | Wild Wasteland Oddities | Wild Wasteland Oddities | Fallout: New Vegas Official Game Guide/Wild Wasteland Oddities |
Developer Statements
Abbreviation | text | short | link | icon |
---|---|---|---|---|
FB | Fallout Bible | Fallout Bible | Fallout Bible |
Mods
Abbreviation | text | short | link | icon |
---|---|---|---|---|
DOA | Dawn of America | Dawn of America | Mod:Dawn of America | |
AOTL | Attack of the Lobotomites! | Attack of the Lobotomites! | Attack of the Lobotomites! | |
CSEP | CSEP | CSEP | Mod:CSEP | |
FOTF | Fallout: The Frontier | FOTF | Mod:Fallout: The Frontier | |
FOCAS | FOCAS | FOCAS | Mod:Fallout: Cascadia | |
FO4NV | Fallout 4: New Vegas | Fallout 4: New Vegas | Mod:Fallout 4: New Vegas | |
FO4PA | [[]] | [[File:|x40px]] | ||
FNM | [[]] | [[File:|x40px]] | ||
PBW | [[]] | [[File:|x40px]] | ||
FNC | Fallout: New California | FNC | Mod:Fallout: New California | |
DIZ | DiZco12's Lightweight Lore-Friendly Overhaul | DiZco12's Lightweight Lore-Friendly Overhaul | Mod:DiZco12's Lightweight Lore-Friendly Overhaul | |
TTW | Tale of Two Wastelands | TTW | Mod:Tale of Two Wastelands | |
MPFO3 | More Perks FO3 | More Perks FO3 | Mod:More Perks/More Perks (Fallout 3) | |
MPREQ | [[]] | [[File:|x40px]] | ||
MPOA | [[]] | [[File:|x40px]] | ||
MPTP | [[]] | [[File:|x40px]] | ||
MPBS | [[]] | [[File:|x40px]] | ||
MPPL | [[]] | [[File:|x40px]] | ||
MPMZ | [[]] | [[File:|x40px]] | ||
MPFNV | More Perks FNV | More Perks FNV | Mod:More Perks/More Perks (Fallout: New Vegas) | |
MPCMP | [[]] | [[File:|x40px]] | ||
MPMT | [[]] | [[File:|x40px]] | ||
MPDM | [[]] | [[File:|x40px]] | ||
MPHH | [[]] | [[File:|x40px]] | ||
MPOWB | [[]] | [[File:|x40px]] | ||
MPDF | [[]] | [[File:|x40px]] |
Community
Abbreviation | text | short | link | icon |
---|---|---|---|---|
FANFIC | Fanfiction | Fanfiction | Community:Fanfiction |
Adding new abbrevations
Add the following to Template:Abb and complete the fields.
-->|ABBREVIATION=<!-- -->{{#switch:{{lc:{{{mode|}}}}}<!-- -->|icon =<!-- -->|link =<!-- -->|short =<!-- -->|text|#default =<!-- -->}}<!--
Please note:
- Abbreviations are uppercase.
- Icon file names are specified without "File:" prefix.
- Maintain reference group type for abbreviations (game, publication, design document, developer statement)
Example
local p = {} local util = require( 'Module:Util' ) local gameList = { FORPG = { icon = "Gametitle-FORPG.png", title = "Fallout: The Roleplaying Game", link = "Fallout: The Roleplaying Game", short = "Fallout: The Roleplaying Game" }, FORPGQS = { icon = "Gametitle-FORPG.png", title = "Fallout: The Roleplaying Game Quickstart", short = "FORPG Quickstart" }, FORPGSS = { icon = "Gametitle-FORPG.png", title = "Fallout: The Roleplaying Game Starter Set", short = "FORPG Starter Set" }, FORPGGM = { icon = "Gametitle-FORPG.png", title = "Fallout: The Roleplaying Game Gamemaster's Toolkit", short = "Gamemaster's Toolkit" }, FORPGGMS = { icon = "Gametitle-FORPG.png", title = "Fallout: The Roleplaying Game GM Screen", short = "GM Screen" }, FORPGUPON = { icon = "Gametitle-FORPG.png", title = "Once Upon a Time in the Wasteland", short = "Once Upon a Time in the Wasteland" }, AR = { icon = "Infobox.webp", title = "All Roads", short = "All Roads" }, AOTL = { icon = "AttackOfTheLobotomitesLogocut.png", title = "Attack of the Lobotomites!", link = "Attack of the Lobotomites!", short = "Attack of the Lobotomites!" }, FOCAS = { icon = "FOCAS Logo 2.png", title = "Fallout: Cascadia", link = "Mod:Fallout: Cascadia|Fallout: Cascadia", short = "Fallout: Cascadia" }, FOLON = { icon = "Infobox.webp", title = "Fallout London", link = "Mod:Fallout London|Fallout London", short = "Fallout London" }, AR1 = { icon = "Infobox.webp", title = "America Rising", link = "Mod:America Rising - A Tale of the Enclave|America Rising - A Tale of the Enclave", short = "America Rising 2" }, AR2 = { icon = "Infobox.webp", title = "America Rising 2", link = "Mod:America Rising 2 - Legacy of the Enclave|America Rising 2 - Legacy of the Enclave", short = "America Rising 2" }, bonezone = { icon = "Upper_skull.png", title = "THE BONE ZONE", link = "Community:The Bone Zone|The Bone Zone", short = "THE BONE ZONE" }, D20 = { icon = "Infobox.webp", title = "Fallout Pen and Paper d20", link = "Fallout d20", short = "Fallout d20" }, FB = { icon = "Fallout_Bible_logo.png", title = "Fallout Bible" }, FBG = { icon = "Fallout The Board Game Icon.png", title = "Fallout: The Board Game" }, FBGNC = { icon = "Gametitle-FBGNC.png", title = "Fallout: New California" }, FOWW = { icon = "FOWW Logo.png", title = "Fallout: Wasteland Warfare", }, FWW = { icon = "FOWW Logo.png", title = "Fallout: Wasteland Warfare", }, FWWROP = { icon = "FOWW Logo.png", title = "Campaign Handbook", short = "FWW Campaign Handbook" }, FWWGA = { icon = "FOWW Logo.png", title = "Getting Acclimated", short = "FWW Getting Acclimated" }, FWWROP = { icon = "FOWW Logo.png", title = "Rules of Play", short = "FWW Rules of Play" }, FWWBM = { icon = "FOWW Logo.png", title = "Battle Mode", }, FWWCOH = { icon = "FOWW Logo.png", title = "Co-Op Handbook", }, FWWAIH = { icon = "FOWW Logo.png", title = "AI Handbook", }, FWWRPG = { icon = "FOWW RPG Logo.png", title = "Fallout: Wasteland Warfare Roleplaying Game", }, FWWCITC = { icon = "FOWW Logo.png", title = "Caught in the Crossfire", }, FWWITW = { icon = "FOWW Logo.png", title = "Into the Wasteland", }, FWWRPGTUS1 = { icon = "FOWW RPG Logo.png", title = "The Unexpected Shepherd Part 1: Protection Order", short = "TUS Part 1: Protection Order" }, FWWRPGMF = { icon = "FOWW RPG Logo.png", title = "Machine Frequency", }, FWWNV = { icon = "FOWW Logo.png", title = "New Vegas Rules", }, FWWCM = { icon = "FOWW Logo.png", title = "Commonwealth Rules", }, FWWAAT1 = { icon = "FOWW Logo.png", title = "Astoundingly Awesome Tales, #1", }, FWWITV = { icon = "FOWW Logo.png", title = "Into the Vault", }, FWWRPGTUS2 = { icon = "FOWW RPG Logo.png", title = "The Unexpected Shepherd Part 2: Dangerous Trails", short = "TUS Part 2: Dangerous Trails" }, FWWRPGTUS3 = { icon = "FOWW RPG Logo.png", title = "The Unexpected Shepherd Part 3: Battle Station", short = "TUS Part 3: Battle Station" }, FWWHS = { icon = "FOWW Logo.png", title = "Homestead Rules", }, FWWFITF = { icon = "FOWW Logo.png", title = "Forged in the Fire Rules", }, FWWCP = { icon = "FOWW Logo.png", title = "Capital Rules", }, FWWNW = { icon = "FOWW Logo.png", title = "Nuka-World Rules", }, FWWAAT2 = { icon = "FOWW Logo.png", title = "Astoundingly Awesome Tales, #2", }, FOFNW = { icon = "FOFNW Logo.png", title = "Fallout Factions: Nuka World", }, FILM = { icon = "Infobox.webp", title = "Fallout (film)" }, FNV = { icon = "Gametitle-FNV.png", title = "Fallout: New Vegas" }, FNVCS = { icon = "Gametitle-FNV_CS.png", title = "Courier's Stash" }, FNVDM = { icon = "Gametitle-FNV_DM.png", title = "Dead Money" }, FNVGRA = { icon = "Gametitle-FNV_GRA.png", title = "Gunn Runners' Arsenal" }, FNVHH = { icon = "Gametitle-FNV_HH.png", title = "Honest Hearts" }, FNVLR = { icon = "Gametitle-FNV_LR.png", title = "Lonesome Road (add-on)", link = "Lonesome Road", short = "Lonesome Road" }, FNVOWB = { icon = "Gametitle-FNV_OWB.png", title = "Old World Blues (add-on)", link = "Old World Blues", short = "Old World Blues" }, FO4 = { icon = "Gametitle-FO4.png", title = "Fallout 4", title = "Fallout 4", short = "Fallout 4" }, FO4AUT = { icon = "Gametitle-FO4_AUT.png", title = "Automatron (add-on)", link = "Automatron", short = "Automatron" }, FO4WW = { icon = "Gametitle-FO4_WW.png", title = "Wasteland Workshop" }, FO4FH = { icon = "Gametitle-FO4_FH.png", title = "Far Harbor (add-on)", link = "Far Harbor", short = "Far Harbor" }, FO4CW = { icon = "Gametitle-FO4_CW.png", title = "Contraptions Workshop", link = "Contraptions Workshop" }, FO4VW = { icon = "Gametitle-FO4_VW.png", title = "Vault-Tec Workshop", link = "Vault-Tec Workshop" }, FO4NW = { icon = "Gametitle-FO4_NW.png", title = "Nuka-World (add-on)", link = "Nuka-World", short = "Nuka-World" }, FO4CC = { icon = "Gametitle-FO4_CC.png", title = "Creation Club", link = "Creation Club", short = "Creation Club" }, FO4VR = { icon = "Fallout_4_VR_Logo.png", title = "Fallout 4 VR", link = "Fallout 4 VR" }, FOS = { icon = "Gametitle-FOS.png", title = "Fallout Shelter", }, FOSO = { icon = "Gametitle-FOSO.png", title = "Fallout Shelter Online", }, FPB = { icon = "Gametitle-FPB.png", title = "Fallout Pip-Boy" }, FO = { icon = "Gametitle-FO1.png", title = "Fallout" }, FO1 = { icon = "Gametitle-FO1.png", title = "Fallout" }, FOD = { icon = "Gametitle-FO1.png", title = "Fallout Demo" }, FO2 = { icon = "Gametitle-FO2.png", title = "Fallout 2" }, FO3 = { icon = "Gametitle-FO3.png", title = "Fallout 3" }, FO3BS = { icon = "Gametitle-FO3_BS.png", title = "Broken Steel" }, FO3MZ = { icon = "Gametitle-FO3_MZ.png", title = "Mothership Zeta", link = "Mothership Zeta", short = "Mothership Zeta" }, FO3OA = { icon = "Gametitle-FO3_OA.png", title = "Operation: Anchorage", link = "Operation: Anchorage", short = "Operation: Anchorage" }, FO3PL = { icon = "Gametitle-FO3_PL.png", title = "Point Lookout (add-on)", link = "Point Lookout", short = "Point Lookout" }, FO3TP = { icon = "Gametitle-FO3_TP.png", title = "The Pitt (add-on)", link = "The Pitt", short = "The Pitt" }, FO76 = { icon = "Gametitle-FO76.png", title = "Fallout 76", link = "Fallout 76" }, FO76WA = { icon = "Gametitle-FO76_WA.png", title = "Wild Appalachia" }, FO76NW = { icon = "Gametitle-FO76_NW.png", title = "Nuclear Winter", link = "Nuclear Winter" }, FO76WL = { icon = "Gametitle FO76WL.png", title = "Wastelanders" }, FO76LR = { icon = "Gametitle-FO76_LR.png", title = "The Legendary Run (update)", link = "The Legendary Run", short = "The Legendary Run" }, FO76OW = { icon = "Gametitle-FO76_One_Wasteland.png", title = "One Wasteland For All" }, FO76FS = { icon = "Gametitle-FO76_Steel Dawn.png", title = "Steel Dawn", link = "Steel Dawn" }, FO76SD = { icon = "Gametitle-FO76_Steel Dawn.png", title = "Steel Dawn", link = "Steel Dawn" }, FO76LL = { icon = "Gametitle-FO76_Locked n Loaded.png", title = "Locked & Loaded" }, FO76SR = { icon = "Gametitle-FO76_Steel Reign.png", title = "Steel Reign", link = "Steel Reign" }, FO76FW = { icon = "Gametitle-FO76 FW.png", title = "Fallout Worlds", link = "Fallout Worlds" }, FO76ETP = { icon = "Gametitle-FO76.png", title = "Expeditions: The Pitt" }, FO76RD = { icon = "Gametitle-FO76.png", title = "Rip Daring and the Cryptid Hunt", link = "Rip Daring and the Cryptid Hunt" }, FO76MI = { icon = "Gametitle-FO76.png", title = "Mutation Invasion", link = "Mutation Invasion" }, FO76NWT = { icon = "Gametitle-FO76_NWOT.png", title = "Nuka-World on Tour", link = "Nuka-World on Tour" }, FO76OBM = { icon = "Gametitle-FO76.png", title = "Once in a Blue Moon", link = "Once in a Blue Moon" }, FO76ACBP = { icon = "FO76AC Icon.png", title = "Atlantic City Boardwalk Paradise", link = "Atlantic City Boardwalk Paradise" }, FO76ACAP = { icon = "Infobox.webp", title = "Atlantic City America's Playground", link = "Atlantic City America's Playground" }, FOBOS = { icon = "Gametitle-FOBOS.png", title = "Fallout: Brotherhood of Steel", link = "Fallout: Brotherhood of Steel", short = "Fallout: BOS" }, FOBOS2 = { icon = "Infobox.webp", title = "Fallout: Brotherhood of Steel 2", link = "Fallout: Brotherhood of Steel 2", short = "Fallout: BOS 2" }, FO5 = { icon = "Infobox.webp", title = "Fallout 5" }, PV13 = { icon = "Infobox.webp", title = "Project V13" }, FOT = { icon = "Gametitle-FOT.png", title = "Fallout Tactics", link = "Fallout Tactics", short = "Fallout Tactics" }, FOT2 = { icon = "Infobox.webp", title = "Fallout Tactics 2" }, FOTV = { icon = "Fallout_TV_Show_Logo.webp", title = "Fallout Television Series", link = "Fallout Television Series", short = "Fallout TV Series" }, FOW = { icon = "Infobox.webp", title = "Fallout: Warfare" }, FOX = { icon = "Infobox.webp", title = "Fallout Extreme" }, FOWW = { icon = "Gametitle-FWW.png", title = "Fallout: Wasteland Warfare" }, JES = { icon = "Infobox.webp", title = "J.E. Sawyer's Fallout RPG", short = "JES Fallout RPG" }, LH = { icon = "Infobox.webp", title = "Lionheart" }, PA = { icon = "Infobox.webp", title = "One Man, and a Crate of Puppets", short = "Penny Arcade" }, TAR = { icon = "Infobox.webp", title = "The Armageddon Rag", short = "Armageddon Rag" }, TORN = { icon = "Infobox.webp", title = "TORN" }, VB = { icon = "Van Buren Fallout 3 Logo.png", title = "Van Buren" }, WIKI = { icon = "Infobox.webp", title = "FalloutWiki:About", short = "Fallout Wiki" }, NONE = { title = "mentioned-only" }, RW = { title = "real world" }, FNVCE = { icon = "Gametitle-FNV.png", title = "Fallout: New Vegas Official Game Guide", link = "Fallout: New Vegas Official Game Guide" }, FNVCE1 = { icon = "Gametitle-FNV.png", title = "Fallout: New Vegas Official Game Guide: Behind the Bright Lights & Big City", link = "Fallout: New Vegas Official Game Guide/Behind the Bright Lights & Big City", short = "Behind the Bright Lights & Big City" }, FNVCE2 = { icon = "Gametitle-FNV.png", title = "Fallout: New Vegas Official Game Guide: Wild Wasteland Oddities", link = "Fallout: New Vegas Official Game Guide/Wild Wasteland Oddities", short = "Wild Wasteland Oddities" }, FNVCE3 = { icon = "Gametitle-FNV.png", title = "Fallout: New Vegas Official Game Guide: Tour of the Mojave Wasteland", link = "Fallout: New Vegas Official Game Guide/Tour of the Mojave Wasteland", short = "Tour of the Mojave Wasteland" }, FNVCE4 = { icon = "Gametitle-FNV.png", title = "Fallout: New Vegas Official Game Guide: Faction Profiles", link = "Fallout: New Vegas Official Game Guide/Faction Profiles", short = "Faction Profiles" }, DOA = { icon = "Dawn of America logo.png", title = "Dawn of America", link = "Mod:Dawn of America", short = "Dawn of America" }, DIZ = { icon = "Diz Icon.png", title = "DiZco12's Lightweight Lore-Friendly Overhaul", link = "Mod:DiZco12's Lightweight Lore-Friendly Overhaul", short = "DiZco12's Lightweight Lore-Friendly Overhaul" }, DUST = { icon = "Mod_DUST_Logo.jpg", title = "DUST", link = "Mod:DUST Survival Simulator", short = "DUST" }, FNC = { icon = "Mod New California logo main page.png", title = "Fallout: New California mod", link = "Mod:Fallout: New California", short = "Fallout: New California mod" }, MOD = { icon = "Mods_Icon.png", title = "Mods", short = "Mods", link = "Mods" }, MPFO3 = { icon = "MadeMan.svg", title = "More Perks for Fallout 3" }, MPREQ = { icon = "MadeMan.svg", title = "More Perks Requested for Fallout 3" }, MPOA = { icon = "MadeMan.svg", title = "More Perks for Operation Anchorage" }, MPTP = { icon = "MadeMan.svg", title = "More Perks for The Pitt" }, MPBS = { icon = "MadeMan.svg", title = "More Perks for Broken Steel" }, MPPL = { icon = "MadeMan.svg", title = "More Perks for Point Lookout" }, MPMZ = { icon = "MadeMan.svg", title = "More Perks for Mothership Zeta" }, MPFNV = { icon = "MadeMan.svg", title = "More Perks for Fallout: New Vegas" }, MPCMP = { icon = "MadeMan.svg", title = "More Perks for Companions" }, MPMT = { icon = "MadeMan.svg", title = "More Traits for Fallout: New Vegas" }, MPDM = { icon = "MadeMan.svg", title = "More Perks for Dead Money" }, MPHH = { icon = "MadeMan.svg", title = "More Perks for Honest Hearts" }, MPOWB = { icon = "MadeMan.svg", title = "More Perks for Old World Blues" }, MPDF = { icon = "MadeMan.svg", title = "Deserter's Fortress" }, } function setTable(keys) if string.len(tostring(keys)) > 0 then result = mw.text.split(keys, ",") else result = nil end return result end function _valid(games) local keys = setTable(games) for k, v in ipairs(keys) do if gameList[v] ~=nil then return true end end return false end function p.i_valid(games) return _valid(games) end function p.validation(frame) return _valid(frame.args['games']) end function icon(frame) local fileCount = 1 local fileOut = "" while fileCount <= abbLength do currentFile = string.upper(abbGames[fileCount]) currentFile = abbIcon[currentFile] if currentFile ~= nil then fileOut = fileOut .. currentFile end fileCount = fileCount + 1 end return fileOut end function _category(keys, category, prepend, append, mode, sortkey) local keys = setTable(keys) local result = "" if util.exists(keys) then for k, v in ipairs(keys) do local currentCat = nil if util.exists(gameList[v].short) then currentCat = gameList[v].short else currentCat = gameList[v].title end result = result .. "[[Category:" if util.exists(mode) and string.lower(mode) == "append" then result = result .. string.lower(category) .. " " if util.exists(prepend) then result = result .. prepend end result = result .. currentCat if util.exists(append) then result = result .. append end else result = result .. currentCat .. " " if util.exists(prepend) then result = result .. " " .. prepend end result = result .. category if util.exists(append) then result = result .. append end end if util.exists(sortKey) then result = result .. "|" .. sortKey end result = result .. "]]" end else result = "[[Category:" .. category if exists(sortKey) then result = result .. "|" .. sortKey end result = result .. "]]" end return result end function p.i_category(games, category, prepend, append, mode, sortkey) return _category(games, category, prepend, append, mode, sortkey) end function p.category(frame) local keys = setTable(frame.args['games']) local category = frame.args['category'] local prepend = frame.args['prepend'] local append = frame.args['append'] local mode = frame.args['mode'] local sortKey = frame.args['sort key'] local i = 1 local result = "" if keys ~= nil then while i <= table.getn(keys) do local currentCat = nil currentCat = keys[i] if gameList[currentCat]['link'] ~= nil then currentCat = gameList[currentCat]['link'] else currentCat = gameList[currentCat]['title'] end result = result .. "[[Category:" if string.lower(mode) == "append" then result = result .. string.lower(category) .. " " if prepend ~= nil then result = result .. prepend end result = result .. currentCat if append ~= nil then result = result .. append end else result = result .. currentCat .. " " if prepend ~= nil then result = result .. " " .. prepend end result = result .. category if append ~= nil then result = result .. append end end if sortKey ~= nil and string.len(sortKey) ~= 0 then result = result .. "|" .. sortKey end result = result .. "]]" i = i + 1 end else result = "[[Category:" .. category if sortKey ~= nil and string.len(sortKey) ~= 0 then result = result .. "|" .. sortKey end result = result .. "]]" end return result end function p.abb(frame) if frame.args[2] ~= nil then mode = string.lower(frame.args[2]) end local games = string.upper(tostring(frame.args[1])) games = mw.text.split(games, ",") length = table.getn(games) if mode == "link" or mode == "text" or mode == "short" or mode == nil then result = abbOnly(games, mode, length) end if mode == "cat" then abbCatName = frame.args[3] abbAppend = frame.args[4] abbPrepend = frame.args[5] abbCatMode = frame.args[6] abbSort = frame.args[7] result = abbCategory(games, length, abbCatName, abbAppend, abbPrepend, abbCatMode, abbSort) end if mode == "icon" then result = abbFile(games, length) end return result end function p.documentation() keys = {} for k in pairs(gameList) do table.insert(keys, k) end table.sort(keys) result = '{| class="ace-table ace-table-full"\n|-\n !Abbreviation!!text/title!!short!!link!!icon\n|-\n' for k,v in ipairs(keys) do result = result .. '|' .. v .. '||' .. gameList[v].title .. '||' if _valid(gameList[v].short) ~= nil then result = result .. gameList[v].short else result = result .. gameList[v].title end result = result .. '||' if _valid(gameList[v].link) ~= nil then result = result .. gameList[v].link else result = result .. gameList[v].title end result = result .. '||' .. '[[File:' .. gameList[v].icon .. '|x40px]]\n|-\n' end result = result .. '\n|}' return result end return p