Module:Chartes/données : Différence entre versions

De Lagny-sur-Marne Wiki
Aller à : navigation, rechercher
Ligne 113 : Ligne 113 :
 
   ["autorail"] = { "E60000", "FF5555", "FFFFFF" },
 
   ["autorail"] = { "E60000", "FF5555", "FFFFFF" },
 
   -- locomotive électrique
 
   -- locomotive électrique
   ["locomotive électrique"] = { "2525A0", "AAAAFA", "FFFFFF" },
+
   ["locomotive électrique"] = { "2020A0", "AAAAFA", "FFFFFF" },
 
   -- automotrice électrique
 
   -- automotrice électrique
 
   ["automotrice électrique"] = { "0033CC", "AAAAFA", "FFFFFF" },
 
   ["automotrice électrique"] = { "0033CC", "AAAAFA", "FFFFFF" },

Version du 14 novembre 2015 à 15:20

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", "A0A0A0", "FFFFFF" },
  -- automotrice à vapeur
  ["automotrice à vapeur"] = { "555555", "A0A0A0", "FFFFFF" },
  -- locomotive thermique
  ["locomotive thermique"] = { "B20000", "FF5555", "FFFFFF" },
  ["locomotive Diesel"] = { "B20000", "FF5555", "FFFFFF" },
  ["locomotive diesel"] = { "B20000", "FF5555", "FFFFFF" },
  -- automotrice thermique
  ["automotrice thermique"] = { "E60000", "FF5555", "FFFFFF" },
  ["automotrice Diesel"] = { "E60000", "FF5555", "FFFFFF" },
  ["automotrice diesel"] = { "E60000", "FF5555", "FFFFFF" },
  ["autorail"] = { "E60000", "FF5555", "FFFFFF" },
  -- locomotive électrique
  ["locomotive électrique"] = { "2020A0", "AAAAFA", "FFFFFF" },
  -- automotrice électrique
  ["automotrice électrique"] = { "0033CC", "AAAAFA", "FFFFFF" },
  -- locomotive / automotrice bimode
  ["locomotrice bimode"] = { "883366", "DA60AA", "FFFFFF" },
  ["automotrice bimode"] = { "883366", "DA60AA", "FFFFFF" },
  -- locotracteur
  ["locotracteur"] = { "407025", "80B050", "FFFFFF" },
  -- automotrice à grande vitesse
  ["automotrice à grande vitesse"] = { "2020A0", "8080F0", "FFFFFF" },
  ["aérotrain"] = { "2020A0", "8080F0", "FFFFFF" },
  ["turbotrain"] = { "2020A0", "8080F0", "FFFFFF" },
  -- automotrice de banlieue
  ["automotrice de banlieue"] = { "2525A0", "8080F0", "FFFFFF" },
  -- automotrice 
  ["automotrice panoramique"] = { " A33380", "DA60AA", "FFFFFF" },
  -- automotrice 
  ["automotrice régionale"] = { "DD0505", "F08080", "FFFFFF" },
  -- train de nuit
  ["train de nuit"] = { "000070", "6060A0", "FFFFFF" },
  ["voiture-lits"] = { "000070", "6060A0", "FFFFFF" },
  ["voiture-couchette"] = { "000070", "6060A0", "FFFFFF" },
  -- autre
  ["vert"] = { "007000", "80DF80", "FFFFFF" },
  ["métro"] = { "1E8858", "80CFA0", "FFFFFF" },
  ["tramway"] = { "1E8858", "80CFA0", "FFFFFF" },
  ["voiture-discothèque"] = { "252550", "6060A0", "FFFFFF" },
  ["voiture d'express"] = { "35652b", "80B050", "FFFFFF" },
  ["voiture régionale"] = { "707090", "A0A0D0", "FFFFFF" },
  [" rame de banlieue"] = { "708070", "A0D0A0", "FFFFFF" },
  ["wagon"] = { "803000", "A07000", "FFFFFF" },
  ["voiture-salon"] = { "804000", "A07000", "FFFFFF" },
  ["voiture panoramique"] = { "A33380", "DA60AA", "FFFFFF" },
  ["fourgon postal"] = { "AAAA00", "D0B060", "FFFFFF" },
  ["train international"] = { "D02700", "F08080", "FFFFFF" },
  ["TEE"] = { "D02700", "F08080", "FFFFFF" },
  ["voiture internationale"] = { "D02700", "F08080", "FFFFFF" },
  ["voiture-restaurant"] = { "D00000", "F08080", "FFFFFF" },
  ["voiture-buffet"] = { "D00000", "F08080", "FFFFFF" },
  ["voiture-bar"] = { "D00000", "F08080", "FFFFFF" },
  -- vert ["locomotive thermique"] = { "208030", "80DF80", "FFFFFF" },
  -- beige ["locomotive électrique"] = { "808050", "B0A070", "FFFFFF" },
}

-- 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