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

De Nefald
Hiob (discussion | contributions)
Page créée avec « return { edifice = { title = "Edifice", headerColor = "#D2691E", -- Couleur construction headerClass = "edifice", fields = { {key = "auteur", label = "Auteur"}, {key = "fonction", label = "Fonction", optional = true}, {key = "monde", label = "Monde", format = "link", optional = true}, {key = "ville", label = "Ville", format = "link", optional = true}, {key = "guilde",... »
Balises : Modification par mobile Modification par le web mobile
 
Hiob (discussion | contributions)
Aucun résumé des modifications
Balises : Modification par mobile Modification par le web mobile
Ligne 1 : Ligne 1 :
return {
local configs = {
     edifice = {
     construction = {
         title = "Edifice",
         sections = {
        headerColor = "#D2691E", -- Couleur construction
            {
        headerClass = "edifice",
                title = "Définition",
                fields = {"auteur", "fonction"}
            },
            {
                title = "Géographie",
                fields = {"monde", "ville", "guilde", "coordonnees"}
            }
        },
         fields = {
         fields = {
             {key = "auteur", label = "Auteur"},
             {key = "auteur", label = "Auteur"},
             {key = "fonction", label = "Fonction", optional = true},
             {key = "fonction", label = "Fonction"},
             {key = "monde", label = "Monde", format = "link", optional = true},
             {key = "monde", label = "Monde", link = true},
             {key = "ville", label = "Ville", format = "link", optional = true},
             {key = "ville", label = "Ville", link = true},
             {key = "guilde", label = "Guilde", format = "link", optional = true},
             {key = "guilde", label = "Guilde", link = true},
             {key = "x", label = "X", optional = true},
             {key = "coordonnees", label = "Coordonnées"}
            {key = "y", label = "Y", optional = true},
            {key = "z", label = "Z", optional = true}
        },
        sections = {
            {title = "Définition", fields = {"auteur", "fonction"}},
            {title = "Géographie", fields = {"monde", "ville", "guilde", "coordonnees"}}
         }
         }
     },
     },
 
   
     monde = {
     monde = {
         title = "Monde",
         sections = {
        headerColor = "#86C705",
            {
        headerClass = "monde",
                title = "Informations techniques",
                fields = {"seed", "type", "status", "difficulte"}
            },
            {
                title = "Géographie",
                fields = {"coordonnees"}
            }
        },
         fields = {
         fields = {
             {key = "seed", label = "Seed", format = "seed"},
             {key = "seed", label = "Seed"},
             {key = "type", label = "Type"},
             {key = "type", label = "Type"},
             {key = "status", label = "Status", optional = true},
             {key = "status", label = "Status"},
             {key = "difficulte", label = "Difficulté", optional = true},
             {key = "difficulte", label = "Difficulté"},
             {key = "x", label = "X", optional = true},
             {key = "coordonnees", label = "Coordonnées"}
            {key = "y", label = "Y", optional = true},
            {key = "z", label = "Z", optional = true},
            {key = "monde", label = "Monde", optional = true}
        },
        sections = {
            {title = "Spécificités", fields = {"seed", "type", "spawn"}},
            {title = "Autres infos", fields = {"status", "difficulte"}}
         }
         }
     },
     },
 
   
     ville = {
     ville = {
         title = "Ville",
         sections = {
        headerColor = "#20B2AA", -- Couleur ville (à définir selon votre CSS)
            {
        headerClass = "ville",
                title = "Informations générales",
                fields = {"fondation", "bourgmestre", "guilde", "spec", "projet"}
            },
            {
                title = "Économie",
                fields = {"production", "commerce"}
            },
            {
                title = "Géographie",
                fields = {"monde", "region", "coordonnees", "biome"}
            }
        },
         fields = {
         fields = {
             {key = "fondation", label = "Fondation"},
             {key = "fondation", label = "Fondation"},
             {key = "bourgmestre", label = "Bourgmestre"},
             {key = "bourgmestre", label = "Bourgmestre"},
             {key = "guilde", label = "Guilde(s)", optional = true},
             {key = "guilde", label = "Guilde(s)"},
             {key = "spec", label = "Spécificité(s)"},
             {key = "spec", label = "Spécificité(s)"},
             {key = "projet", label = "Projet", optional = true},
             {key = "projet", label = "Projet"},
             {key = "production", label = "Production", optional = true},
             {key = "production", label = "Production"},
             {key = "commerce", label = "Liens commerciaux", optional = true},
             {key = "commerce", label = "Liens commerciaux"},
             {key = "monde", label = "Monde", format = "link", optional = true},
             {key = "monde", label = "Monde", link = true},
             {key = "region", label = "Région(s)", optional = true},
             {key = "region", label = "Région(s)"},
             {key = "biome", label = "Biome(s)", optional = true},
             {key = "coordonnees", label = "Coordonnées"},
             {key = "x", label = "X", optional = true},
             {key = "biome", label = "Biome(s)"}
             {key = "y", label = "Y", optional = true},
        }
            {key = "z", label = "Z", optional = true},
    },
             {key = "carte", label = "Carte", optional = true},
   
             {key = "taillecarte", label = "Taille carte", optional = true}
    personnage = {
        sections = {
             {
                title = "Informations générales",
                fields = {"surnom", "race", "classe", "niveau"}
            },
             {
                title = "Affiliation",
                fields = {"guilde", "origine"}
             }
         },
         },
        fields = {
            {key = "surnom", label = "Surnom"},
            {key = "race", label = "Race"},
            {key = "classe", label = "Classe"},
            {key = "niveau", label = "Niveau"},
            {key = "guilde", label = "Guilde", link = true},
            {key = "origine", label = "Origine"}
        }
    },
   
    roleplay = {
         sections = {
         sections = {
             {title = "Informations générales", fields = {"fondation", "bourgmestre", "guilde", "spec", "projet"}},
             {
             {title = "Économie", fields = {"production", "commerce"}},
                title = "Informations",
             {title = "Géographie", fields = {"carte", "monde", "region", "coordonnees", "biome"}}
                fields = {"maitre_jeu", "participants", "duree", "statut"}
            }
        },
        fields = {
            {key = "maitre_jeu", label = "Maître du jeu"},
            {key = "participants", label = "Participants"},
             {key = "duree", label = "Durée"},
            {key = "statut", label = "Statut"}
        }
    },
   
    plugin = {
        sections = {
             {
                title = "Informations techniques",
                fields = {"version", "auteur", "compatibilite", "dependances"}
            }
        },
        fields = {
            {key = "version", label = "Version"},
            {key = "auteur", label = "Auteur"},
            {key = "compatibilite", label = "Compatibilité"},
            {key = "dependances", label = "Dépendances"}
         }
         }
     }
     }
}
}
return configs

Version du 23 septembre 2025 à 16:45

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

local configs = {
    construction = {
        sections = {
            {
                title = "Définition",
                fields = {"auteur", "fonction"}
            },
            {
                title = "Géographie",
                fields = {"monde", "ville", "guilde", "coordonnees"}
            }
        },
        fields = {
            {key = "auteur", label = "Auteur"},
            {key = "fonction", label = "Fonction"},
            {key = "monde", label = "Monde", link = true},
            {key = "ville", label = "Ville", link = true},
            {key = "guilde", label = "Guilde", link = true},
            {key = "coordonnees", label = "Coordonnées"}
        }
    },
    
    monde = {
        sections = {
            {
                title = "Informations techniques",
                fields = {"seed", "type", "status", "difficulte"}
            },
            {
                title = "Géographie",
                fields = {"coordonnees"}
            }
        },
        fields = {
            {key = "seed", label = "Seed"},
            {key = "type", label = "Type"},
            {key = "status", label = "Status"},
            {key = "difficulte", label = "Difficulté"},
            {key = "coordonnees", label = "Coordonnées"}
        }
    },
    
    ville = {
        sections = {
            {
                title = "Informations générales",
                fields = {"fondation", "bourgmestre", "guilde", "spec", "projet"}
            },
            {
                title = "Économie",
                fields = {"production", "commerce"}
            },
            {
                title = "Géographie",
                fields = {"monde", "region", "coordonnees", "biome"}
            }
        },
        fields = {
            {key = "fondation", label = "Fondation"},
            {key = "bourgmestre", label = "Bourgmestre"},
            {key = "guilde", label = "Guilde(s)"},
            {key = "spec", label = "Spécificité(s)"},
            {key = "projet", label = "Projet"},
            {key = "production", label = "Production"},
            {key = "commerce", label = "Liens commerciaux"},
            {key = "monde", label = "Monde", link = true},
            {key = "region", label = "Région(s)"},
            {key = "coordonnees", label = "Coordonnées"},
            {key = "biome", label = "Biome(s)"}
        }
    },
    
    personnage = {
        sections = {
            {
                title = "Informations générales",
                fields = {"surnom", "race", "classe", "niveau"}
            },
            {
                title = "Affiliation",
                fields = {"guilde", "origine"}
            }
        },
        fields = {
            {key = "surnom", label = "Surnom"},
            {key = "race", label = "Race"},
            {key = "classe", label = "Classe"},
            {key = "niveau", label = "Niveau"},
            {key = "guilde", label = "Guilde", link = true},
            {key = "origine", label = "Origine"}
        }
    },
    
    roleplay = {
        sections = {
            {
                title = "Informations",
                fields = {"maitre_jeu", "participants", "duree", "statut"}
            }
        },
        fields = {
            {key = "maitre_jeu", label = "Maître du jeu"},
            {key = "participants", label = "Participants"},
            {key = "duree", label = "Durée"},
            {key = "statut", label = "Statut"}
        }
    },
    
    plugin = {
        sections = {
            {
                title = "Informations techniques",
                fields = {"version", "auteur", "compatibilite", "dependances"}
            }
        },
        fields = {
            {key = "version", label = "Version"},
            {key = "auteur", label = "Auteur"},
            {key = "compatibilite", label = "Compatibilité"},
            {key = "dependances", label = "Dépendances"}
        }
    }
}

return configs