Module:Avis

De AnimAVL
Révision datée du 27 août 2025 à 15:21 par Alix (discussion | contributions)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à la navigation Aller à la recherche

La documentation pour ce module peut être créée à Module:Avis/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,
  } )


  return retval
end

return p