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.
Version datée du 24 septembre 2025 à 13:00 par Hiob (discussion | contributions) (Ajout "localité")

La documentation pour ce module peut être créée à Module:Infobox/Configs/doc

local configs = {
    localite = {
        sections = {
            {
                titre = 'Informations Générales',
                champs = {
                    { cle = 'type', label = 'Type' },
                    { cle = 'fondation', label = 'Fondation' },
                    { cle = 'destruction', label = 'Destruction' },
                    { cle = 'fondateur', label = 'Fondateur(s)' },
                    { cle = 'symbole', label = 'Symbole' },
                    { cle = 'statut', label = 'Statut' },
                    { cle = 'x', label = 'Coordonnée X' }, -- Sera automatiquement groupé
                    { cle = 'y', label = 'Coordonnée Y' },
                    { cle = 'z', label = 'Coordonnée Z' }
                }
            },
            {
                titre = 'Organisation Interne',
                champs = {
                    { cle = 'dirigeant', label = 'Dirigeant' },
                    { cle = 'population', label = 'Population' },
                    { cle = 'culte', label = 'Culte' },
                    { cle = 'organisation_rattachee', label = 'Organisation rattachée' }
                }
            },
            {
                titre = 'Économie et Société',
                champs = {
                    { cle = 'activite', label = 'Activité' },
                    { cle = 'ressources', label = 'Ressources' }
                }
            },
            {
                titre = 'Géographie',
                champs = {
                    { cle = 'monde', label = 'Monde' }
                }
            }
        }
    },

    monde = {
        titre = function(args) return args.nom or '{{PAGENAME}}' end,
        image = function(args) 
            if args.image then
                return '[[Fichier:' .. args.image .. '|300px]]'
            end
            return nil
        end,
        sections = {
            {
                titre = 'Spécificités',
                champs = {
                    { cle = 'seed', label = 'Seed' },
                    { cle = 'monde', label = 'Type de monde' },
                    { cle = 'x', label = 'Coordonnée X' }, -- Sera automatiquement groupé
                    { cle = 'y', label = 'Coordonnée Y' }, -- Sera automatiquement groupé
                    { cle = 'z', label = 'Coordonnée Z' }  -- Sera automatiquement groupé
                }
            },
            {
                titre = 'Informations',
                champs = {
                    { cle = 'status', label = 'Status' },
                    { cle = 'difficulte', label = 'Difficulté' }
                }
            }
        }
    }
}

return configs