Modèle:Activité

De AnimAVL
Révision datée du 17 avril 2023 à 09:10 par Patrick (discussion | contributions) (Page créée avec « 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) :addH... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à la navigation Aller à la recherche

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( 'Carte', args.webmaps)
 :addHeader( 'Accessibilité' )
 :addRow( 'séjour bleu', args.bleu)
 :addRow( 'séjour orange', args.orange)
 :addRow( 'Séjour vert', args.vert)
 :addRow( 'séjour violet' , args.violet)


 return retval

end

return p