Module:Infobox/Maison d'édition de livres-jeux
[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 Maison d'édition de livres-jeux.
Utilisation
Fonctions exportables :
fonction(frame)
– description (courte description defonction(frame)
et autres informations pertinentes).fonction2()
– description2 (courte description defonction2()
et autres informations pertinentes).
Autres fonctions :
fonction()
– description2 (courte description defonction()
et autres informations pertinentes).
Modules externes et autres éléments dont ce module a besoin pour fonctionner :
mw.title
– description (courte description expliquant la dépendance de ce module externe).
Exemples
Pour des exemples, voir la page de test permettant de tester diverses modifications apportées.
La documentation de ce module est générée par le modèle {{Documentation module}}.
Elle est incluse depuis sa sous-page de documentation. Veuillez placer les catégories sur cette page-là.
Les éditeurs peuvent travailler dans le bac à sable (créer).
Voir les statistiques d'appel depuis le wikicode sur l'outil wstat et les appels depuis d'autres modules.
local objet = require "Module:Infobox/Fonctions"
local localdata = require "Module:Infobox/Localdata"
local wd = require "Module:Wikidata"
return {
maincolor = "##BFD7FF",
parts = {
objet.title(),
objet.mainimage("Article à illustrer Maison d'édition de livre-jeu", "Defaut 2.svg"),
{type = "table", rows = {
{type = "mixed", label = "Type", value = "type", property = "P2561"},
},
},
{type = "table", title = "Caractéristiques", rows = {
{type = "mixed", label = "Légende", value = "legende", property = "P2096"},
{type = "mixed", label = "Nom complet", value = "nom complet", property = "P1448"},
{type = "mixed", label = "Date de création", value = "date de création", property = "P571"},
{type = "mixed", label = "Date de disparition", value = "legende", property = "P576"},
{type = "mixed", label = "Fondateur(s)", value = "fondateur(s)", property = "P112"},
{type = "mixed", label = "Forme juridique", value = "legende", property = "P1454"},
{type = "mixed", label = "Statut", value = "statut"},
{type = "mixed", label = "Slogan", value = "slogan", property = "P1451"},
{type = "mixed", label = "Dates-clés", value = "dates-clés", wikidata = {property = "P1128", conjtype = 'new line', showdate = true}},
{type = "mixed", label = "Direction actuelle", value = "direction actuelle", property = "P797"},
{type = "mixed", label = "Personnes-clés", value = "personnes-clés", property = "P3342"},
{type = "mixed", label = "Siège (ville)", value = "siège (ville)", property = "P159"},
{type = "mixed", label = "Siège (pays)", value = "siège (pays)", property = "P17"},
{type = "mixed", label = "Filiales", value = "filiales", property = "P355"},
{type = "mixed", label = "Effectif", value = "effectif", wikidata = {property = "P1128", conjtype = 'new line', showdate = true}},
{type = "mixed", label = "Genre littéraire", value = "genre", property = "P136"},
{type = "mixed", label = "Date de dissolution", value = "date de dissolution", property = "P2570"},
{type = "mixed", label = "Langue de publication", value = "langue de publication", property = "P2936"},
{type = "mixed", label = "Mouvement", value = "mouvement", property = "P135"},
{type = "mixed", label = "Distinction(s) reçue(s)", value = "distinctions",
wikidata = {property = 'P166', conjtype = 'new line',rank = 'valid',
statementformat = function(statement)
local operator = wd.formatSnak(statement.mainsnak)
local annee = wd.getFormattedQualifiers(statement, 'P585') -- année de réception du prix
local pour = wd.getFormattedQualifiers(statement, 'P1686') -- reçu pour
local str = operator
if not annee and not pour then
str = str .. "<small> (inconnu)</small>"
elseif (annee and not pour) then
str = str .. " " .. tostring(annee)
elseif (pour and not annee) then
str = str .. " <small>(" .. pour .. ")</small>"
elseif (annee and pour) then
str = str .. " " .. tostring(annee) .. " <small>(pour " .. pour .. ")</small>"
end
return "• " .. str
end
},
},
{type = "mixed", label = "Collections", value = "collections", property = "P527"},
{type = "mixed", label = "Titres phares", value = "titres phares", property = "P800"},
{type = "mixed", label = "Chiffre d'affaires", value = "chiffre d'affaires", wikidata = {property = "P2139", conjtype = 'new line', showdate = true}},
{type = "mixed", label = "Résultat net", value = "résultat net", wikidata = {property = "P2295", conjtype = 'new line', showdate = true}},
{type = "mixed", label = "Diffuseur(s)", value = "diffuseur(s)", property = "P3301"},
{type = "mixed", label = "Partenaire(s)", value = "partenaire(s)", property = "P2652"},
{type = "mixed", label = "Société mère", value = "société mère", property = "P749"},
{type = "mixed", label = "Fiche GROG", value = "GROG", property = "P973"},
{type = "mixed", label = "Fiche planete-ldvelh", value = "planete", property = "P2720"},
{type = "mixed", label = "Site officiel", value = "site officiel", property = "P856"},
},
}
}
}