Basculer le menu
Changer de menu des préférences
Basculer le menu personnel
Non connecté(e)
Votre adresse IP sera visible au public si vous faites des modifications.

« Module:Infobox/Configs/Geographie » : différence entre les versions

De Nefald
Page créée avec « local config = { titre = function(args) return args.nom or '{{PAGENAME}}' end, image = function(args) if args.image then return '300px' end return nil end, sections = { { titre = 'Informations générales', champs = { { cle = 'type', label = 'Type' }, { cle = 'climat', label = 'Climat' },... »
 
Hiob (discussion | contributions)
m icon : map
 
Ligne 4 : Ligne 4 :
     end,
     end,


   
    -- Icône avec type et nom
    icone = {
        type = 'fas',  -- ou 'fab', 'far', 'fal', 'fad'
        nom = 'map'
    },
   
     image = function(args)
     image = function(args)
         if args.image then
         if args.image then

Dernière version du 29 septembre 2025 à 17:47

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