« Module:Infobox/Configs/Geographie » : différence entre les versions
De Nefald
Autres actions
Aucun résumé des modifications |
map |
||
| Ligne 4 : | Ligne 4 : | ||
end, | end, | ||
-- Icône avec type et nom | -- Icône avec type et nom | ||
icone = { | icone = { | ||
type = 'fas', -- ou 'fab', 'far', 'fal', 'fad' | type = 'fas', -- ou 'fab', 'far', 'fal', 'fad' | ||
nom = ' | nom = 'globe-stand' | ||
}, | }, | ||
image = function(args) | image = function(args) | ||
if args.image then | if args.image then | ||
return | return { | ||
nom = args.image, | |||
taille = args.tailleimage or "300px", | |||
legende = args.legende or args.nom or '{{PAGENAME}}' | |||
} | |||
end | end | ||
return nil | return nil | ||
end, | end, | ||
typeField = { | |||
typeField = { | required = false, -- Optionnel pour les géographies | ||
required = false, -- Optionnel pour les | |||
allowedValues = { | allowedValues = { | ||
['supercontinent'] = { | ['supercontinent'] = { | ||
| Ligne 31 : | Ligne 33 : | ||
}, | }, | ||
["cours d'eau"] = { | ["cours d'eau"] = { | ||
display = "Cours | display = "Cours d'eau", | ||
category = " | category = "Cours d'eau" | ||
}, | }, | ||
['océan'] = { | ['océan'] = { | ||
| Ligne 45 : | Ligne 47 : | ||
display = 'Monde', | display = 'Monde', | ||
category = 'Monde' | category = 'Monde' | ||
}, | |||
['région'] = { | |||
display = 'Région', | |||
category = 'Région' | |||
}, | }, | ||
}, | }, | ||
errorMessage = "Type de Géographie non reconnu. Types autorisés : Monde, Supercontinent,Continent,Région, Océan, Mer, Cours d'eau" | errorMessage = "Type de Géographie non reconnu. Types autorisés : Monde, Supercontinent, Continent, Région, Océan, Mer, Cours d'eau" | ||
}, | }, | ||
sections = { | sections = { | ||
| Ligne 74 : | Ligne 79 : | ||
{ cle = 'monde', label = 'Monde' }, | { cle = 'monde', label = 'Monde' }, | ||
{ cle = 'localisation', label = 'Localisation' }, | { cle = 'localisation', label = 'Localisation' }, | ||
-- Les coordonnées seront affichées automatiquement ici si renseignées | |||
{ cle = 'x', label = 'X' }, -- Masqué si coordonnées complètes | |||
{ cle = 'y', label = 'Y' }, -- Masqué si coordonnées complètes | |||
{ cle = 'z', label = 'Z' }, -- Masqué si coordonnées complètes | |||
{ cle = 'worldname', label = 'Monde technique' }, -- Masqué si coordonnées complètes | |||
{ cle = 'mapname', label = 'Type de carte' }, -- Optionnel, masqué | |||
{ cle = 'zoom', label = 'Zoom' }, -- Optionnel, masqué | |||
} | } | ||
} | } | ||