Module:Infobox/Configs/Geographie
De Nefald
Autres actions
La documentation pour ce module peut être créée à Module:Infobox/Configs/Geographie/doc
local config = {
titre = function(args)
return args.nom or '{{PAGENAME}}'
end,
-- Icône avec type et nom
icone = {
type = 'fas', -- ou 'fab', 'far', 'fal', 'fad'
nom = 'map'
},
image = function(args)
if args.image then
return '[[Fichier:' .. args.image .. '|300px]]'
end
return nil
end,
sections = {
{
titre = 'Informations générales',
champs = {
{ cle = 'type', label = 'Type' },
{ cle = 'climat', label = 'Climat' },
{ cle = 'statut', label = 'Statut' },
}
},
{
titre = 'Habitants et culture',
champs = {
{ cle = 'controle', label = 'Contrôle' },
{ cle = 'langues', label = 'Langues' },
{ cle = 'cultes', label = 'Cultes' },
{ cle = 'capitale', label = 'Capitale' },
}
},
{
titre = 'Localisation',
champs = {
{ cle = 'monde', label = 'Monde' },
{ cle = 'localisation', label = 'Localisation' },
}
}
}
}
return config