« Module:Infobox/Chaîne de télévision » : différence entre les versions
Apparence
Contenu supprimé Contenu ajouté
m P154 pour le logo |
Aucun résumé des modifications |
||
(7 versions intermédiaires par 4 utilisateurs non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
local general = require "Module:Infobox/Fonctions" |
local general = require "Module:Infobox/Fonctions" |
||
local localdata = require "Module:Infobox/Localdata" |
|||
-- {titre charte, élément wikidata, couleur titre fond, couleur texte, pictogramme} |
-- {titre charte, élément wikidata, couleur titre fond, couleur texte, pictogramme} |
||
local displayformat = {'television', 'Q289', '#80D0FF', '#FFFFFF', 'television'} |
local displayformat = {'television', 'Q289', '#80D0FF', '#FFFFFF', 'television'} |
||
local function couleurimpose()--permet d'empêcher le fonctionnement de couleur texte obligeant un passage sur texte noir |
|||
localdata['couleur texte'] = displayformat[4] |
|||
end |
|||
local function couleurtitre() |
|||
if not localdata['texte noir'] then |
|||
⚫ | |||
else |
|||
titre=general.title(displayformat[5]) |
|||
end |
|||
return titre |
|||
end |
|||
-- Partie principale |
-- Partie principale |
||
Ligne 12 : | Ligne 28 : | ||
parts = |
parts = |
||
{ |
{ |
||
couleurimpose(), |
|||
⚫ | |||
couleurtitre(), |
|||
general.mainimage{cat = "Article à illustrer Chaîne de télévision", size = '150', --[[upright='0.7'--]] wikidata = {property= 'P154'}}, |
general.mainimage{cat = "Article à illustrer Chaîne de télévision", size = '150', --[[upright='0.7'--]] wikidata = {property= 'P154'}}, |
||
{type = 'table', title = "Caractéristiques", |
{type = 'table', title = "Caractéristiques", |
||
Ligne 18 : | Ligne 35 : | ||
{type = 'row', label = "Création", value = 'création', wikidata = {property = "P571", showsource = true}}, |
{type = 'row', label = "Création", value = 'création', wikidata = {property = "P571", showsource = true}}, |
||
{type = 'row', label = "Disparition", value = 'disparition', wikidata = {property = "P576", showsource = true}}, |
{type = 'row', label = "Disparition", value = 'disparition', wikidata = {property = "P576", showsource = true}}, |
||
{type = 'row', label = "Propriétaire", value = |
{type = 'row', label = "Propriétaire", value = 'propriétaire', wikidata = {property = "P127", showsource = true}}, |
||
{type = 'row', label = "Slogan", value = 'slogan', wikidata = {property = "P1451", showsource = true}}, |
{type = 'row', label = "Slogan", value = 'slogan', wikidata = {property = "P1451", showsource = true}}, |
||
{type = 'row', label = "Format d\'image", value = 'format d\'image'}, |
{type = 'row', label = "Format d\'image", value = 'format d\'image'}, |
||
Ligne 24 : | Ligne 41 : | ||
{type = 'row', label = "Pays", value = 'pays', wikidata = {property = "P17", showsource = true}}, |
{type = 'row', label = "Pays", value = 'pays', wikidata = {property = "P17", showsource = true}}, |
||
{type = 'row', label = "Statut", value = 'statut'}, |
{type = 'row', label = "Statut", value = 'statut'}, |
||
{type = 'row', label = "Signification de l\'indicatif", value = 'indicatif'}, |
|||
{type = 'row', label = "Siège social", value = 'siège', wikidata = {property = "P159", showsource = true}}, |
|||
{type = 'row', label = "Ancien nom", value = 'ancien nom'}, |
{type = 'row', label = "Ancien nom", value = 'ancien nom'}, |
||
{type = 'row', label = "Chaîne sœur", value = 'chaîne sœur'}, |
{type = 'row', label = "Chaîne sœur", value = 'chaîne sœur'}, |
||
Ligne 46 : | Ligne 64 : | ||
{type = 'table', title = 'Chronologie', |
{type = 'table', title = 'Chronologie', |
||
rows = { |
rows = { |
||
{type = ' |
{type = 'navigator', previousval = 'précédent', previouswikidata = {property = 'P1365'}, nextval = 'suivant', nextwikidata = {property = 'P1366'}, inner = true } |
||
}, |
}, |
||
}, |
}, |
Dernière version du 30 août 2023 à 17:20
[voir] [modifier] [historique] [purger]
Cette page définit un module d'infobox. Pour les conseils sur l'usage de ce module, voyez Modèle:Infobox Chaîne de télévision.
La documentation de ce module est générée par le modèle {{Documentation module}}.
Elle est incluse depuis la page Modèle:Documentation module d'infobox. Veuillez placer les catégories sur cette page-là.
Les éditeurs peuvent travailler dans le bac à sable (modifier).
Voir les statistiques d'appel depuis le wikicode sur l'outil wstat et les appels depuis d'autres modules.
local general = require "Module:Infobox/Fonctions"
local localdata = require "Module:Infobox/Localdata"
-- {titre charte, élément wikidata, couleur titre fond, couleur texte, pictogramme}
local displayformat = {'television', 'Q289', '#80D0FF', '#FFFFFF', 'television'}
local function couleurimpose()--permet d'empêcher le fonctionnement de couleur texte obligeant un passage sur texte noir
localdata['couleur texte'] = displayformat[4]
end
local function couleurtitre()
if not localdata['texte noir'] then
titre=general.title(displayformat[5], {['color'] = '#000000'})
else
titre=general.title(displayformat[5])
end
return titre
end
-- Partie principale
return
{
maincolor = displayformat[3],
thirdcolor = displayformat[4],
parts =
{
couleurimpose(),
couleurtitre(),
general.mainimage{cat = "Article à illustrer Chaîne de télévision", size = '150', --[[upright='0.7'--]] wikidata = {property= 'P154'}},
{type = 'table', title = "Caractéristiques",
rows = {
{type = 'row', label = "Création", value = 'création', wikidata = {property = "P571", showsource = true}},
{type = 'row', label = "Disparition", value = 'disparition', wikidata = {property = "P576", showsource = true}},
{type = 'row', label = "Propriétaire", value = 'propriétaire', wikidata = {property = "P127", showsource = true}},
{type = 'row', label = "Slogan", value = 'slogan', wikidata = {property = "P1451", showsource = true}},
{type = 'row', label = "Format d\'image", value = 'format d\'image'},
{type = 'row', label = "Langue", value = 'langue', wikidata = {property = "P2936", showsource = true}},
{type = 'row', label = "Pays", value = 'pays', wikidata = {property = "P17", showsource = true}},
{type = 'row', label = "Statut", value = 'statut'},
{type = 'row', label = "Signification de l\'indicatif", value = 'indicatif'},
{type = 'row', label = "Siège social", value = 'siège', wikidata = {property = "P159", showsource = true}},
{type = 'row', label = "Ancien nom", value = 'ancien nom'},
{type = 'row', label = "Chaîne sœur", value = 'chaîne sœur'},
{type = 'row', label = "Site web", value = {'site web','site internet'}, wikidata = {property = "P856", showsource = true}},
},
},
{type = 'table', title = "Diffusion",
rows = {
{type = 'row', label = "Analogique", value = 'diffusion analogique'},
{type = 'row', label = "Numérique", value = 'diffusion numérique'},
{type = 'row', label = "Satellite", value = 'diffusion satellite'},
{type = 'row', label = "Câble", value = 'diffusion câble'},
{type = 'row', label = "[[Télévision IP|IPTV]]", value = {'diffusion IPTV','diffusion ADSL'}},
{type = 'row', label = "Web", value = 'diffusion web'},
{type = 'row', label = "Aire", value = 'aire diffusion'},
{type = 'row', label = "Diffusion", value = 'diffusion'},
},
},
{type = 'table', title = 'Chronologie',
rows = {
{type = 'navigator', previousval = 'précédent', previouswikidata = {property = 'P1365'}, nextval = 'suivant', nextwikidata = {property = 'P1366'}, inner = true }
},
},
}
}