Module:Hébergement
Aller à la navigation
Aller à la recherche
La documentation pour ce module peut être créée à Module:Hébergement/doc
local capiunto = require 'capiunto' local p = {} function p.main(frame) local args = frame:getParent().args local headerStyle if args.headerstyle and args.headerstyle ~= '' then headerStyle = string.format('background-color:%s;', args.headerstyle) else headerStyle = 'background-color:lightgreen;' end local retval = capiunto.create( { title = args.titre, headerStyle = headerStyle, } ) :addImage( args.image, args.soustitre) :addHeader( 'Informations générales' ) :addRow( 'Ville', args.ville) :addRow( 'Type d’hébergement', args.type) :addRow( 'Emplacement', args.emplacement) :addRow( 'Site internet', args.siteinternet) :addHeader( 'Informations pratiques' ) return retval end return p