« Module:Infobox/Configs/Geographie » : différence entre les versions
De Nefald
Autres actions
Aucun résumé des modifications |
Aucun résumé des modifications |
||
| Ligne 23 : | Ligne 23 : | ||
allowedValues = { | allowedValues = { | ||
['supercontinent'] = { | ['supercontinent'] = { | ||
display = ' | display = 'Supercontinent', | ||
category = 'Supercontinent' | category = 'Supercontinent' | ||
}, | }, | ||
Version du 21 octobre 2025 à 08:42
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 d'eau"] = {
display = "Cours deau",
category = "Cour d'eau"
},
['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 Géographie non reconnu. Types autorisés : Monde, Supercontinent,Continent,Région, Océan, Mer, Cours d'eau"
},
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