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/Organisation » : différence entre les versions

De Nefald
Hiob (discussion | contributions)
m icon : landmark
Aucun résumé des modifications
Ligne 26 : Ligne 26 :
             ['faction'] = {
             ['faction'] = {
                 display = 'Faction',
                 display = 'Faction',
                 category = 'Factions'
                 category = 'Faction'
             },
             },
             ['tribu'] = {
             ['tribu'] = {
                 display = 'Tribu',  
                 display = 'Tribu',  
                 category = 'Tribus'
                 category = 'Tribu'
             },
             },
['ordre'] = {
['ordre'] = {
                 display = 'Ordre',  
                 display = 'Ordre',  
                 category = 'Ordres'
                 category = 'Ordre'
             },
             },
['Guildes'] = {
['guilde'] = {
                 display = 'Guilde',  
                 display = 'Guilde',  
                 category = 'Guildes'
                 category = 'Guilde'
            },
['administration'] = {
                display = 'Administration',
                category = 'Administration'
             }
             }
         },
         },
         errorMessage = 'Type non reconnu. Types autorisés : Tribu, Faction, Ordre, Guilde '
         errorMessage = 'Type non reconnu. Types autorisés : Tribu, Faction, Ordre, Guilde , Administration'
     },
     },



Version du 25 octobre 2025 à 06:34

La documentation pour ce module peut être créée à Module:Infobox/Configs/Organisation/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 = 'landmark'
    },
    
    image = function(args)
        if args.image then
            return {
                nom = args.image,
                taille = args.tailleimage or "250px",
                legende = args.legende
            }
        end
        return nil
    end,
    
        typeField = {
        required = false, -- 
        allowedValues = {
            ['faction'] = {
                display = 'Faction',
                category = 'Faction'
            },
            ['tribu'] = {
                display = 'Tribu', 
                category = 'Tribu'
            },
			['ordre'] = {
                display = 'Ordre', 
                category = 'Ordre'
            },
			['guilde'] = {
                display = 'Guilde', 
                category = 'Guilde'
            },
			['administration'] = {
                display = 'Administration', 
                category = 'Administration'
            }
        },
        errorMessage = 'Type non reconnu. Types autorisés : Tribu, Faction, Ordre, Guilde , Administration'
    },

    sections = {
        {
            titre = 'Informations Générales',
            champs = {
                { cle = 'type', label = 'Type' },
                { cle = 'fondation', label = 'Fondation' },
                { cle = 'dissolution', label = 'Dissolution' },
                { cle = 'fondateurs', label = 'Fondateur(s)' },
                { cle = 'symbole', label = 'Symbole' },
                { cle = 'statut', label = 'Statut' },
                { cle = 'x', label = 'Coordonnée X' },  -- Ces champs seront remplacés automatiquement
                { cle = 'y', label = 'Coordonnée Y' },  -- par l'affichage "Coordonnées" groupé
                { cle = 'z', label = 'Coordonnée Z' }
            }
        },
        {
            titre = 'Organisation Interne',
            champs = {
                { cle = 'dirigeant', label = 'Dirigeant' },
                { cle = 'effectifs', label = 'Effectifs' },
                { cle = 'activite', label = 'Activité' },
                { cle = 'culte', label = 'Culte' }
            }
        },
        {
            titre = 'Géographie',
            champs = {
                { cle = 'territoire', label = 'Territoire d’influence' },
                { cle = 'siege', label = 'Siège' },
                { cle = 'localisation', label = 'Localisation' }
            }
        }
    }
}

return config
Les témoins (''cookies'') nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de témoins.