« Module:Infobox/Configs » : différence entre les versions
De Nefald
Autres actions
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 |
Aucun résumé des modifications Balises : Modification par mobile Modification par le web mobile |
||
Ligne 1 : | Ligne 1 : | ||
local configs = { | |||
construction = { | |||
title = " | sections = { | ||
{ | |||
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" | {key = "fonction", label = "Fonction"}, | ||
{key = "monde", label = "Monde", | {key = "monde", label = "Monde", link = true}, | ||
{key = "ville", label = "Ville", | {key = "ville", label = "Ville", link = true}, | ||
{key = "guilde", label = "Guilde", | {key = "guilde", label = "Guilde", link = true}, | ||
{key = " | {key = "coordonnees", label = "Coordonnées"} | ||
} | } | ||
}, | }, | ||
monde = { | monde = { | ||
title = " | sections = { | ||
{ | |||
title = "Informations techniques", | |||
fields = {"seed", "type", "status", "difficulte"} | |||
}, | |||
{ | |||
title = "Géographie", | |||
fields = {"coordonnees"} | |||
} | |||
}, | |||
fields = { | fields = { | ||
{key = "seed", label = "Seed | {key = "seed", label = "Seed"}, | ||
{key = "type", label = "Type"}, | {key = "type", label = "Type"}, | ||
{key = "status", label = "Status" | {key = "status", label = "Status"}, | ||
{key = "difficulte", label = "Difficulté" | {key = "difficulte", label = "Difficulté"}, | ||
{key = " | {key = "coordonnees", label = "Coordonnées"} | ||
} | } | ||
}, | }, | ||
ville = { | ville = { | ||
title = " | 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 = { | fields = { | ||
{key = "fondation", label = "Fondation"}, | {key = "fondation", label = "Fondation"}, | ||
{key = "bourgmestre", label = "Bourgmestre"}, | {key = "bourgmestre", label = "Bourgmestre"}, | ||
{key = "guilde", label = "Guilde(s)" | {key = "guilde", label = "Guilde(s)"}, | ||
{key = "spec", label = "Spécificité(s)"}, | {key = "spec", label = "Spécificité(s)"}, | ||
{key = "projet", label = "Projet" | {key = "projet", label = "Projet"}, | ||
{key = "production", label = "Production" | {key = "production", label = "Production"}, | ||
{key = "commerce", label = "Liens commerciaux" | {key = "commerce", label = "Liens commerciaux"}, | ||
{key = "monde", label = "Monde", | {key = "monde", label = "Monde", link = true}, | ||
{key = "region", label = "Région(s)" | {key = "region", label = "Région(s)"}, | ||
{key = " | {key = "coordonnees", label = "Coordonnées"}, | ||
{key = " | {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 = { | sections = { | ||
{title = "Informations | { | ||
{ | title = "Informations", | ||
{title = " | 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