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 = {
['ville'] = {
display = 'Guerre',
category = 'Guerres'
},
['village'] = {
display = 'Traité',
category = 'Traités'
},
['village'] = {
display = 'Alliance',
category = 'Alliances'
},
['village'] = {
display = 'Serment',
category = 'Serments'
}
},
errorMessage = 'Type de localité non reconnu. Types autorisés : ville, village, cité, capitale, port, forteresse, château, ruine, avant-poste, campement, métropole, sanctuaire'
},
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