Modul:EinklappHilfsSkripte: Unterschied zwischen den Versionen

Aus E-Learning Wiki
(Die Seite wurde neu angelegt: „local p = {} function p.collapsibleclasstext(frame) if frame.args[1]==0 then return '' end if frame.args[1]==1 then if frame.args[2]==0 then return 'mw-collapsible' else return 'mw-collapsed' end end end return p“)
 
Keine Bearbeitungszusammenfassung
Zeile 2: Zeile 2:


function p.collapsibleclasstext(frame)
function p.collapsibleclasstext(frame)
     if frame.args[1]==0 then
     if frame.args[1]=='0' then
         return ''
         return ''
     end
     end
     if frame.args[1]==1 then
     if frame.args[1]=='1' then
         if frame.args[2]==0 then
         if frame.args[2]=='0' then
             return 'mw-collapsible'
             return 'mw-collapsible'
         else
         else

Version vom 2. Mai 2023, 19:15 Uhr

Die Dokumentation für dieses Modul kann unter Modul:EinklappHilfsSkripte/Doku erstellt werden

local p = {}

function p.collapsibleclasstext(frame)
    if frame.args[1]=='0' then
        return ''
    end
    if frame.args[1]=='1' then
        if frame.args[2]=='0' then
            return 'mw-collapsible'
        else
            return 'mw-collapsed'
        end
    end
end


return p