« Module:Infobox/Configs/Geopolitique » : différence entre les versions
De Nefald
Autres actions
m Ayd a déplacé la page Module:Infobox/Configs/Evenement vers Module:Infobox/Configs/Geopolitique sans laisser de redirection |
m icon : landmark-dome |
||
(4 versions intermédiaires par un autre utilisateur non affichées) | |||
Ligne 3 : | Ligne 3 : | ||
return args.nom or '{{PAGENAME}}' | return args.nom or '{{PAGENAME}}' | ||
end, | end, | ||
-- Icône avec type et nom | |||
icone = { | |||
type = 'fas', -- ou 'fab', 'far', 'fal', 'fad' | |||
nom = 'landmark-dome' | |||
}, | |||
image = function(args) | image = function(args) | ||
if args.image then | if args.image then | ||
Ligne 10 : | Ligne 16 : | ||
return nil | return nil | ||
end, | end, | ||
typeField = { | |||
required = false, -- Optionnel pour les localités | |||
allowedValues = { | |||
['guerre'] = { | |||
display = 'Guerre', | |||
category = 'Guerres' | |||
}, | |||
['traité'] = { | |||
display = 'Traité', | |||
category = 'Traités' | |||
}, | |||
['alliance'] = { | |||
display = 'Alliance', | |||
category = 'Alliances' | |||
}, | |||
['serment'] = { | |||
display = 'Serment', | |||
category = 'Serments' | |||
} | |||
}, | |||
errorMessage = 'Type non reconnu. Types autorisés : Traité, Alliance, Serment,Guerre' | |||
}, | |||
sections = { | sections = { | ||
{ | { |