Module:Infobox/Configs/Ouvrage
De Nefald
Autres actions
La documentation pour ce module peut être créée à Module:Infobox/Configs/Ouvrage/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 = 'book'
},
image = function(args)
if args.image then
return '[[Fichier:' .. args.image .. '|300px]]'
end
return nil
end,
sections = {
{
titre = 'Informations générales',
champs = {
{ cle = 'auteur', label = 'Auteur' },
{ cle = 'date', label = "Date d'écriture" },
{ cle = 'type', label = 'Type' },
{ cle = 'categorie', label = 'Catégorie' },
}
}
}
}
return config