« Module:Infobox/Configs/Grade » : différence entre les versions
De Nefald
Autres actions
Aucun résumé des modifications |
m icon : shield |
||
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 = 'shield' | |||
}, | |||
image = function(args) | image = function(args) | ||
if args.image then | if args.image then |
Dernière version du 29 septembre 2025 à 17:45
La documentation pour ce module peut être créée à Module:Infobox/Configs/Grade/doc
local config = {
titre = function(args)
return args.nom or '{{PAGENAME}}'
end,
-- Icône avec type et nom
icone = {
type = 'fas', -- ou 'fab', 'far', 'fal', 'fad'
nom = 'shield'
},
image = function(args)
if args.image then
return {
nom = args.image,
taille = args.tailleimage or "300px",
legende = args.legende
}
end
return nil
end,
sections = {
{
titre = 'Informations Générales',
champs = {
{ cle = 'rattachement', label = 'Rattachement' }, -- Agora / conseil
{ cle = 'role', label = 'Role' }, -- Construction / animation
{ cle = 'recrutement', label = 'Recrutement' }, -- Nomination / Candidature
{ cle = 'statut', label = 'Statut' }, -- Actif / Inactif
{ cle = 'derniere_revision', label = 'Dernière révision' } -- Date
}
}
}
}
return config