Module:Chartes/données : Différence entre versions
Ligne 102 : | Ligne 102 : | ||
["locomotive à vapeur"] = { "222222", "808080", "ffffff" }, | ["locomotive à vapeur"] = { "222222", "808080", "ffffff" }, | ||
-- locomotive thermique | -- locomotive thermique | ||
− | ["locomotive | + | ["locomotive thermique"] = { "208030", "80df80", "ffffff" }, |
− | ["locomotive | + | ["locomotive Diesel"] = { "208030", "80df80", "ffffff" }, |
− | ["locomotive | + | ["locomotive diesel"] = { "208030", "80df80", "ffffff" }, |
-- locomotive électrique | -- locomotive électrique | ||
− | ["locomotive électrique"] = { "808050", "b0a070", " | + | ["locomotive électrique"] = { "808050", "b0a070", "ffffff" }, |
− | -- automotrice | + | -- automotrice à grande vitesse |
["automotrice à grande vitesse"] = { "2020a0", "8080f0", "000000" }, | ["automotrice à grande vitesse"] = { "2020a0", "8080f0", "000000" }, | ||
+ | -- automotrice | ||
["automotrice électrique"] = { "2525a0", "8080f0", "000000" }, | ["automotrice électrique"] = { "2525a0", "8080f0", "000000" }, | ||
["automotrice de banlieue"] = { "2525a0", "8080f0", "000000" }, | ["automotrice de banlieue"] = { "2525a0", "8080f0", "000000" }, | ||
+ | -- automotrice | ||
["automotrice bimode"] = { "883366", "da60aa", "000000" }, | ["automotrice bimode"] = { "883366", "da60aa", "000000" }, | ||
+ | -- automotrice | ||
["automotrice panoramique"] = { " a33380", "da60aa", "000000" }, | ["automotrice panoramique"] = { " a33380", "da60aa", "000000" }, | ||
+ | -- automotrice | ||
["automotrice régionale"] = { "dd0505", "f08080", "000000" }, | ["automotrice régionale"] = { "dd0505", "f08080", "000000" }, | ||
− | -- | + | -- train de nuit |
+ | ["train de nuit"] = { "000070", "6060a0", "000000" }, | ||
["voiture-lits"] = { "000070", "6060a0", "000000" }, | ["voiture-lits"] = { "000070", "6060a0", "000000" }, | ||
["voiture-couchette"] = { "000070", "6060a0", "000000" }, | ["voiture-couchette"] = { "000070", "6060a0", "000000" }, | ||
− | + | -- autre | |
["vert"] = { "007000", "80df80", "000000" }, | ["vert"] = { "007000", "80df80", "000000" }, | ||
["métro"] = { "1e8858", "80cfa0", "000000" }, | ["métro"] = { "1e8858", "80cfa0", "000000" }, |
Version du 14 novembre 2015 à 14:33
La documentation pour ce module peut être créée à Module:Chartes/données/doc
--[[ Données pour le module Chartes, contenant les couleurs (primaire, secondaire) en fonction du "type" d'infobox --]] -- les données local data = {} --[[ une table à double entrée : index principal : le type d'infobox dedans : indice 1 : couleur primaire indice 2 : couleur secondaire ... Note : toutes les tables *doivent* avoir une valeur "défaut" Voir ci-dessous le type "test" pour un exemple --]] --[[ Test ]]-- -- la charte ci-dessous correspond au paramètre "infobox=test". -- À noter : il n'est pas possible ainsi d'avoir des accents. Si besoin utiliser la notation : -- data["le nom avec espaces et accents"] = { … } data.test = { -- ceci est un… test -- une entrée "défaut" est obligatoire dans votre table ["défaut"] = { "FFFFFF", "EEEEEE" }, -- chaque entrée doit avoir au moins deux champs (type 'string') -- s'il existe plusieurs noms pour la même chose l'entrée doit contenir une chaîne -- correspondant au nom cible (ici "default" → "défaut"). Attention : on ne peut pas -- faire un redirect vers un redirect (comme dans WP :)). ["default"] = "défaut", -- accessible grâce au paramètre "type=cat1" ["cat1"] = { "AAAAAA", "AAAA00" }, -- accessible grâce au paramètre "type=cat1" ["cat2"] = { "777777", "777700" }, } -- Pour le modèle Modèle:Titre section data.titre = { ["default"] = { "C2DFFF" }, ["défaut"] = { "C2DFFF" }, -- version en français ["black"] = { "2e3436" }, ["blue"] = { "C2DFFF" }, ["bright_red"] = { "ff0000" }, ["bright red"] = { "ff0000" }, ["dark_blue"] = { "000080" }, ["dark blue"] = { "000080" }, ["dark_green"] = { "008000" }, ["dark green"] = { "008000" }, ["french_beige"] = { "c8ad7f" }, ["french beige"] = { "c8ad7f" }, ["green"] = { "b8ecbe" }, ["grey"] = { "b0b0b0" }, ["orange"] = { "ffc070" }, ["pink"] = { "ff64e3" }, ["purple"] = { "dbbce8" }, ["red"] = { "ffc2c2" }, ["yellow"] = { "faea73" }, } -- Pour le modèle Modèle:Liste des épisodes en animation data.episode = { ["default"] = { "BBCCFF", "DDEEFF" }, ["défaut"] = { "BBCCFF", "DDEEFF" }, -- version en français ["0"] = { "0080FF", "B2FFFF" }, ["1"] = { "B00000", "FFB2B2" }, ["2"] = { "E0D000", "FFFF99" }, ["3"] = { "007000", "BDFFB2" }, ["4"] = { "B00090", "EFAAC2" }, } -- Pour l'infobox Biographie data.biographie = { -- valeurs par défaut ["default"] = { "EEEEFF", "EEEEFF", "000000" }, ["défaut"] = { "EEEEFF", "EEEEFF", "000000" }, -- version en français -- Animation et bande dessinée asiatiques ["animation et bande dessinée asiatiques"] = { "80DDBF", "B0FFD0", "000000" }, ["abda"] = { "80DDBF", "B0FFD0", "000000" }, -- Littérature ["littérature"] = { "4C6099", "7090E0", "FFFFFF" }, -- Politicien ["politicien"] = { "4682B4", "B0C4DE", "FFFFFF" }, ["chef d'état"] = { "0033CC", "BFC5F9", "FFFFFF" }, ["chef de gouvernement"] = { "6688FF", "E1E1FF", "FFFFFF" }, ["conseiller fédéral suisse"] = { "FF0000", "FFDDDD", "FFFFFF" }, ["gouverneur"] = { "B0C4DE", "BFC5F9", "000000" }, ["monarque"] = { "000080", "BFC5F9", "FFFFFF" }, ["pharaon"] = { "AAAA80", "CCCCAA", "FFFFFF" }, -- Pornographie ["pornographie"] = { "FF66B3", "FFA0EE", "000000" }, ["érotisme"] = { "FF66B3", "FFA0EE", "000000" }, ["pornstar"] = { "FF66B3", "FFA0EE", "000000" }, ["playmate"] = { "FF66B3", "FFA0EE", "000000" }, ["playboy"] = { "FF66B3", "FFA0EE", "000000" }, } -- Pour l'infobox Matériel ferrroviaire data.materiel_ferroviaire = { -- valeurs par défaut ["default"] = { "ADADAD", "EEEEFF", "000000" }, ["défaut"] = { "ADADAD", "EEEEFF", "000000" }, -- version en français -- locomotive à vapeur ["locomotive à vapeur"] = { "222222", "808080", "ffffff" }, -- locomotive thermique ["locomotive thermique"] = { "208030", "80df80", "ffffff" }, ["locomotive Diesel"] = { "208030", "80df80", "ffffff" }, ["locomotive diesel"] = { "208030", "80df80", "ffffff" }, -- locomotive électrique ["locomotive électrique"] = { "808050", "b0a070", "ffffff" }, -- automotrice à grande vitesse ["automotrice à grande vitesse"] = { "2020a0", "8080f0", "000000" }, -- automotrice ["automotrice électrique"] = { "2525a0", "8080f0", "000000" }, ["automotrice de banlieue"] = { "2525a0", "8080f0", "000000" }, -- automotrice ["automotrice bimode"] = { "883366", "da60aa", "000000" }, -- automotrice ["automotrice panoramique"] = { " a33380", "da60aa", "000000" }, -- automotrice ["automotrice régionale"] = { "dd0505", "f08080", "000000" }, -- train de nuit ["train de nuit"] = { "000070", "6060a0", "000000" }, ["voiture-lits"] = { "000070", "6060a0", "000000" }, ["voiture-couchette"] = { "000070", "6060a0", "000000" }, -- autre ["vert"] = { "007000", "80df80", "000000" }, ["métro"] = { "1e8858", "80cfa0", "000000" }, ["tramway"] = { "1e8858", "80cfa0", "000000" }, ["voiture-discothèque"] = { "252550", "6060a0", "000000" }, ["voiture d'express"] = { "35652b", "80b050", "000000" }, ["locotracteur"] = { "407025", "80b050", "000000" }, ["voiture régionale"] = { "707090", "a0a0d0", "000000" }, [" rame de banlieue"] = { "708070", "a0d0a0", "000000" }, ["wagon"] = { "803000", "a07000", "000000" }, ["voiture-salon"] = { "804000", "a07000", "000000" }, ["voiture panoramique"] = { "a33380", "da60aa", "000000" }, ["fourgon postal"] = { "aaaa00", "d0b060", "000000" }, ["train international"] = { "d02700", "f08080", "000000" }, ["TEE"] = { "d02700", "f08080", "000000" }, ["voiture internationale"] = { "d02700", "f08080", "000000" }, ["autorail"] = { "dd0505", "f08080", "000000" }, ["voiture-restaurant"] = { "d00000", "f08080", "000000" }, ["voiture-buffet"] = { "d00000", "f08080", "000000" }, ["voiture-bar"] = { "d00000", "f08080", "000000" }, } -- Pour les infobox Musique (œuvre) et Musique (artiste) data.musique = { -- valeurs par défaut ["default"] = { "DFE4FB", "DFE4FB" }, ["défaut"] = { "DFE4FB", "DFE4FB" }, -- version en français -- Album ["album"] = { "B0C4DE", "B0C4DE" }, ["album studio"] = { "B0C4DE", "B0C4DE" }, -- Live ["live"] = { "FFCC99", "FFCC99" }, ["album live"] = { "FFCC99", "FFCC99" }, -- EP ["maxi"] = { "FFBA9F", "FFBA9F" }, ["extended play"] = { "FFBA9F", "FFBA9F" }, ["ep"] = { "FFBA9F", "FFBA9F" }, -- Compilation ["best of"] = { "E9C6B0", "E9C6B0" }, ["best-of"] = { "E9C6B0", "E9C6B0" }, ["mixtape"] = { "E9C6B0", "E9C6B0" }, ["compilation"] = { "E9C6B0", "E9C6B0" }, -- Remix ["remix"] = { "FFDAB9", "FFDAB9" }, -- Vidéo ["dvd"] = { "DCDCDC", "DCDCDC" }, ["vidéo"] = { "DCDCDC", "DCDCDC" }, -- Bande originale ["musique de film"] = { "99CCCC", "99CCCC" }, ["bande originale"] = { "99CCCC", "99CCCC" }, ["bo"] = { "99CCCC", "99CCCC" }, -- Single ["single"] = { "F4DCB6", "F4DCB6" }, ["simple"] = { "F4DCB6", "F4DCB6" }, -- Single promotionnel ["single promotionnel"] = { "DFE4FB", "DFE4FB" }, -- Chanson ["chanson"] = { "DFE4FB", "DFE4FB" }, -- Vocal ["vocal"] = { "B6CCDE", "B6CCDE" }, -- Groupe ["groupe"] = { "CDC1C5", "CDC1C5" }, -- Instrumentiste ["instrumentiste"] = { "D2C6B6", "D2C6B6" }, -- Arrière scène ["arrière scène"] = { "B4CDCD", "B4CDCD" }, } -- Pour l'infobox Roche data.roche = { -- valeurs par défaut ["default"] = { "8C8C8C", "A0A0A0", "FFFFFF" }, ["défaut"] = { "8C8C8C", "A0A0A0", "FFFFFF" }, -- version en français -- Roche magmatique ["roche magmatique"] = { "F49F13", "F4AF53", "000000" }, -- Roche sédimentaire ["roche sédimentaire"] = { "D39C9C", "E3BCBC", "000000" }, ["roche sedimentaire"] = { "D39C9C", "E3BCBC", "000000" }, -- Roche métamorphique ["roche métamorphique"] = { "DEAA87", "EECAA7", "000000" }, ["roche metamorphique"] = { "DEAA87", "EECAA7", "000000" }, } -- Pour l'infobox Réseau de transport en commun data.transport_en_commun = { -- valeurs par défaut ["default"] = { "ADADAD", "EEEEFF", "000000" }, ["défaut"] = { "ADADAD", "EEEEFF", "000000" }, -- version en français -- Ligne à grande vitesse ["ligne à grande vitesse"] = { "B20000", "FF5555", "FFFFFF" }, ["[[ligne à grande vitesse]]"] = { "B20000", "FF5555", "FFFFFF" }, ["lgv"] = { "B20000", "FF5555", "FFFFFF" }, ["[[lgv]]"] = { "B20000", "FF5555", "FFFFFF" }, -- Transport express régional ["transport express régional"] = { "CC0000", "FF5555", "FFFFFF" }, ["train"] = { "CC0000", "FF5555", "FFFFFF" }, ["ter"] = { "CC0000", "FF5555", "FFFFFF" }, ["[[transport express régional]]"] = { "CC0000", "FF5555", "FFFFFF" }, ["[[train]]"] = { "CC0000", "FF5555", "FFFFFF" }, ["[[ter]]"] = { "CC0000", "FF5555", "FFFFFF" }, -- Réseau express régional ["réseau express régional"] = { "E60000", "FF5555", "FFFFFF" }, ["rer"] = { "E60000", "FF5555", "FFFFFF" }, ["[[réseau express régional]]"] = { "E60000", "FF5555", "FFFFFF" }, ["[[rer]]"] = { "E60000", "FF5555", "FFFFFF" }, -- Métropolitain ["métropolitain"] = { "FF0000", "FF5555", "FFFFFF" }, ["métro"] = { "FF0000", "FF5555", "FFFFFF" }, ["metro"] = { "FF0000", "FF5555", "FFFFFF" }, ["métro sur pneumatiques"] = { "FF0000", "FF5555", "FFFFFF" }, ["[[métropolitain]]"] = { "FF0000", "FF5555", "FFFFFF" }, ["[[métro]]"] = { "FF0000", "FF5555", "FFFFFF" }, ["[[metro]]"] = { "FF0000", "FF5555", "FFFFFF" }, ["[[métro sur pneumatiques]]"] = { "FF0000", "FF5555", "FFFFFF" }, -- Métro léger ["métro léger"] = { "CC7D29", "DEA76F", "000000" }, ["[[métro léger]]"] = { "CC7D29", "DEA76F", "000000" }, -- Tramway ["tramway"] = { "ABAB38", "CFCF70", "000000" }, ["tram"] = { "ABAB38", "CFCF70", "000000" }, ["[[tramway]]"] = { "ABAB38", "CFCF70", "000000" }, ["[[tram]]"] = { "ABAB38", "CFCF70", "000000" }, -- Tram-train ["tram-train"] = { "AB7338", "DEA76F", "FFFFFF" }, ["[[tram-train]]"] = { "AB7338", "DEA76F", "FFFFFF" }, -- Funiculaire ["funiculaire"] = { "CC7D29", "DEA76F", "000000" }, ["[[funiculaire]]"] = { "CC7D29", "DEA76F", "000000" }, -- Autobus ["autobus"] = { "7F7F3F", "B5B55A", "FFFFFF" }, ["bus"] = { "7F7F3F", "B5B55A", "FFFFFF" }, ["bus urbain"] = { "7F7F3F", "B5B55A", "FFFFFF" }, ["[[autobus]]"] = { "7F7F3F", "B5B55A", "FFFFFF" }, ["[[bus]]"] = { "7F7F3F", "B5B55A", "FFFFFF" }, ["[[autobus|bus]]"] = { "7F7F3F", "B5B55A", "FFFFFF" }, ["[[autobus|bus urbain]]"] = { "7F7F3F", "B5B55A", "FFFFFF" }, -- Bus à haut niveau de service ["bus à haut niveau de service"] = { "B8B832", "CFCF70", "000000" }, ["bhns"] = { "B8B832", "CFCF70", "000000" }, ["busway"] = { "B8B832", "CFCF70", "000000" }, ["[[bus à haut niveau de service]]"] = { "B8B832", "CFCF70", "000000" }, ["[[bhns]]"] = { "B8B832", "CFCF70", "000000" }, ["[[busway]]"] = { "B8B832", "CFCF70", "000000" }, -- Navette fluviale ["navette fluviale"] = { "8080FF", "AAAAFA", "FFFFFF" }, ["bateau"] = { "8080FF", "AAAAFA", "FFFFFF" }, ["bateau-bus"] = { "8080FF", "AAAAFA", "FFFFFF" }, ["[[navette fluviale]]"] = { "8080FF", "AAAAFA", "FFFFFF" }, ["[[bateau]]"] = { "8080FF", "AAAAFA", "FFFFFF" }, ["[[bateau-bus]]"] = { "8080FF", "AAAAFA", "FFFFFF" }, -- Express côtier ["express côtier"] = { "0033CC", "AAAAFA", "FFFFFF" }, ["[[express côtier]]"] = { "0033CC", "AAAAFA", "FFFFFF" }, -- Vélos en libre-service ["vélo en libre-service"] = { "B9DC14", "D9F073", "000000" }, ["vélo en libre service"] = { "B9DC14", "D9F073", "000000" }, ["vélos en libre-service"] = { "B9DC14", "D9F073", "000000" }, ["vélos en libre service"] = { "B9DC14", "D9F073", "000000" }, ["vélo en libre-service et location longue durée"] = { "B9DC14", "D9F073", "000000" }, ["vélos en libre-service et location longue durée"] = { "B9DC14", "D9F073", "000000" }, ["vélopartage"] = { "B9DC14", "D9F073", "000000" }, ["velopartage"] = { "B9DC14", "D9F073", "000000" }, ["[[vélo en libre-service]]"] = { "B9DC14", "D9F073", "000000" }, ["[[vélo en libre service]]"] = { "B9DC14", "D9F073", "000000" }, ["[[vélos en libre-service]]"] = { "B9DC14", "D9F073", "000000" }, ["[[vélos en libre service]]"] = { "B9DC14", "D9F073", "000000" }, ["[[vélo en libre-service]] et location longue durée"] = { "B9DC14", "D9F073", "000000" }, ["[[vélos en libre-service]] et location longue durée"] = { "B9DC14", "D9F073", "000000" }, ["[[vélopartage]]"] = { "B9DC14", "D9F073", "000000" }, ["[[velopartage]]"] = { "B9DC14", "D9F073", "000000" }, } -- on retourne les données return data