Module:Hébergement

De AnimAVL
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)


  return retval
end

return p