×
Fallout Wiki

Module:File/data

Usage[edit]

  • Add Alias(es) of the typegame you want to add into fileData.aliasMap. This are all the possible words you can use to mean the same option. For example:
coverart      = {"box","box art","cover art","coverart","boxart","boxartwork","box artwork","cover artwork"},
This means that any of the words in the brackets will mean coverart.
  • Add the definitions of the typegame you want to add into fileData.typeDefs. For example:
    coverart = {
        label = "Cover art",
        category = "cover art"
    },
This means that the label will say "Cover art" and the category will be [[Category:" .. Y .. "cover art]] (Y meaning the game).
  • Optionally, add fixed=true in the definition, like this:
   corporate = {
        label = "Corporate logo",
        category = "Corporate logos",
        fixed = true
    },
This means that the label will say "Corporate logo" and the category will be [[Category:Corporate logos]]. (It will not use the game in the category at all if fixed is set to true)

Data[edit]


local fileData = {}

fileData.modWhitelist = {
	"America Rising",
	"America Rising 2",
	"Another Millenia",
	"Attack of the Lobotomites!",
    "Beyond Boulder Dome",
    "Fallout Cascadia",
    "Fallout London",
    "Fallout: New California",
    "Fallout 4: New Vegas",
    "Fallout: The Frontier",
    "Tale of Two Wastelands"
}
-- Alias map for type resolution
-- You put the alias words here that are possible for each type:
fileData.aliasMap = {
    achievement          = {"achievement"},
    actor                = {"actor", "actor image", "actress", "actress image"},
    addon                = {"add-on", "addon", "add-on image", "addon image"},
    ammunition           = {"ammo", "ammunition"},
    ammunitionicon       = {"ammoicon", "ammunitionicon", "ammo icon", "ammunition icon"},
    apparel              = {"apparel"},
    armorandclothing     = {"armor", "clothing", "armor and clothing images", "armor and clothing image", "armor images", "clothing images", "armors", "clothings", "outfit"},
    armorandclothingicon = {"armoricon", "clothingicon", "armor icon", "clothing icon", "armorandclothingicon", "armor and clothing icon"},
    artwork              = {"art", "arts", "artwork", "artworks"},
    audio                = {"sound", "audio file", "audio"},
    audiodialogue        = {"audio dialogue", "audio log", "audio conversation", "audiodialogue", "audiolog"},
    audioweapon          = {"weaponsound", "weapon sound", "weapon audio", "weaponaudio"},
    animated             = {"anim", "animation", "animated", "animated image", "animated images", "animated img"},
    beta                 = {"beta image", "pre-release", "prerelease", "early version", "beta"},
    billboard            = {"bill board", "billboard", "sign", "signs"},
    bts                  = {"bts", "behindthescenes", "behind the scenes"},
    bug                  = {"bug image", "bug"},
    bundle               = {"bundle", "bundle image"},
    character            = {"character", "characters", "character image"},
    charactermodel       = {"charactermodels", "charactermodel", "character model"},
    community            = {"community"},
    concept              = {"concept", "concept art", "concept artwork", "conceptart", "conceptartwork"},
    conditionicon        = {"conditionicon", "condition icon"},
    consumable           = {"consumable", "consumable image"},
    consumableicon       = {"consumableicon", "consumable icon"},
    corporate            = {"corporate", "corporate logo", "corporatelogo"},
    coverart             = {"box", "box art", "cover art", "coverart", "boxart", "boxartwork", "box artwork", "cover artwork"},
    craftingcomponent    = {"craftingcomponent", "crafting component", "crafting component image", "craftingcomponentimage"},
    creature             = {"creature", "creatures", "monster"},
    creaturesounds       = {"creature sound", "creaturesound", "creature sounds"},
    cutscene             = {"cutscene", "cutscene image", "cutsceneimage"},
    designdocument       = {"designdocument", "design document"},    
    derived              = {"derived", "derivedstat", "derived statistic", "derivedstatistic"},
    developer            = {"developer"},
    emote                = {"emote", "emoteicon", "emote icon"},
    endingslide          = {"ending slide", "endingslide", "ending slides", "end slide", "ending"},
    fullherocard         = {"fullherocard", "fullheroart"},
    funko                = {"funko", "funko pop", "funkopop"},
    gamelogo             = {"gamelogo", "game logo"},
    graffiti             = {"graffiti"},
    headwear             = {"headwear"},
    herocard             = {"herocard"},
    icon                 = {"ico", "icon", "icons"},
    images               = {"image", "images", "default"},
    introslide           = {"intro slide", "introslide", "intro", "intro slides", "opening slide", "opening"},
    itemimages           = {"item", "item images"},
    junk                 = {"junk"},
    loadingscreen        = {"loading", "loading screen", "loadingscreen", "load screen", "loadscreen", "loading screen images"},
    localmap             = {"local map", "local maps", "local map images"},
    location             = {"location", "locations", "location image", "place", "places", "place images"},
    logo_def             = {"logo", "logomark", "logos", "logotype", "wordmark"},
    magazine             = {"magazine"},
    main                 = {"main"},
    mainimage            = {"mainimage"},
    map                  = {"map", "maps", "map image"},
    mapicon              = {"mapicon", "map icon"},
    mapmarker            = {"mapmarker", "map marker", "map marker image"},
    merchandise          = {"merch", "merchandise"},
    mbox                 = {"mbox", "messagebox", "message box"},
    miniature            = {"miniature", "miniature figure", "figurine"},
    misc                 = {"misc", "miscellaneous", "misc item", "misc thing", "miscellaneous item", "miscellaneous item images"},
    miscicon             = {"miscicon", "misc icon", "miscellaneous icon"},
    mission              = {"mission"},
    modauthor            = {"modauthor", "mod author"},
    modimage             = {"modimage", "mod image"},
    musician             = {"musician"},
    note                 = {"note"},
    perk                 = {"perk", "perk images"},
    perkmag              = {"perkmag", "perkmagazine", "perk magazine", "perk magazines", "perk magazine images"},
    photo                = {"photo", "photos", "photography", "reallife", "real life", "real"},
    pipboy               = {"pipboy", "pip-boy", "pip boy", "pip-boy images", "pip boy images", "pb"},
    playingcard          = {"playingcard", "playing cards", "playing card"},
    poster               = {"poster", "posters", "poster images"},
    powerarmor           = {"powerarmor", "power armor", "pa", "clanker"},
    promopub             = {"promo", "promopub", "promotional", "publishing", "advertisement", "ad", "promotional and publishing", "advert", "marketing"},
    quest                = {"quest", "quests", "quest images"},
    questicon            = {"questicon", "quest icon"},
    randencount          = {"random encounter", "randomencounter", "random encounter images", "random", "raen", "re"},
    render               = {"render", "render images", "3dmodel", "3d model", "model", "models", "nif"},
    reputation           = {"reputation", "rep"},
    resource             = {"resource"},
    robot                = {"robot", "robots", "computer", "computers", "robot and computer", "technology", "robot and computer images"},
    screenshot           = {"screenshot", "scr", "screen", "scrshot", "screen shot"},
    settlement           = {"settlement", "settlementobject", "settlement object"},
    site                 = {"site", "siteimage", "site image"},
    skillicon            = {"skillbook icon", "skill book icon", "skillbook icon images", "skill book icon images"},
    skillimage           = {"skillbook", "skill book", "skillbook image", "skill book image", "skillbook images", "skill book images"},
    song                 = {"song", "songs", "song images", "music"},
    sourcetext           = {"sourcetext", "source text", "source"},
    storefront           = {"storefront", "AtomShop", "AtomicShop", "Season reward"},
    system               = {"system", "sys", "sysimg", "system image", "system images", "console images", "consoles", "console"},
    talkinghead          = {"talkinghead", "talking head", "byrne"},
    template             = {"template"},
    testcell             = {"testcell", "test cell"},
    texture              = {"texture", "dds"},
    thumbnail            = {"thumbnail"},
    trait                = {"trait", "trait image"},
    trophy               = {"trophy", "trophies"},
    user                 = {"personal", "personal img", "personal image", "user", "userimg", "user image"},
    updatebanner         = {"update banner", "updatebanner"},
    vaultboy             = {"vaultboy", "vault boy", "vault-boy", "vault boy images", "vb"},
    vaultboyicon         = {"vaultboyicon", "vault boy icon", "vault boy icons"},
    vaultgirl            = {"vaultgirl", "vault girl", "vault-girl", "vault girl images"},
    vehicle              = {"vehicle", "car", "transportation"},
    video                = {"video", "videos"},
    voiceactor           = {"voice actor", "voiceactor", "va", "voice actor image", "voice actress", "voiceactress"},
    weapon               = {"weapon images", "weapons", "weapon"},
    weaponpaintscheme    = {"weapon paint scheme", "weapon paint", "weaponpaint"},
    weaponicon           = {"weaponicon", "weapon icon"},
    weaponmod            = {"weaponmod", "weapon mod", "weapon mod icon", "weaponmodicon"},
    wiki                 = {"wiki", "falloutwiki", "ifw", "ifw images"},
    workshop             = {"workshop"},
    worldobject          = {"worldobject", "world object", "wo", "world objects"},
}

