Module:Infobox/Texte
Sauter à la navigation
Sauter à la recherche
La documentation pour ce module peut être créée à Module:Infobox/Texte/doc
local texte = require "Module:Infobox/Fonctions" local function incipit(s) if not s then return end return "« " .. s .. "… »" end local function explicit(s) if not s then return end return "« …" .. s .. " »" end return { maincolor = '#C4698F', parts = { { type = 'title', value = 'titre', icon = 'auteur', }, texte.mainimage('Article à illustrer Poème'), { type = 'table', title = 'Informations générales', rows = { { type = 'mixed', label = 'Titre', plurallabel = 'Titres', value = 'titre', property = 'P1476' }, { type = 'mixed', label = 'Sous-titre', plurallabel = 'Sous-titres', value = 'sous-titre', property = 'P1680' }, { type = 'mixed', label = 'Titre de travail', plurallabel = 'Titres de travail', value = 'titre de travail', property = 'P1638' }, { type = 'mixed', label = 'Nommé en référence à', value = 'nommé en référence à', property = 'P138' }, { type = 'mixed', label = 'Auteur', plurallabel = 'Auteurs', value = 'auteur', property = 'P50' }, { type = 'mixed', label = 'Créateur présumé', plurallabel = 'Créateurs présumés', value = 'créateurs présumés', property = 'P1779' }, { type = 'mixed', label = 'Préfacier', plurallabel = 'Préfaciers', value = 'préfacier', property = 'P2679' }, { type = 'mixed', label = 'Postfacier', plurallabel = 'Postfaciers', value = 'postfacier', property = 'P2680' }, { type = 'mixed', label = 'Scénariste', plurallabel = 'Scénaristes', value = 'scénariste', property = 'P58' }, { type = 'mixed', label = 'Librettiste', plurallabel = 'Librettistes', value = 'librettiste', property = 'P87' }, { type = 'mixed', label = 'Collaborateur', plurallabel = 'Collaborateurs', value = 'collaborateur', property = 'P767' }, { type = 'mixed', label = 'Pays d\'origine', value = 'pays d\'origine', property = 'P495' }, { type = 'mixed', label = 'Commanditaire', plurallabel = 'Commanditaires', value = 'commanditaire', property = 'P88', }, { type = 'mixed', label = 'Langue', plurallabel = 'Langues', value = 'langue', property = 'P364', }, { type = 'mixed', label = 'Création', value = 'création', property = 'P571', }, { type = 'mixed', label = 'Orateur', plurallabel = 'Orateurs', value = 'orateur', property = 'P823', }, { type = 'mixed', label = 'Lieu', plurallabel = 'Lieux', value = 'lieu', property = 'P276', }, { type = 'mixed', label = 'Lieu de la première', plurallabel = 'Lieux de la première', value = 'lieu de la première', property = 'P1191', }, { type = 'mixed', label = 'Durée', plurallabel = 'Durée', value = 'durée', property = 'P2047', }, { type = 'mixed', label = 'Diffuseur', plurallabel = 'Diffuseurs', value = 'diffuseur', property = 'P449', }, { type = 'mixed', label = 'Publication', plurallabel = 'Publications', value = 'publication', property = 'P1433', }, { type = 'mixed', label = 'Lieu de publication', plurallabel = 'Lieux de publication', value = 'lieu de publication', property = 'P291', }, { type = 'mixed', label = 'Éditeur', plurallabel = 'Éditeurs', value = 'éditeur', property = 'P123', }, { type = 'mixed', label = 'Éditeur scientifique', plurallabel = 'Éditeurs scientifiques', value = 'éditeur scientifique', property = 'P98', }, { type = 'mixed', label = 'Recto', value = 'recto', property = 'P2682', }, { type = 'mixed', label = 'Verso', value = 'verso', property = 'P2681', }, { type = 'mixed', label = 'Nombre de pages', value = 'pages', property = 'P1104', }, { type = 'mixed', label = 'Police d\'écriture', plurallabel = 'Polices d\'écriture', value = 'police', property = 'P2739', }, { type = 'mixed', label = 'Date', plurallabel = 'Dates', value = 'date', property = 'P577', }, { type = 'mixed', label = 'Type', plurallabel = 'Types', value = 'type', property = 'P136', }, { type = 'mixed', label = 'Mouvement', plurallabel = 'Mouvements', value = 'mouvement', property = 'P135', }, { type = 'mixed', label = 'Idéologie', plurallabel = 'Idéologies', value = 'idéologie', property = 'P1142', }, { type = 'mixed', label = 'Illustrateur', plurallabel = 'Illustrateurs', value = 'illustrateur', property = 'P110', }, { type = 'mixed', label = 'Dédicataire', plurallabel = 'Dédicataires', value = 'dédicataire', property = 'P825', }, { type = 'mixed', label = 'Destinataire', plurallabel = 'Destinataires', value = 'destinataire', property = 'P1817', }, { type = 'mixed', label = 'Dépositaire', plurallabel = 'Dépositaires', value = 'dépositaire', property = 'P2058', }, { type = 'mixed', label = 'Cible', plurallabel = 'Cibles', value = 'cible', property = 'P2360', }, { type = 'mixed', label = 'Inspiré de', value = 'inspiré de', property = 'P941', }, { type = 'mixed', label = 'Adapté de', value = 'adapté de', property = 'P144', }, { type = 'mixed', label = 'Série', plurallabel = 'Séries', value = 'série', property = 'P179', }, { type = 'mixed', label = 'Numéro dans la série', value = 'numéro dans la série', property = 'P1545', }, { type = 'mixed', label = 'Précédé par', value = 'précédé par', property = 'P155', }, { type = 'mixed', label = 'Suivi par', value = 'suivi par', property = 'P156', }, { type = 'mixed', label = 'Traducteur', plurallabel = 'Traducteurs', value = 'traducteur', property = 'P655', }, { type = 'mixed', label = 'ISBN-10', value = 'ISBN-10', property = 'P957', }, { type = 'mixed', label = 'ISBN-13', value = 'ISBN-13', property = 'P212', }, { type = 'mixed', label = 'Distinction', plurallabel = 'Distinctions', value = 'distinction', property = 'P166', }, { type = 'mixed', label = 'Texte intégral', value = 'texte intégral', property = 'P953', }, { type = 'mixed', label = 'Licence', plurallabel = 'Licences', value = 'licence', property = 'P275', }, { type = 'mixed', label = 'Site officiel', plurallabel = 'Sites officiels', value = 'site officiel', property = 'P856', }, }, }, { type = 'table', title = 'Contenu', rows = { { type = 'mixed', label = 'Structure', value = 'structure', wikidata = {property = 'P2635', showqualifiers = 'P518'} }, { type = 'mixed', label = 'Narrateur', plurallabel = 'Narrateurs', value = 'narrateur', property = 'P2438', }, { type = 'mixed', label = 'Dépeint', value = 'dépeint', property = 'P180' }, { type = 'mixed', label = 'Personnage', plurallabel = 'Personnages', value = 'dépeint', property = 'P674' }, { type = 'mixed', label = 'Liste des personnages', value = 'liste des personnages', property = 'P1881' }, { type = 'mixed', label = 'Univers', value = 'univers', property = 'P1434' }, { type = 'mixed', label = 'Époque de l\'action', plurallabel = 'Époques de l\'action', value = 'époque', property = 'P2408' }, { type = 'mixed', label = 'Lieu de l\'action', plurallabel = 'Lieux de l\'action', value = 'lieu de l\'action', property = 'P840' }, { type = 'mixed', label = 'Sujet', plurallabel = 'Sujets', value = 'sujet', property = 'P921' }, { type = 'mixed', label = 'Aarne-Thompson-Uther', value = 'Aarne-Thompson-Uther', property = 'P2540' }, { type = 'mixed', label = 'Incipit', value = function ( localdata ) return incipit(localdata["incipit"]) end, wikidata = {property = 'P1922', displayformat = function(v) return incipit(v.datavalue.value.text) end} }, { type = 'mixed', label = 'Explicit', value = function ( localdata ) return explicit(localdata["incipit"]) end, wikidata = {property = 'P3132', displayformat = function(v) return explicit(v.datavalue.value.text) end} }, }, }, { type = 'images', style = {['padding-top'] = '25px'},--{['border-width'] = '10px', ['border-style'] = 'solid'}, label = 'Audio', captionparameter = 'légende audio', value = 'audio', property = 'P51', numval = 1, }, }, }