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,
typeField = {
required = false, -- Optionnel pour les géographie
allowedValues = {
['supercontinent'] = {
display = 'supercontinent',
category = 'Supercontinent'
},
['continent'] = {
display = 'Continent',
category = 'Continent'
},
['cours deau'] = {
display = 'Cours deau',
category = 'Cour deau'
},
['océan'] = {
display = 'Mers & Océans',
category = 'Mers & Océans'
},
['mer'] = {
display = 'Mers & Océans',
category = 'Mers & Océans'
},
['monde'] = {
display = 'Monde',
category = 'Monde'
},
},
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 = '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