« Module:Infobox/Configs/Ouvrage » : différence entre les versions
De Nefald
Autres actions
Page créée avec « local config = { titre = function(args) return args.nom or '{{PAGENAME}}' end, image = function(args) if args.image then return '300px' end return nil end, sections = { { titre = 'Informations générales', champs = { { cle = 'auteur', label = 'Auteur' }, { cle = 'date', label = "Date d'écriture" },... » |
m icon : book |
||
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 = 'book' | |||
}, | |||
image = function(args) | image = function(args) | ||
if args.image then | if args.image then |