Module:Infobox/Évènement réalité
Ce module contient le paramétrage de l'infobox {{Infobox évènement réalité}}.
localdata = require( "Module:Infobox/Localdata" )
-- sujet
local subject = localdata['type'] or 'Évènement'
subjects = {
["evenement"] = "Évènement communautaire",
["grandeur nature"] = "Grandeur nature",
["convention"] = "Convention"
}
subject = subjects[subject] or 'Publication'
return {
parts = {
{ type = 'title', value = 'nom', subtitle = 'sous-titre', icon = 'icône', subhead = { subject = subject }},
{ type = 'images', imageparameters = { 'image', 'image2', 'image3', 'image4', 'image5' }, captionparameter = { 'légende', 'image desc' }},
{ type = 'table', separator = true, rows = {
{ type = 'row', label = 'Organisateur', value = 'organisateur' },
{ type = 'row', label = 'Participants', value = 'participants' },
{ type = 'row', label = 'Date', value = 'date' },
{ type = 'row', label = 'Lieu', value = 'lieu' },
{ type = 'row', label = 'Durée', value = 'durée' },
{ type = 'row', label = 'Format', value = 'format' },
{ type = 'row', label = 'Langues', value = 'langues' },
{ type = 'row', label = 'Site web', value = 'site web' },
}},
{ type = 'table', title = 'Évènement connexes', rows = {
{ type = 'succession', value = {
before = function(localdata) return localdata['précédente'] end,
after = function(localdata) return localdata['suivante'] end
}},
{ type = 'row1col', value = { 'partie de' } }
}},
{ type = 'text', value = 'pied' }
}
}