« Module:Infobox/Configs » : différence entre les versions
De Nefald
Autres actions
Aucun résumé des modifications Balises : Modification par mobile Modification par le web mobile |
Aucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
local configs = { | local configs = { | ||
monde = { | monde = { | ||
titre = function(args) return args.nom or 'Monde sans nom' end, | |||
image = function(args) | |||
if args.image then | |||
return '[[Fichier:' .. args.image .. '|300px]]' | |||
end | |||
return nil | |||
end, | |||
sections = { | sections = { | ||
{ | { | ||
champs = { | |||
{ cle = 'seed', label = 'Seed' }, | |||
{ cle = 'monde', label = 'Type de monde' }, | |||
{ cle = 'x', label = 'Coordonnée X' }, | |||
{ cle = 'y', label = 'Coordonnée Y' }, | |||
{ cle = 'z', label = 'Coordonnée Z' } | |||
} | |||
}, | }, | ||
{ | { | ||
titre = 'Informations', | |||
champs = { | |||
{ cle = 'status', label = 'Statut' }, | |||
{ cle = 'difficulte', label = 'Difficulté' } | |||
} | |||
} | } | ||
} | } | ||
} | } |
Version du 23 septembre 2025 à 19:39
La documentation pour ce module peut être créée à Module:Infobox/Configs/doc
local configs = {
monde = {
titre = function(args) return args.nom or 'Monde sans nom' end,
image = function(args)
if args.image then
return '[[Fichier:' .. args.image .. '|300px]]'
end
return nil
end,
sections = {
{
champs = {
{ cle = 'seed', label = 'Seed' },
{ cle = 'monde', label = 'Type de monde' },
{ cle = 'x', label = 'Coordonnée X' },
{ cle = 'y', label = 'Coordonnée Y' },
{ cle = 'z', label = 'Coordonnée Z' }
}
},
{
titre = 'Informations',
champs = {
{ cle = 'status', label = 'Statut' },
{ cle = 'difficulte', label = 'Difficulté' }
}
}
}
}
}
return configs