« Module:Infobox/Évènement réalité » : différence entre les versions

Page créée avec « localdata = require( "Module:Infobox/Localdata" ) -- sujet local subject = localdata['type'] or 'Évènement' subjects = { ["evenement"] = "Évènement communautaire", ["gn"] = "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'... »
 
Aucun résumé des modifications
 
Ligne 5 : Ligne 5 :
subjects = {
subjects = {
["evenement"] = "Évènement communautaire",
["evenement"] = "Évènement communautaire",
["gn"] = "Grandeur nature",
["grandeur nature"] = "Grandeur nature",
["convention"] = "Convention"
["convention"] = "Convention"
}
}

Dernière version du 7 mai 2026 à 22:06

Documentation du module

Ce module contient le paramétrage de l'infobox {{Infobox évènement réalité}}.

Documentation transclues de Module:Infobox/Évènement réalité/doc.
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' }
	}
}