Module:Infobox/Titre de livre-jeu
Aller à la navigation
Aller à la recherche
La documentation pour ce module peut être créée à Module:Infobox/Titre de livre-jeu/doc
local objet = require 'Module:Infobox/Fonctions' local wd = require 'Module:Wikidata' return { maincolor = "#E8E8E8", parts = { objet.title(), objet.mainimage("Article à illustrer Titre 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 = "Image", plurallabel = "Images", value = "image", property = "P18"}, {type = "mixed", label = "Légende", value = "legende", property = "P2096"}, {type = "mixed", label = "Support de publication", plurallabel = "Support", value = "support", property = "P31"}, {type = "mixed", label = "Langue originale", value = "langueVO", property = "P364"}, {type = "mixed", label = "Pays d'origine", value = "paysVO", property = "P495"}, {type = "mixed", label = "Titre en VO", value = "titreVO", property = "P1476"}, {type = "mixed", label = "Série", value = "serie", wikidata = {property = 'P361', conjtype = 'new line', rank = 'valid', statementformat = function(statement) local operator = wd.formatSnak(statement.mainsnak) local serie = wd.getFormattedQualifiers(statement, 'P1545') -- numéro dans la série local serie1 = tonumber (serie) local str = operator if not serie then str = str .. "<small> (inconnu)</small>" else str = str .. "<small> (volume ".. tostring(serie1)..")</small>" end return "• " .. str end }, }, {type = "mixed", label = "Précédé par", value = "precedepar", property = "P155"}, {type = "mixed", label = "Suivi de", value = "suivide", property = "P156"}, {type = "mixed", label = "Collection", value = "collection", property = "P1433"}, {type = "mixed", label = "Auteur(s)", value = "auteur", property = "P50"}, {type = "mixed", label = "Illustrateur de la couverture", value = "illcouverture", property = "P736"}, {type = "mixed", label = "Illustrateur intérieur", value = "illinterieur", property = "P110"}, {type = "mixed", label = "Nombre d'illustrations", value = "nbillustrations", property = "P1164"}, {type = "mixed", label = "Distinction(s) reçue(s)", value = "distinction", wikidata = {property = 'P166', rank = 'valid', conjtype = 'new line', showqualifiers = {'P585'}}}, {type = "mixed", label = "Date de parution", value = "parution", property = "P577"}, {type = "mixed", label = "Éditeur(s)", value = "editeur", property = "P123"}, {type = "mixed", label = "Traducteur", value = "traducteur", property = "P655"}, {type = "mixed", label = "Genre littéraire", value = "genre", property = "P136"}, {type = "mixed", label = "ISBN 13", value = "ISBN13", property = "P212"}, {type = "mixed", label = "ISBN 10", value = "ISBN10", property = "P957"}, {type = "mixed", label = "prix", value = "prix", property = "P2284"}, {type = "mixed", label = "Système de règles", value = "regles", property = "P4151"}, {type = "mixed", label = "Nombre de sections", value = "nbsections", property = "P2635"}, {type = "mixed", label = "Fiche planete-ldvelh", value = "planete", property = "P2720"}, }, } } }