Module:Infobox/Configs/Geopolitique
De Nefald
Autres actions
La documentation pour ce module peut être créée à Module:Infobox/Configs/Geopolitique/doc
local config = {
titre = function(args)
return args.nom or '{{PAGENAME}}'
end,
image = function(args)
if args.image then
return '[[Fichier:' .. args.image .. '|300px]]'
end
return nil
end,
typeField = {
required = false, -- Optionnel pour les localités
allowedValues = {
['Guerre'] = {
display = 'Guerre',
category = 'Guerres'
},
['Traité'] = {
display = 'Traité',
category = 'Traités'
},
['Alliance'] = {
display = 'Alliance',
category = 'Alliances'
},
['Serment'] = {
display = 'Serment',
category = 'Serments'
}
},
errorMessage = 'Type non reconnu. Types autorisés : Traité, Alliance, Serment,Guerre'
},
sections = {
{
titre = 'Informations générales',
champs = {
{ cle = 'type', label = 'Type' },
{ cle = 'date', label = 'Date' },
{ cle = 'parties', label = 'Parties' },
{ cle = 'lieux', label = 'Lieux' },
}
}
}
}
return config