« Module:Infobox/Configs » : différence entre les versions
De Nefald
Autres actions
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 15 : | Ligne 15 : | ||
{ cle = 'monde', label = 'Type de monde' }, | { cle = 'monde', label = 'Type de monde' }, | ||
{ cle = 'spawn', label = 'Spawn' }, -- Champ spécial pour les coordonnées | { cle = 'spawn', label = 'Spawn' }, -- Champ spécial pour les coordonnées | ||
} | } | ||
}, | }, |
Version du 24 septembre 2025 à 12:46
La documentation pour ce module peut être créée à Module:Infobox/Configs/doc
local configs = {
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 = 'spawn', label = 'Spawn' }, -- Champ spécial pour les coordonnées
}
},
{
titre = 'Informations',
champs = {
{ cle = 'status', label = 'Status' },
{ cle = 'difficulte', label = 'Difficulté' }
}
}
}
}
}
return configs