-- Type definitions with labels and categories
-- Put for each type the label (what shows up in the Type slot in the template) and category (the part that is attached after the game)
-- If you don't want the category to attach the game, put "fixed = true" and it will skip the game attaching part
fileData.typeDefs = {
    achievement = {
        label = "Achievement",
        category = "achievement and trophy images"
    },
    actor = {
        label = "Actor image",
        category = "actor images"
    },
    addon = {
        label = "Add-on image",
        category = "add-on images"
    },
    ammunition = {
        label = "Ammunition image",
        category = "ammunition images"
    },
    ammunitionicon = {
        label = "Ammunition icon",
        category = "ammunition icons"
    },
    animated = {
        label = "Animated image",
        category = "animated images"
    },
    apparel = {
        label = "Apparel image",
        category = "apparel images"
    },
    armorandclothing = {
        label = "Armor and clothing image",
        category = "armor and clothing images"
    },
    armorandclothingicon = {
        label = "Armor and clothing icon",
        category = "armor and clothing icons"
    },
    artwork = {
        label = "Artwork",
        category = "artwork"
    },
    audio = {
        label = "Audio file",
        category = "audio files"
    },
    audiodialogue = {
        label = "Audio dialogue",
        category = "audio dialogues"
    },
    audioweapon = {
        label = "Weapon sound",
        category = "weapon sounds"
    },
    beta = {
        label = "Pre-release screenshot",
        category = "pre-release screenshots"
    },
    billboard = {
        label = "Billboard or sign",
        category = "signs and placards"
    },
    bts = {
        label = "Behind the scenes image",
        category = "behind the scenes images"
    },
    bug = {
        label = "Bug image",
        category = "bug images"
    },
    bundle = {
        label = "Bundle image",
        category = "bundle images"
    },
    character = {
        label = "Character image",
        category = "character images"
    },
    charactermodel = {
        label = "Character model",
        category = "character models"
    },
    community = {
        label = "Community image",
        category = "Community images"
    },
    concept = {
        label = "Concept artwork",
        category = "concept art images"
    },
    conditionicon = {
        label = "Condition icon",
        category = "condition icons"
    },
    consumable = {
        label = "Consumable image",
        category = "consumable images"
    },
    consumableicon = {
        label = "Consumable icon",
        category = "consumable icons"
    },
    corporate = {
        label = "Corporate logo",
        category = "Corporate logos",
        fixed = true
    },
    coverart = {
        label = "Cover art",
        category = "cover art"
    },
    craftingcomponent = {
        label = "Crafting component image",
        category = "crafting component images"
    },
    creature = {
        label = "Creature image",
        category = "creature images"
    },
    creaturesounds = {
        label = "Creature sounds",
        category = "creature sounds"
    },
    cutscene = {
        label = "Cutscene image",
        category = "cutscene images"
    },
    designdocument = {
        label = "Design document",
        category = "design documents"
    },
    derived = {
        label = "Derived statistic image",
        category = "derived statistic images"
    },
    developer = {
        label = "Developer image",
        category = "developer images"
    },
    emote = {
        label = "Emote icon",
        category = "emote icons"
    },
    endingslide = {
        label = "Ending slide",
        category = "ending slides"
    },
    fullherocard = {
        label = "Full Hero card image",
        category = "full hero card images"
    },
    funko = {
        label = "Funko collectable figure image",
        category = "Funko Images",
        fixed = true
    },
    gamelogo = {
        label = "Logo",
        category = "Game logos",
        fixed = true
    },
    graffiti = {
        label = "Graffiti",
        category = "graffiti"
    },
    headwear = {
        label = "Headwear image",
        category = "headwear images"
    },
    herocard = {
        label = "Hero card image",
        category = "hero card images"
    },
    icon = {
        label = "Icon",
        category = "icons"
    },
    images = {
        label = "Image",
        category = "images"
    },
    introslide = {
        label = "Intro slide",
        category = "intro slides"
    },
    itemimages = {
        label = "Item images",
        category = "item images"
    },
    junk = {
        label = "Junk",
        category = "junk item images"
    },
    loadingscreen = {
        label = "Loading screen",
        category = "loading screens"
    },
    localmap = {
        label = "Local map image",
        category = "local map images"
    },
    location = {
        label = "Location image",
        category = "location images"
    },
    logo_def = {
        label = "Logo",
        category = "logos"
    },
    magazine = {
        label = "Magazine image",
        category = "magazine images"
    },
    main = {
        label = "Game image",
        category = "images"
    },
    mainimage = {
        label = "Game image",
        category = "images"
    },
    map = {
        label = "Map",
        category = "maps"
    },
    mapicon = {
        label = "Map icon",
        category = "map icons"
    },
    mapmarker = {
        label = "Map marker image",
        category = "map marker images"
    },
    merchandise = {
        label = "Merchandise image",
        category = "Merchandise images",
        fixed = true
    },
    mbox = {
        label = "Message box",
        category = "message boxes"
    },
    miniature = {
        label = "Miniature image",
        category = "miniature images"
    },
    misc = {
        label = "Miscellaneous item image",
        category = "miscellaneous item images"
    },
    miscicon = {
        label = "Miscellaneous item icon",
        category = "miscellaneous item icons"
    },
    mission = {
        label = "Mission image",
        category = "mission images"
    },
    modauthor = {
        label = "Mod author image",
        category = "Mod Author Images",
        fixed = true
    },
    modimage = {
        label = "Mod image",
        category = "Mod images",
        fixed = true
    },
    musician = {
        label = "Musician image",
        category = "Musician images"
    },
    note = {
        label = "Note image",
        category = "note images"
    },
    perk = {
        label = "Perk image",
        category = "perk images"
    },
    perkmag = {
        label = "Perk magazine image",
        category = "perk magazine images"
    },
    photo = {
        label = "Real-world imagery",
        category = "Real World images",
        fixed = true
    },
    pipboy = {
        label = "Pip-Boy image",
        category = "Pip-Boy images"
    },
    playingcard = {
        label = "Playing card",
        category = "playing card images"
    },
    poster = {
        label = "Poster",
        category = "posters"
    },
    powerarmor = {
        label = "Power armor image",
        category = "power armor images"
    },
    promopub = {
        label = "Marketing/promotional image",
        category = "marketing images"
    },
    quest = {
        label = "Quest image",
        category = "quest images"
    },
    questicon = {
        label = "Quest icon",
        category = "quest icons"
    },
    randencount = {
        label = "Random encounter image",
        category = "random encounter images"
    },
    render = {
        label = "Render image",
        category = "render images"
    },
    reputation = {
        label = "Reputation image",
        category = "reputation images"
    },
    resource = {
        label = "Resource image",
        category = "resource images"
    },
    robot = {
        label = "Robot image",
        category = "robot images"
    },
    screenshot = {
        label = "Screenshot",
        category = "screenshots"
    },
    settlement = {
        label = "Settlement object image",
        category = "settlement object images"
    },
    site = {
        label = "Site image",
        category = "Site images",
        fixed = true
    },
    skillicon = {
        label = "Skill book icon",
        category = "skill book icons"
    },
    skillimage = {
        label = "Skill book image",
        category = "skill book images"
    },
    song = {
        label = "Song image",
        category = "song images"
    },
    sourcetext = {
        label = "Source text image",
        category = "source text images"
    },
    storefront = {
        label = "Storefront image",
        category = "storefront images"
    },
    system = {
        label = "System image",
        category = "system images",
        fixed = true
    },
    talkinghead = {
        label = "Talking head",
        category = "talking heads"
    },
    template = {
        label = "Template image",
        category = "Template images",
        fixed = true
    },
    testcell = {
        label = "Test cell image",
        category = "test cell images"
    },
    texture = {
        label = "Texture",
        category = "textures"
    },
    thumbnail = {
        label = "Thumbnail",
        category = "thumbnails"
    },
    trait = {
        label = "Trait image",
        category = "trait images"
    },
    trophy = {
        label = "Trophy",
        category = "trophy images"
    },
    user = {
        label = "User image",
        category = "User page images",
        fixed = true
    },
    updatebanner = {
        label = "Update banner",
        category = "update banners"
    },
    vaultboy = {
        label = "Vault Boy image",
        category = "Vault Boy images"
    },
    vaultboyicon = {
        label = "Vault Boy icon",
        category = "Vault Boy icons"
    },
    vaultgirl = {
        label = "Vault Girl image",
        category = "Vault Girl images",
        fixed = true
    },
    vehicle = {
        label = "Vehicle image",
        category = "vehicle images"
    },
    video = {
        label = "Video",
        category = "videos"
    },
    voiceactor = {
        label = "Voice actor image",
        category = "voice actor images"
    },
    weapon = {
        label = "Weapon image",
        category = "weapon images"
    },
    weaponpaintscheme = {
        label = "Weapon Paint Scheme image",
        category = "weapon paint scheme images"
    },
    weaponicon = {
        label = "Weapon icon",
        category = "weapon icons"
    },
    weaponmod = {
        label = "Weapon mod image",
        category = "weapon mod icons"
    },
    wiki = {
        label = "Wiki image",
        category = "Wiki images",
        fixed = true
    },
    workshop = {
        label = "Workshop object image",
        category = "workshop object images"
    },
    worldobject = {
        label = "World object image",
        category = "world object images"
    }
}

