Aller au contenu

Module:File/data

De Wiki Undertale FR

Additional data used in file descriptions.

Documentation

Package items

file_data.license (member; table)
Map of file license types to license text.
file_data.types (member; table)
Map of file types (used in type or file page title) to their names and categories.
file_data.authors (member; table)
Map of author names to their respective profile/article links. By default, the author of a file is Toby Fox, as specified in the default property.
file_data.numbering (member; table)
Map of number → position name. Used in numerical file descriptions, for example a mapping from File:Burgerpants face 5.png to "Burgerpants's fifth face."
file_data.typeorder (member; table)
Order of type deduction from filename. Screenshots go first because their names are usually the most complex and may include names of other types, which could confuse the file type deduction mechanism.

Private items

file_data.game (member; string • local)
Game's name. Because the same base module is used on Deltarune Wiki, where the game's name is "Deltarune."
--- Additional data used in file descriptions.
--  @file               file_data
--  @alias              p

--- Map of file license types to license text.
--  @property           {table} file_data.license

--- Map of file types (used in <code>type</code> or file page title) to their
--  names and categories.
--  @property           {table} file_data.types

--- Map of author names to their respective profile/article links.
--  By default, the author of a file is [[Toby Fox]], as
--  specified in the <code>default</code> property.
--  @property           {table} file_data.authors

--- Map of number &rarr; position name.
--  Used in numerical file descriptions, for example a mapping from
--  <code>File:Burgerpants face 5.png</code> to "Burgerpants's fifth face."
--  @property           {table} file_data.numbering

--- Order of type deduction from filename.
--  Screenshots go first because their names are usually the most complex and
--  may include names of other types, which could confuse the file type
--  deduction mechanism.
--  @property           {table} file_data.typeorder

--- Game's name.
--  Because the same base module is used on Deltarune Wiki, where the game's
--  name is "Deltarune."
--  @property           {string} file_data.game
local p = {
    license = {
        fairuse    = 'est protégé par le droit d\'auteur. Il sera utilisé d\'une manière qui relève du [[wikipedia:fr:Fair use|fair use]]  en vertu de la loi américaine sur le droit d\'auteur.',
        music      = 'est un fichier musical créé par [[Toby Fox]], © 2015 Royal Sciences LLC, utilisé sur le wiki avec permission',
        ccbysa     = 'est licensé sous les [https://creativecommons.org/licenses/by-sa/3.0/ Creative Commons Attribution-Share Alike License]',
        pd         = 'est dans le domaine public',
        self       = 'a été téléversé par le photographe ou l\'auteur',
        permission = 'est protégé par le droit d\'auteur. Le détenteur des droits a donné son autorisation pour son utilisation sur le wiki.',
        default    = 'ne contient aucune information sur son statut en matière de droits d\'auteur'
    },
    types = {
        artwork = {
            name     = 'Illustration',
            category = 'Illustration'
        },
        attack = {
            name     = 'screenshot d\'attaque',
            category = 'Screenshots'
        },
        battle = {
            name     = 'Combat',
            category = 'sprites de combat'
        },
        cover = {
            name     = 'illustration de couverture',
            category = 'couverture'
        },
        cutcontent = {
            name     = 'Contenu inutilisé',
            category = 'Fichiers de contenu inutilisé'
        },
        face = {
            name     = 'Visage',
            category = 'Sprites de visage'
        },
        item = {
            name     = 'Objet',
            category = 'Fichiers d\'objet'
        },
        motif = {
            name     = 'Motiv',
            category = 'Fichiers motiv'
        },
        -- TODO: Remove after the leitmotifs -> motifs move.
        leitmotif = {
            name     = 'Motiv',
            category = 'Fichiers motiv'
        },
        location = {
            name     = 'Lieu',
            category = 'Fichiers lieu'
        },
        logo = {
            name     = 'Logo',
            category = 'Logos'
        },
        map = {
            name     = 'Carte',
            category = 'Cartes'
        },
        misc = {
            name     = 'Divers',
            category = 'Fichiers divers'
        },
        music = {
            name     = 'Musique',
            category = 'Audio'
        },
        overworld = {
            name     = 'Overworld',
            category = 'sprites de l\'Overworld sprites'
        },
        photograph = {
            name     = 'Photographie',
            category = 'Photographies'
        },
        screenshot = {
            name     = 'Screenshot',
            category = 'Screenshots'
        },
        soundtrack = {
            name     = 'Bande originale',
            category = 'Fichiers de la bande originale'
        },
        sprite = {
            name     = 'Sprite',
            category = 'Sprites'
        },
        tarot = {
            name     = 'Tarot',
            category = 'Cartes de tarot'
        }
    },
    typeorder = {
        -- Most important due to filename format
        'screenshot',
        -- Rest are sorted alphabetically
        'artwork',
        'attack',
        'battle',
        'cover',
        'cutcontent',
        'face',
        'item',
        'leitmotif',
        'location',
        'logo',
        'map',
        'misc',
        'motif',
        -- Above music due to [[:File:Mettaton overworld musical.gif]]
        'overworld',
        'music',
        'photograph',
        'soundtrack',
        'sprite',
        'tarot'
    },
    authors = {
        ["default"] = '[[Toby Fox]]',
        ["Guzusuru"] = '[[Undertale Developers#Guzusuru|Angela "Guzusuru" Sham]]'
    },
    numbering = {
        'first',
        'second',
        'third',
        'fourth',
        'fifth',
        'sixth',
        'seventh',
        'eighth',
        'ninth',
        'tenth'
    },
    game = 'Undertale'
}

-- License aliases
p.license['fair use']         = p.license.fairuse
p.license['fair']             = p.license.fairuse
p.license['cc-by-sa']         = p.license.ccbysa
p.license['cc by sa']         = p.license.ccbysa
p.license['public domain']    = p.license.pd
p.license['own']              = p.license.self
-- Type aliases
p.types  ['concept']          = p.types.artwork
p.types  ['screen']           = p.types.screenshot
p.types  ['battle sprite']    = p.types.battle
p.types  ['overworld sprite'] = p.types.overworld
p.types  ['miscellaneous']    = p.types.misc
p.types  ['cut']              = p.types.cutcontent
p.types  ['cut content']      = p.types.cutcontent
p.types  ['photo']            = p.types.photograph

return p