Module:Activité
Aller à la navigation
Aller à la recherche
La documentation pour ce module peut être créée à Module:Activité/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( 'Situation' )
:addRow( 'Ville', args.ville)
:addRow( 'Région', args.region)
:addRow( 'Département' , args.dep)
:addRow( 'Site internet', args.website)
:addRow( 'Adresse' , args.adresse)
:addRow( 'Téléphone', args.tel)
:addRow( 'Carte', args.webmaps)
:addHeader( 'Accessibilité séjours AVL' )
:addRow( 'Physique', args.physique)
:addRow( 'Sensoriel', args.sensoriel)
:addRow( 'Cognitif', args.cognitif)
return retval
end
return p