Aktionen

Modul

Test3: Unterschied zwischen den Versionen

Aus Bohnenwiki

Zeile 3: Zeile 3:
 
function Folge.Linie(frame)
 
function Folge.Linie(frame)
 
local span_Nr = nil
 
local span_Nr = nil
local span_Thema = {{{Thema}}}
+
local span_Thema = "{{{Thema}}}"
 
local span_Moderator = {{{Moderator}}}
 
local span_Moderator = {{{Moderator}}}
 
local span_Gaeste = 234
 
local span_Gaeste = 234

Version vom 17. Juli 2015, 11:51 Uhr

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

Folge = {}

function Folge.Linie(frame)
	local span_Nr = nil
	local span_Thema = "{{{Thema}}}"
	local span_Moderator = {{{Moderator}}}
	local span_Gaeste = 234
	local span_Zuschauer = nil
	local span_VOD = 2214
	local span_Datum = nil

	local span_zahl = 0


	if span_Nr == nil
		then span_zahl = span_zahl
           elseif span_Nr == "{{{Nr}}}"
		then span_zahl = span_zahl
           else
		span_zahl = span_zahl + 1
	end
	
	if span_Thema == nil
		then span_zahl = span_zahl
           elseif span_Thema == "{{{Thema}}}"
		then span_zahl = span_zahl
           else
		span_zahl = span_zahl + 1
	end

	if span_Moderator == nil
		then span_zahl = span_zahl
           elseif span_Moderator == "{{{Moderator}}}"
		then span_zahl = span_zahl
           else
		span_zahl = span_zahl + 1
	end
	
	if span_Gaeste == nil
		then span_zahl = span_zahl
           elseif span_Gaeste == "{{{Gaeste}}}"
		then span_zahl = span_zahl
           else
		span_zahl = span_zahl + 1
	end

	if span_Zuschauer == nil
		then span_zahl = span_zahl
           elseif span_Zuschauer == "{{{Zuschauer}}}"
		then span_zahl = span_zahl
           else
		span_zahl = span_zahl + 1
	end
	
	if span_VOD == nil
		then span_zahl = span_zahl
           elseif span_VOD == "{{{VOD}}}"
		then span_zahl = span_zahl
           else
		span_zahl = span_zahl + 1
	end
	
	if span_Datum == nil
		then span_zahl = span_zahl
           elseif span_Datum == "{{{Datum}}}"
		then span_zahl = span_zahl
           else
		span_zahl = span_zahl + 1
	end
	
        return span_zahl
end

return Folge
Cookies helfen uns bei der Bereitstellung von Bohnenwiki. Durch die Nutzung von Bohnenwiki erklärst du dich damit einverstanden, dass wir Cookies speichern.