Module:Infobox/Configs
De Nefald
Autres actions
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 = '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