Sacra.Wiki Modul:Funktionsleiste

Modul:Funktionsleiste

Aus Sacra.Wiki

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

local p = {}
function p.Execute( frame )
	local s = '<table class="wikitable functions-table" style="width: 100%;"><tr><th width="33.333%">Vorgänger</th><th width="33.333%">Funktion</th><th width="33.333%">Nachfolger</th></tr>'
	local i = 1
    while frame.args['FUNKTION' .. i] do
    	s = s .. '<tr>'
    	if frame.args['VORGÄNGER' .. i] then
    		s = s .. '<td>' .. frame.args['VORGÄNGER' .. i] .. '</td>'
    	else
    		s = s .. '<td></td>'
    	end
    	s = s .. '<td><b>' .. frame.args['FUNKTION' .. i] .. '</b>'
    	if frame.args['ZEITRAUM' .. i] then
    		s = s .. '<br>' .. frame.args['ZEITRAUM' .. i]
    	end
    	s = s .. '</td>'
    	if frame.args['NACHFOLGER' .. i] then
    		s = s .. '<td>' .. frame.args['NACHFOLGER' .. i] .. '</td>'
    	else
    		s = s .. '<td></td>'
    	end
    	s = s .. '</tr>'
    	i = i + 1
    end
    s = frame:preprocess( s )
	return s
end
return p
Cookies helfen uns bei der Bereitstellung von Sacra.Wiki. Durch die Nutzung von Sacra.Wiki erklärst du dich damit einverstanden, dass wir Cookies speichern.