« Module:Infobox/Configs » : différence entre les versions
De Nefald
Autres actions
Aucun résumé des modifications |
Aucun résumé des modifications |
||
| Ligne 1 : | Ligne 1 : | ||
local configs = { | local configs = { | ||
monde = { | monde = { | ||
titre = function(args) return args.nom or ' | titre = function(args) return args.nom or '{{PAGENAME}}' end, | ||
image = function(args) | image = function(args) | ||
if args.image then | if args.image then | ||
| Ligne 10 : | Ligne 10 : | ||
sections = { | sections = { | ||
{ | { | ||
titre = 'Spécificités', | |||
champs = { | champs = { | ||
{ cle = 'seed', label = 'Seed' }, | { cle = 'seed', label = 'Seed' }, | ||
{ cle = 'monde', label = 'Type de monde' }, | { cle = 'monde', label = 'Type de monde' }, | ||
{ cle = 'spawn', label = 'Spawn' }, -- Champ spécial pour les coordonnées | |||
{ cle = 'x', label = 'Coordonnée X' }, | { cle = 'x', label = 'Coordonnée X' }, | ||
{ cle = 'y', label = 'Coordonnée Y' }, | { cle = 'y', label = 'Coordonnée Y' }, | ||
| Ligne 21 : | Ligne 23 : | ||
titre = 'Informations', | titre = 'Informations', | ||
champs = { | champs = { | ||
{ cle = 'status', label = ' | { cle = 'status', label = 'Status' }, | ||
{ cle = 'difficulte', label = 'Difficulté' } | { cle = 'difficulte', label = 'Difficulté' } | ||
} | } | ||