Module:Infobox/Groupe de musique
Apparence
[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 Groupe de musique.
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 (créer).
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' )
--local wikidata = require( 'Module:Wikidata' )
local localisation = require "Module:Infobox/Fonctions/Géolocalisation"
local displayFormat = { 'musique', nil, '#cdc1c5', '#cdc1c5', '#000000', 'defaut' }
return {
maincolor = displayFormat[3],
secondcolor = displayFormat[4],
thirdcolor = displayFormat[5],
parts = {
general.title(displayFormat[1], displayFormat[2], 'nom', nil, false),
{
type = 'images',
imageparameters = 'image1',
captionparameter = 'légende1',
wikidata = { property = 'P18' },
numval = 1,
},
{ type = 'images', imageparameters = 'image2', captionparameter = 'légende2' },
{ type = 'images', imageparameters = 'image3', captionparameter = 'légende3' },
{
type = 'table',
title = 'Informations générales',
rows = {
{ type = 'row', label = 'Surnom', value = 'surnom', wikidata = { property = 'P242', showonlyqualifier = 'P1545' } },
{ type = 'row', label = 'Nom officiel', value = 'Nom officiel', wikidata = { property = 'P1448', showonlyqualifier = 'P1448' } },
{ type = 'row', label = 'Pays d\'origine', value = 'pays origine', wikidata = { property = 'P495' }, blockers = {'pays'} },
{ type = 'row', label = 'Localisation', value = 'localisation', wikidata = { property = 'P740' } },
localisation.coordinates(),
{ type = 'row', label = 'Pays', value = 'pays', wikidata = { property = 'P17' } },
{ type = 'row', label = 'Genre', value = 'genre', wikidata = { property = 'P136' } },
{ type = 'row', label = 'Instrument', value = 'instrument', wikidata = { property = 'P1303' } },
{ type = 'row', label = 'Date d\'activité', value = 'début d\'activité', wikidata = { property = 'P2031' } },
{ type = 'row', label = 'Date de création', value = 'date de création', wikidata = { property = 'P571' } },
{ type = 'row', label = 'Date de fin', value = 'date de fin', wikidata = { property = 'P576' } },
{ type = 'row', label = 'Date de fin', value = 'date de fin', wikidata = { property = 'P582' } },
{ type = 'row', label = 'Fondé par', value = 'fondé par', wikidata = { property = 'P112' } },
{ type = 'row', label = 'Langue', value = 'langue', wikidata = { property = 'P1412' } },
{ type = 'row', label = 'Label', value = 'label', wikidata = { property = 'P264' } },
{ type = 'row', label = 'Influences', value = 'influences', wikidata = { property = 'P737' } },
{ type = 'row', label = 'Site web', value = { 'site web', 'description' }, wikidata = { property = 'P856', displayformat = 'weblink', showlang = true } },
}
},
{
type = 'table',
title = 'Composition du groupe',
rows = {
{ type = 'row', label = 'Membres', value = 'membres', wikidata = { property = 'P527' } },
{ type = 'row', label = 'Membres actuels', value = 'membres actuels' },
{ type = 'row', label = 'Membres additionnels', value = 'membres additionnels' },
{ type = 'row', label = 'Ex membres', value = 'ex membres' },
{ type = 'row', label = 'Interprète', value = 'interprète', wikidata = { property = 'P175' } },
}
},
{
type = 'table',
title = 'Discographie',
rows = {
{ type = 'row', label = 'Discographie', value = 'discographie' },
}
}
}
}