-- Source definitions
fileData.sources = {
    me = "Media created by the uploader",
    my = "Media created by the uploader",
    myself = "Media created by the uploader",
    self = "Media created by the uploader",
    other = function(user) return "Media created by [[User:"..user.."|"..user.."]]" end,
    someone = function(user) return "Media created by [[User:"..user.."|"..user.."]]" end,
    user = function(user) return "Media created by [[User:"..user.."|"..user.."]]" end,
    youtube = "YouTube image [[Category:YouTube sourced images]]",
    presskit = "Press kit image [[Category:Non-public press kit images]]"
}

-- License definitions
fileData.licenses = {
    cc0 = {
        label = "''This file is distributed under the '''[https://creativecommons.org/publicdomain/zero/1.0/deed.en CC0 1.0 Universal]''' license.''",
        category = "Media licensed under CC0 1.0"
    },
    ccby20 = {
        label = "''This file is distributed under the '''[https://creativecommons.org/licenses/by/2.0/deed.en Creative Commons Attribution 2.0]''' license.''",
        category = "Media licensed under CC BY 2.0"
    },
    ccbysa20 = {
        label = "''This file is distributed under the '''[https://creativecommons.org/licenses/by-sa/2.0/ Creative Commons Attribution-ShareAlike 2.0]''' license.''",
        category = "Media licensed under CC BY-SA 2.0"
    },
    ccbyncnd20 = {
        label = "''This file is distributed under the '''[https://creativecommons.org/licenses/by-nc-nd/2.0/ Creative Commons Attribution-NonCommercial-NoDerivs 2.0]''' license.''",
        category = "Media licensed under CC BY-NC-ND 2.0"
    },
    ccby25 = {
        label = "''This file is distributed under the '''[http://creativecommons.org/licenses/by/2.5/deed.en Creative Commons Attribution 2.5]''' license.''",
        category = "Media licensed under CC BY 2.5"
    },
    ccbysa30 = {
        label = "''This file is distributed under the '''[https://creativecommons.org/licenses/by-sa/3.0/deed.en Creative Commons Attribution-ShareAlike 3.0]''' license.''",
        category = "Media licensed under CC BY-SA 3.0"
    },
    ccby40 = {
        label = "''This file is distributed under the '''[https://creativecommons.org/licenses/by/4.0/deed.en Creative Commons Attribution 4.0]''' license.''",
        category = "Media licensed under CC BY 4.0"
    },
    ccbysa40 = {
        label = "''This file is distributed under the '''[https://creativecommons.org/licenses/by-sa/4.0/deed.en Creative Commons Attribution-ShareAlike 4.0]''' license.''",
        category = "Media licensed under CC BY-SA 4.0"
    },
    ccbyncsa40 = {
        label = "''This file is distributed under the '''[https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en Creative Commons Attribution-NonCommercial-ShareAlike 4.0]''' license.''",
        category = "Media licensed under CC BY-NC-SA 4.0"
    },
    ccbyncnd40 = {
        label = "''This file is distributed under the '''[https://creativecommons.org/licenses/by-nc-nd/4.0/ Creative Commons Attribution-NonCommercial-NoDerivs 4.0]''' license.''",
        category = "Media licensed under CC BY-NC-ND 4.0"
    },
    fairuse = {
        label = "''This file is subject to copyright but qualifies as '''fair use''' under United States copyright law.''",
        category = "Media assumed fair use"
    },
    perm = {
        label = "''This file has been uploaded with the permission of the author/copyright holder.''",
        category = "Media used with copyright permission"
    },
    pd = {
        label = "''This file has been released into the '''public domain''' by the copyright holder.''",
        category = "Media released to public domain"
    },
    myself = {
        label = "''This file has been uploaded by the photographer, artist or author.''",
        category = "Media uploaded by creator"
    }
}

return fileData