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/Edifice » : 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 = 'fonction', label = 'Fonction' }, { cle = 'date_construction', label = 'Date d... »
 
Hiob (discussion | contributions)
m icon : vihara
 
(Une version intermédiaire par le même utilisateur non affichée)
Ligne 3 : Ligne 3 :
         return args.nom or '{{PAGENAME}}'
         return args.nom or '{{PAGENAME}}'
     end,
     end,
 
   
    -- Icône avec type et nom
    icone = {
        type = 'fas',  -- ou 'fab', 'far', 'fal', 'fad'
        nom = 'vihara'
    },
   
     image = function(args)
     image = function(args)
         if args.image then
         if args.image then

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

La documentation pour ce module peut être créée à Module:Infobox/Configs/Edifice/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 = 'vihara'
    },
    
    image = function(args)
        if args.image then
            return '[[Fichier:' .. args.image .. '|300px]]'
        end
        return nil
    end,

    sections = {
        {
            titre = 'Informations générales',
            champs = {
                { cle = 'fonction', label = 'Fonction' },
                { cle = 'date_construction', label = 'Date de construction' },
                { cle = 'date_destruction', label = 'Date de destruction' },
                { cle = 'createur', label = 'Créateur' },
                { cle = 'statut', label = 'Statut' },
            }
        },
        {
            titre = 'Divers',
            champs = {
                { cle = 'culte', label = 'Culte' },
                { cle = 'organisation', label = 'Organisation rattachée' },
            }
        },
        {
            titre = 'Géographie',
            champs = {
                { cle = 'monde', label = 'Monde' },
                { cle = 'emplacement', label = 'Emplacement' },
                { cle = 'localisation', label = 'Localisation' },
                { cle = 'x', label = 'Coordonnée X' },
                { cle = 'y', label = 'Coordonnée Y' },
                { cle = 'z', label = 'Coordonnée Z' },
            }
        }
    }
}

return config