Modul:EinklappHilfsSkripte: Unterschied zwischen den Versionen

Aus E-Learning Wiki
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 2: Zeile 2:


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

Version vom 2. Mai 2023, 19:21 Uhr

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

local p = {}

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


return p