Sacra.Wiki Modul:Funktionsleiste: Unterschied zwischen den Versionen

Modul:Funktionsleiste: Unterschied zwischen den Versionen

Aus Sacra.Wiki
(Die Seite wurde neu angelegt: „local p = {} function p.function_name( frame ) local s = '<table class="wikitable functions-table" style="width: 100%;"><tr><th>Vorgänger</th><th>Funktion</t…“)
 
Zeile 1: Zeile 1:
local p = {}
local p = {}
function p.function_name( frame )
function p.Execute( frame )
local s = '<table class="wikitable functions-table" style="width: 100%;"><tr><th>Vorgänger</th><th>Funktion</th><th>Nachfolger</th></tr>'
local s = '<table class="wikitable functions-table" style="width: 100%;"><tr><th>Vorgänger</th><th>Funktion</th><th>Nachfolger</th></tr>'
local i = 1
local i = 1

Version vom 2. April 2020, 23:23 Uhr

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>Vorgänger</th><th>Funktion</th><th>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>' .. frame.args['FUNKTION' .. i] .. '</td>'
    	if frame.args['NACHFOLGER' .. i] then
    		s = s .. '<td>' .. frame.args['NACHFOLGER' .. i] .. '</td>'
    	else
    		s = s .. '<td></td>'
    	end
    	s = s .. '</tr>'
    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.