Jump to content

📣 N’hésitez pas à créer un compte pour contribuer à nos projets !

Module:Lib boîte déroulante

From WikiTatafrik

local p = {}

-- -- Fonctions locales --

local function cadreGeneral( texteBouton )

return '

' -- NavFrame

end

-- -- Fonctions appelables --

function p.boiteDeroulante( canari, titre, texte, couleurBandeau, texteBouton, centrage ) if canari ~= nil then error( 'la fonction « boiteDeroulante » ne doit pas être utilisée directement' ) end

return cadreGeneral( texteBouton ) .. bandeauTitre( couleurBandeau, titre ) .. debutContenu( centrage ) .. (texte or ) .. fermetureDiv() end

function p.boiteDeroulanteDebut( canari, titre, couleurBandeau, texteBouton, centrage ) if canari ~= nil then error( 'la fonction « boiteDeroulanteDebut » ne doit pas être utilisée directement' ) end

return cadreGeneral( texteBouton ) .. bandeauTitre( couleurBandeau, titre ) .. debutContenu( centrage ) end

function p.boiteDeroulanteFin( canari ) if canari ~= nil then error( 'la fonction « boiteDeroulanteFin » ne doit pas être utilisée directement' ) end

return fermetureDiv() end

return p