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

De Nefald
Hiob (discussion | contributions)
*champs
Hiob (discussion | contributions)
Sections
Ligne 3 : Ligne 3 :
         return args.nom or '{{PAGENAME}}'  
         return args.nom or '{{PAGENAME}}'  
     end,
     end,
      
 
     soustitre = function(args)
        return args.soustitre
    end,
 
     image = function(args)  
     image = function(args)  
         if args.image then
         if args.image then
Ligne 14 : Ligne 18 :
         return nil
         return nil
     end,
     end,
   
 
     -- Tous les champs à plat (pas de sections pour l'instant)
     sections = {
    champs = {
         {
         -- Informations Générales
            titre = 'Informations Générales',
        { cle = 'type', label = 'Type' },
            champs = {
        { cle = 'fondation', label = 'Fondation' },
                { cle = 'type', label = 'Type' },
        { cle = 'destruction', label = 'Destruction' },
                { cle = 'fondation', label = 'Fondation' },
        { cle = 'fondateur', label = 'Fondateur(s)' },
                { cle = 'destruction', label = 'Destruction' },
        { cle = 'symbole', label = 'Symbole' },
                { cle = 'fondateur', label = 'Fondateur(s)' },
        { cle = 'statut', label = 'Statut' },
                { cle = 'symbole', label = 'Symbole' },
        { cle = 'x', label = 'Coordonnée X' },
                { cle = 'statut', label = 'Statut' },
        { cle = 'y', label = 'Coordonnée Y' },
                {  
         { cle = 'z', label = 'Coordonnée Z' },
                    cle = 'coordonnees',  
       
                    label = 'Coordonnées',
        -- Organisation Interne
                    format = function(args)
        { cle = 'dirigeant', label = 'Dirigeant' },
                        if args.x and args.y and args.z then
        { cle = 'population', label = 'Population' },
                            return args.x .. ", " .. args.y .. ", " .. args.z
        { cle = 'culte', label = 'Culte' },
                        end
        { cle = 'organisation_rattachee', label = 'Organisation rattachée' },
                        return nil
        { cle = 'gouvernement', label = 'Type de gouvernement' },
                    end
        { cle = 'quartiers', label = 'Quartiers' },
                }
          
            }
        -- Économie et Société
        },
        { cle = 'activite', label = 'Activité' },
         {
        { cle = 'ressources', label = 'Ressources' },
            titre = 'Organisation Interne',
        { cle = 'monnaie', label = 'Monnaie' },
            champs = {
        { cle = 'commerce', label = 'Commerce' },
                { cle = 'dirigeant', label = 'Dirigeant' },
        { cle = 'culture', label = 'Culture' },
                { cle = 'population', label = 'Population' },
        { cle = 'langues', label = 'Langues' },
                { cle = 'culte', label = 'Culte' },
          
                { cle = 'organisation_rattachee', label = 'Organisation rattachée' },
        -- Géographie
                { cle = 'gouvernement', label = 'Type de gouvernement' },
        { cle = 'monde', label = 'Monde' },
                { cle = 'quartiers', label = 'Quartiers' }
        { cle = 'climat', label = 'Climat' },
            }
        { cle = 'biome', label = 'Biome' },
        },
        { cle = 'relief', label = 'Relief' },
         {
        { cle = 'superficie', label = 'Superficie' },
            titre = 'Économie et Société',
        { cle = 'cours_eau', label = 'Cours d\'eau' },
            champs = {
        { cle = 'batiments', label = 'Bâtiments notables' }
                { cle = 'activite', label = 'Activité' },
                { cle = 'ressources', label = 'Ressources' },
                { cle = 'monnaie', label = 'Monnaie' },
                { cle = 'commerce', label = 'Commerce' },
                { cle = 'culture', label = 'Culture' },
                { cle = 'langues', label = 'Langues' }
            }
        },
         {
            titre = 'Géographie',
            champs = {
                { cle = 'monde', label = 'Monde' },
                { cle = 'climat', label = 'Climat' },
                { cle = 'biome', label = 'Biome' },
                { cle = 'relief', label = 'Relief' },
                { cle = 'superficie', label = 'Superficie' },
                { cle = 'cours_eau', label = 'Cours d\'eau' },
                { cle = 'batiments', label = 'Bâtiments notables' }
            }
        }
     }
     }
}
}


return config
return config