Aktionen

Modul

Folge: Unterschied zwischen den Versionen

Aus Bohnenwiki

K
 
(10 dazwischenliegende Versionen von einem anderen Benutzer werden nicht angezeigt)
Zeile 30: Zeile 30:
 
local Zuschauer = frame.args.Zuschauer
 
local Zuschauer = frame.args.Zuschauer
 
local Zuschauer_Richtung = frame.args.Zuschauer_Align
 
local Zuschauer_Richtung = frame.args.Zuschauer_Align
local Zuschauer_BGFarbe = frame.args.Zuschauer_Align_BackColor
+
local Zuschauer_BGFarbe = frame.args.Zuschauer_BackColor
local Zuschauer_TextFarbe = frame.args.Zuschauer_Align_TextColor
+
local Zuschauer_TextFarbe = frame.args.Zuschauer_TextColor
 
 
 
local VOD = frame.args.VOD
 
local VOD = frame.args.VOD
Zeile 57: Zeile 57:
 
local Inhalt_Zeile = " "
 
local Inhalt_Zeile = " "
 
local Linie_Zeile = " "
 
local Linie_Zeile = " "
 
 
 
 
 
 
if Nummer == "{{{Nr}}}"
 
if Nummer == "{{{Nr}}}"
 
then Nummer_Zeile = " "
 
then Nummer_Zeile = " "
 +
elseif Nummer_Zeile == ""
 +
then Nummer_Zeile_Zeile = " "
 
else
 
else
 
Colons = Colons + 1
 
Colons = Colons + 1
 
if Nummer_Richtung == "{{{Nr_Align}}}"
 
if Nummer_Richtung == "{{{Nr_Align}}}"
then Nummer_Richtung = "left"
+
then Nummer_Richtung = "center"
 +
elseif Nummer_Richtung == ""
 +
then Nummer_Richtung = "center"
 
end
 
end
 
if Nummer_BGFarbe == "{{{Nr_BackColor}}}"
 
if Nummer_BGFarbe == "{{{Nr_BackColor}}}"
 +
then Nummer_BGFarbe = "/#ececec"
 +
elseif Nummer_BGFarbe == ""
 
then Nummer_BGFarbe = "/#ececec"
 
then Nummer_BGFarbe = "/#ececec"
 
end
 
end
 
if Nummer_TextFarbe == "{{{Nr_TextColor}}}"
 
if Nummer_TextFarbe == "{{{Nr_TextColor}}}"
 +
then Nummer_TextFarbe = "/#000000"
 +
elseif Nummer_TextFarbe == ""
 
then Nummer_TextFarbe = "/#000000"
 
then Nummer_TextFarbe = "/#000000"
 
end
 
end
Zeile 77: Zeile 84:
 
 
 
if Thema == "{{{Thema}}}"
 
if Thema == "{{{Thema}}}"
 +
then Thema_Zeile = " "
 +
elseif Thema == ""
 
then Thema_Zeile = " "
 
then Thema_Zeile = " "
 
else
 
else
 
Colons = Colons + 1
 
Colons = Colons + 1
 
if Thema_Richtung == "{{{Thema_Align}}}"
 
if Thema_Richtung == "{{{Thema_Align}}}"
 +
then Thema_Richtung = "left"
 +
elseif Thema_Richtung == ""
 
then Thema_Richtung = "left"
 
then Thema_Richtung = "left"
 
end
 
end
 
if Thema_BGFarbe == "{{{Thema_BackColor}}}"
 
if Thema_BGFarbe == "{{{Thema_BackColor}}}"
 +
then Thema_BGFarbe = "/#ececec"
 +
elseif Thema_BGFarbe == ""
 
then Thema_BGFarbe = "/#ececec"
 
then Thema_BGFarbe = "/#ececec"
 
end
 
end
 
if Thema_TextFarbe == "{{{Thema_TextColor}}}"
 
if Thema_TextFarbe == "{{{Thema_TextColor}}}"
 +
then Thema_TextFarbe = "/#000000"
 +
elseif Thema_TextFarbe == ""
 
then Thema_TextFarbe = "/#000000"
 
then Thema_TextFarbe = "/#000000"
 
end
 
end
Zeile 92: Zeile 107:
 
end
 
end
 
 
if Moderator == "{{{Moderator}}}"
+
if Moderator == "{{{Moderatoren}}}"
 +
then Moderator_Zeile = " "
 +
elseif Moderator == ""
 
then Moderator_Zeile = " "
 
then Moderator_Zeile = " "
 
else
 
else
 
Colons = Colons + 1
 
Colons = Colons + 1
if Moderator_Richtung == "{{{Moderator_Align}}}"
+
if Moderator_Richtung == "{{{Moderatoren_Align}}}"
 +
then Moderator_Richtung = "left"
 +
elseif Moderator_Richtung == ""
 
then Moderator_Richtung = "left"
 
then Moderator_Richtung = "left"
 
end
 
end
if Moderator_BGFarbe == "{{{Moderator_BackColor}}}"
+
if Moderator_BGFarbe == "{{{Moderatoren_BackColor}}}"
 +
then Moderator_BGFarbe = "/#ececec"
 +
elseif Moderator_BGFarbe == ""
 
then Moderator_BGFarbe = "/#ececec"
 
then Moderator_BGFarbe = "/#ececec"
 
end
 
end
if Moderator_TextFarbe == "{{{Moderator_TextColor}}}"
+
if Moderator_TextFarbe == "{{{Moderatoren_TextColor}}}"
 +
then Moderator_TextFarbe = "/#000000"
 +
elseif Moderator_TextFarbe == ""
 
then Moderator_TextFarbe = "/#000000"
 
then Moderator_TextFarbe = "/#000000"
 
end
 
end
Zeile 109: Zeile 132:
 
 
 
if Gaeste == "{{{Gaeste}}}"
 
if Gaeste == "{{{Gaeste}}}"
 +
then Gaeste_Zeile = " "
 +
elseif Gaeste == ""
 
then Gaeste_Zeile = " "
 
then Gaeste_Zeile = " "
 
else
 
else
 
Colons = Colons + 1
 
Colons = Colons + 1
 
if Gaeste_Richtung == "{{{Gaeste_Align}}}"
 
if Gaeste_Richtung == "{{{Gaeste_Align}}}"
 +
then Gaeste_Richtung = "left"
 +
elseif Gaeste_Richtung == ""
 
then Gaeste_Richtung = "left"
 
then Gaeste_Richtung = "left"
 
end
 
end
 
if Gaeste_BGFarbe == "{{{Gaeste_BackColor}}}"
 
if Gaeste_BGFarbe == "{{{Gaeste_BackColor}}}"
 +
then Gaeste_BGFarbe = "/#ececec"
 +
elseif Gaeste_BGFarbe == ""
 
then Gaeste_BGFarbe = "/#ececec"
 
then Gaeste_BGFarbe = "/#ececec"
 
end
 
end
 
if Gaeste_TextFarbe == "{{{Gaeste_TextColor}}}"
 
if Gaeste_TextFarbe == "{{{Gaeste_TextColor}}}"
 +
then Gaeste_TextFarbe = "/#000000"
 +
elseif Gaeste_TextFarbe == ""
 
then Gaeste_TextFarbe = "/#000000"
 
then Gaeste_TextFarbe = "/#000000"
 
end
 
end
Zeile 125: Zeile 156:
 
 
 
if Datum == "{{{Datum}}}"
 
if Datum == "{{{Datum}}}"
 +
then Datum_Zeile = " "
 +
elseif Datum == ""
 
then Datum_Zeile = " "
 
then Datum_Zeile = " "
 
else
 
else
 
Colons = Colons + 1
 
Colons = Colons + 1
 
if Datum_Richtung == "{{{Datum_Align}}}"
 
if Datum_Richtung == "{{{Datum_Align}}}"
then Datum_Richtung = "left"
+
then Datum_Richtung = "center"
 +
elseif Datum_Richtung == ""
 +
then Datum_Richtung = "center"
 
end
 
end
 
if Datum_BGFarbe == "{{{Datum_BackColor}}}"
 
if Datum_BGFarbe == "{{{Datum_BackColor}}}"
 +
then Datum_BGFarbe = "/#ececec"
 +
elseif Datum_BGFarbe == ""
 
then Datum_BGFarbe = "/#ececec"
 
then Datum_BGFarbe = "/#ececec"
 
end
 
end
 
if Datum_TextFarbe == "{{{Datum_TextColor}}}"
 
if Datum_TextFarbe == "{{{Datum_TextColor}}}"
 +
then Datum_TextFarbe = "/#000000"
 +
elseif Datum_TextFarbe == ""
 
then Datum_TextFarbe = "/#000000"
 
then Datum_TextFarbe = "/#000000"
 
end
 
end
Zeile 141: Zeile 180:
 
 
 
if Zuschauer == "{{{Zuschauer}}}"
 
if Zuschauer == "{{{Zuschauer}}}"
 +
then Zuschauer_Zeile = " "
 +
elseif Zuschauer == ""
 
then Zuschauer_Zeile = " "
 
then Zuschauer_Zeile = " "
 
else
 
else
 
Colons = Colons + 1
 
Colons = Colons + 1
 
if Zuschauer_Richtung == "{{{Zuschauer_Align}}}"
 
if Zuschauer_Richtung == "{{{Zuschauer_Align}}}"
then Zuschauer_Richtung = "left"
+
then Zuschauer_Richtung = "right"
 +
elseif Zuschauer_Richtung == ""
 +
then Zuschauer_Richtung = "right"
 
end
 
end
 
if Zuschauer_BGFarbe == "{{{Zuschauer_BackColor}}}"
 
if Zuschauer_BGFarbe == "{{{Zuschauer_BackColor}}}"
 +
then Zuschauer_BGFarbe = "/#ececec"
 +
elseif Zuschauer_BGFarbe == ""
 
then Zuschauer_BGFarbe = "/#ececec"
 
then Zuschauer_BGFarbe = "/#ececec"
 
end
 
end
 
if Zuschauer_TextFarbe == "{{{Zuschauer_TextColor}}}"
 
if Zuschauer_TextFarbe == "{{{Zuschauer_TextColor}}}"
 +
then Zuschauer_TextFarbe = "/#000000"
 +
elseif Zuschauer_TextFarbe == ""
 
then Zuschauer_TextFarbe = "/#000000"
 
then Zuschauer_TextFarbe = "/#000000"
 
end
 
end
Zeile 157: Zeile 204:
 
 
 
if VOD == "{{{VOD}}}"
 
if VOD == "{{{VOD}}}"
 +
then VOD_Zeile = " "
 +
elseif VOD == ""
 
then VOD_Zeile = " "
 
then VOD_Zeile = " "
 
else
 
else
 
Colons = Colons + 1
 
Colons = Colons + 1
 
if VOD_Richtung == "{{{VOD_Align}}}"
 
if VOD_Richtung == "{{{VOD_Align}}}"
then VOD_Richtung = "left"
+
then VOD_Richtung = "center"
 +
elseif VOD_Richtung == ""
 +
then VOD_Richtung = "center"
 
end
 
end
 
if VOD_BGFarbe == "{{{VOD_BackColor}}}"
 
if VOD_BGFarbe == "{{{VOD_BackColor}}}"
 +
then VOD_BGFarbe = "/#ececec"
 +
elseif VOD_BGFarbe == ""
 
then VOD_BGFarbe = "/#ececec"
 
then VOD_BGFarbe = "/#ececec"
 
end
 
end
 
if VOD_TextFarbe == "{{{VOD_TextColor}}}"
 
if VOD_TextFarbe == "{{{VOD_TextColor}}}"
 +
then VOD_TextFarbe = "/#000000"
 +
elseif VOD_TextFarbe == ""
 
then VOD_TextFarbe = "/#000000"
 
then VOD_TextFarbe = "/#000000"
 
end
 
end
Zeile 173: Zeile 228:
 
 
 
if Inhalt == "{{{Inhalt}}}"
 
if Inhalt == "{{{Inhalt}}}"
then Inhalt_Zeile = " "
+
then if Linie_BGFarbe == "{{{Linie_BackColor}}}"
 +
then Inhalt_Zeile = " "
 +
elseif Linie_BGFarbe == ""
 +
then Inhalt_Zeile = " "
 +
else Inhalt_Zeile = "|-\n| colspan=\"" .. Colons .. "\" style=\"border-bottom:5px solid;\" |"
 +
end
 +
elseif Inhalt == ""
 +
then if Linie_BGFarbe == "{{{Linie_BackColor}}}"
 +
then Inhalt_Zeile = " "
 +
elseif Linie_BGFarbe == ""
 +
then Inhalt_Zeile = " "
 +
else Inhalt_Zeile = "|-\n| colspan=\"" .. Colons .. "\" style=\"border-bottom:5px solid;\" |"
 +
end
 
else
 
else
 
if Inhalt_Richtung == "{{{Inhalt_Align}}}"
 
if Inhalt_Richtung == "{{{Inhalt_Align}}}"
 +
then Inhalt_Richtung = "left"
 +
elseif Inhalt_Richtung == ""
 
then Inhalt_Richtung = "left"
 
then Inhalt_Richtung = "left"
 
end
 
end
 
if Inhalt_BGFarbe == "{{{Inhalt_BackColor}}}"
 
if Inhalt_BGFarbe == "{{{Inhalt_BackColor}}}"
 
then Inhalt_BGFarbe = "/#ececec"
 
then Inhalt_BGFarbe = "/#ececec"
 +
elseif Inhalt_BGFarbe == ""
 +
then Inhalt_BGFarbe = "/#ececec"
 
end
 
end
 
if Inhalt_TextFarbe == "{{{Inhalt_TextColor}}}"
 
if Inhalt_TextFarbe == "{{{Inhalt_TextColor}}}"
 +
then Inhalt_TextFarbe = "/#000000"
 +
elseif Inhalt_TextFarbe == ""
 
then Inhalt_TextFarbe = "/#000000"
 
then Inhalt_TextFarbe = "/#000000"
 
end
 
end
Inhalt_Wert =  Tabelle.SpalteReq(Inhalt , Inhalt_Richtung,Inhalt_BGFarbe,Inhalt_TextFarbe, Colons)
+
if Linie_BGFarbe == "{{{Linie_BackColor}}}"
Inhalt_Zeile = "|-\n" .. Inhalt_Wert
+
then Inhalt_Wert =  Tabelle.SpalteReq(Inhalt , Inhalt_Richtung,Inhalt_BGFarbe,Inhalt_TextFarbe, Colons)
 +
Inhalt_Zeile = "|-\n" .. Inhalt_Wert
 +
elseif Linie_BGFarbe == ""
 +
then Inhalt_Wert =  Tabelle.SpalteReq(Inhalt , Inhalt_Richtung,Inhalt_BGFarbe,Inhalt_TextFarbe, Colons)
 +
Inhalt_Zeile = "|-\n" .. Inhalt_Wert
 +
else Inhalt_Zeile = "|-\n| colspan=\"" .. Colons .. "\" style=\"border-bottom:5px solid" .. Linie_BGFarbe .. ";background:" .. Inhalt_BGFarbe .. ";text-align:" .. Inhalt_Richtung ..  ";color:" .. Inhalt_TextFarbe .. ";\" |" .. Inhalt
 +
end
 
end
 
end
 +
 +
Format_Zeile = " "
 +
Format_Zeile = "|-\n" .. Nummer_Zeile .. Thema_Zeile .. Moderator_Zeile .. Gaeste_Zeile .. Datum_Zeile .. Zuschauer_Zeile .. VOD_Zeile .. Inhalt_Zeile
 +
return Format_Zeile
 +
 +
end
 +
 +
 +
function p.ChatDuell(frame)
 +
local Folge = frame.args.Folge
 +
local Datum = frame.args.Datum
 +
local Moderator = frame.args.Moderator
 +
local Team1N = frame.args.Team1N
 +
local Team1M = frame.args.Team1M
 +
local Team2N = frame.args.Team2N
 +
local Team2M = frame.args.Team2M
 +
local Ergebnis = frame.args.Ergebnis
 +
local Gewinner = frame.args.Gewinner
 +
local Zuschauer = frame.args.Zuschauer
 +
local VOD = frame.args.VOD
 +
 +
local Inhalt = frame.args.Inhalt
 +
local Linie_BGFarbe = frame.args.Linie_BackColor
 +
local Inhalt_Richtung = "left"
 +
local Inhalt_BGFarbe = "/#ececec"
 +
local Inhalt_TextFarbe = "/#000000"
 +
 +
local Colons = 9
 +
 +
Folge_Spalte = Tabelle.SpalteReq(Folge , "center","/#ececec","/#000000", 1)
 +
Datum_Spalte = Tabelle.SpalteReq(Datum , "center","/#ececec","/#000000", 1)
 +
Moderator_Spalte = Tabelle.SpalteReq(Moderator , "center","/#ececec","/#000000", 1)
 +
Team1N_Spalte = Tabelle.SpalteReq(Team1N , "center","/#ececec","/#000000", 1)
 +
        Team1M_Spalte = Tabelle.SpalteReq(Team1M , "center","/#ececec","/#000000", 1)
 +
Team2N_Spalte = Tabelle.SpalteReq(Team2N , "center","/#ececec","/#000000", 1)
 +
Team2M_Spalte = Tabelle.SpalteReq(Team2M , "center","/#ececec","/#000000", 1)
 +
Ergebnis_Spalte = Tabelle.SpalteReq(Ergebnis , "center","/#ececec","/#000000", 1)
 +
Gewinner_Spalte = Tabelle.SpalteReq(Gewinner , "center","/#ececec","/#000000", 1)
 +
Zuschauer_Spalte = Tabelle.SpalteReq(Zuschauer , "center","/#ececec","/#000000", 1)
 +
VOD_Spalte = Tabelle.SpalteReq(VOD , "center","/#ececec","/#000000", 1)
 
 
if Linie_BGFarbe == "{{{Linie_BGFarbe}}}"
+
if Inhalt == "{{{Inhalt}}}"
then Linie_Zeile = " "
+
then if Linie_BGFarbe == "{{{Linie_BackColor}}}"
 +
then Inhalt_Zeile = " "
 +
elseif Linie_BGFarbe == ""
 +
then Inhalt_Zeile = " "
 +
else Inhalt_Zeile = "|-\n| colspan=\"" .. Colons .. "\" style=\"border-bottom:5px solid;\" |"
 +
end
 +
elseif Inhalt == ""
 +
then if Linie_BGFarbe == "{{{Linie_BackColor}}}"
 +
then Inhalt_Zeile = " "
 +
elseif Linie_BGFarbe == ""
 +
then Inhalt_Zeile = " "
 +
else Inhalt_Zeile = "|-\n| colspan=\"" .. Colons .. "\" style=\"border-bottom:5px solid;\" |"
 +
end
 
else
 
else
Linie_Zeile = "|-\n" .. "| colspan=\"" .. Colons .. "\" style=\"border-bottom:5px solid " .. Linie_BGFarbe .. ";\" |"
+
if Inhalt_Richtung == "{{{Inhalt_Align}}}"
 +
then Inhalt_Richtung = "left"
 +
elseif Inhalt_Richtung == ""
 +
then Inhalt_Richtung = "left"
 +
end
 +
if Inhalt_BGFarbe == "{{{Inhalt_BackColor}}}"
 +
then Inhalt_BGFarbe = "/#ececec"
 +
elseif Inhalt_BGFarbe == ""
 +
then Inhalt_BGFarbe = "/#ececec"
 +
end
 +
if Inhalt_TextFarbe == "{{{Inhalt_TextColor}}}"
 +
then Inhalt_TextFarbe = "/#000000"
 +
elseif Inhalt_TextFarbe == ""
 +
then Inhalt_TextFarbe = "/#000000"
 +
end
 +
if Linie_BGFarbe == "{{{Linie_BackColor}}}"
 +
then Inhalt_Wert =  Tabelle.SpalteReq(Inhalt , Inhalt_Richtung,Inhalt_BGFarbe,Inhalt_TextFarbe, Colons)
 +
Inhalt_Zeile = "|-\n" .. Inhalt_Wert
 +
elseif Linie_BGFarbe == ""
 +
then Inhalt_Wert =  Tabelle.SpalteReq(Inhalt , Inhalt_Richtung,Inhalt_BGFarbe,Inhalt_TextFarbe, Colons)
 +
Inhalt_Zeile = "|-\n" .. Inhalt_Wert
 +
else Inhalt_Zeile = "|-\n| colspan=\"" .. Colons .. "\" style=\"border-bottom:5px solid" .. Linie_BGFarbe .. ";background:" .. Inhalt_BGFarbe .. ";text-align:" .. Inhalt_Richtung ..  ";color:" .. Inhalt_TextFarbe .. ";\" |" .. Inhalt
 +
end
 
end
 
end
+
 
 
Format_Zeile = " "
 
Format_Zeile = " "
Format_Zeile = "|-\n" .. Nummer_Zeile .. Thema_Zeile .. Moderator_Zeile .. Gaeste_Zeile .. Datum_Zeile .. Zuschauer_Zeile .. VOD_Zeile .. Inhalt_Zeile .. Linie_Zeile
+
Format_Zeile = "|-\n" .. Folge_Spalte .. Datum_Spalte .. Moderator_Spalte .. Team1N_Spalte .. Team1M_Spalte .. Team2N_Spalte .. Team2M_Spalte .. Ergebnis_Spalte .. Gewinner_Spalte .. Zuschauer_Spalte .. VOD_Spalte .. Inhalt_Zeile
 
return Format_Zeile
 
return Format_Zeile
 
+
end
end
 
  
 
return p
 
return p

Aktuelle Version vom 25. August 2016, 23:42 Uhr

LUA-Modul für die Vorlage:Folge/LUA


p = {}
Tabelle = require( "Modul:Tabelle" )

function p.Zeile(frame)
	local Nummer = frame.args.Nr
	local Nummer_Richtung = frame.args.Nr_Align
	local Nummer_BGFarbe = frame.args.Nr_BackColor 
	local Nummer_TextFarbe = frame.args.Nr_TextColor 
	
	local Thema = frame.args.Thema
	local Thema_Richtung = frame.args.Thema_Align
	local Thema_BGFarbe = frame.args.Thema_BackColor 
	local Thema_TextFarbe = frame.args.Thema_TextColor 
	
	local Moderator = frame.args.Moderatoren
	local Moderator_Richtung = frame.args.Moderatoren_Align
	local Moderator_BGFarbe = frame.args.Moderatoren_BackColor 
	local Moderator_TextFarbe = frame.args.Moderatoren_TextColor 
	
	local Gaeste = frame.args.Gaeste
	local Gaeste_Richtung = frame.args.Gaeste_Align
	local Gaeste_BGFarbe = frame.args.Gaeste_BackColor 
	local Gaeste_TextFarbe = frame.args.Gaeste_TextColor 
	
	local Datum = frame.args.Datum
	local Datum_Richtung = frame.args.Datum_Align
	local Datum_BGFarbe = frame.args.Datum_BackColor 
	local Datum_TextFarbe = frame.args.Datum_TextColor 
	
	local Zuschauer = frame.args.Zuschauer
	local Zuschauer_Richtung = frame.args.Zuschauer_Align
	local Zuschauer_BGFarbe = frame.args.Zuschauer_BackColor 
	local Zuschauer_TextFarbe = frame.args.Zuschauer_TextColor 
	
	local VOD = frame.args.VOD
	local VOD_Richtung = frame.args.VOD_Align
	local VOD_BGFarbe = frame.args.VOD_BackColor 
	local VOD_TextFarbe = frame.args.VOD_TextColor 
	
	local Inhalt = frame.args.Inhalt
	local Inhalt_Richtung = frame.args.Inhalt_Align
	local Inhalt_BGFarbe = frame.args.Inhalt_BackColor 
	local Inhalt_TextFarbe = frame.args.Inhalt_TextColor 
	
	local Linie_BGFarbe = frame.args.Linie_BackColor 
	
	
	local Colons = 0
	
	local Nummer_Zeile = " "
	local Thema_Zeile = " "
	local Moderator_Zeile = " "
	local Gaeste_Zeile = " "
	local Datum_Zeile = " "
	local Zuschauer_Zeile = " "
	local VOD_Zeile = " "
	local Inhalt_Zeile = " "
	local Linie_Zeile = " "
	
	
	if Nummer == "{{{Nr}}}"
		then Nummer_Zeile = " "
	elseif Nummer_Zeile == ""
		then Nummer_Zeile_Zeile = " "
	else
		Colons = Colons + 1
		if Nummer_Richtung == "{{{Nr_Align}}}"
			then Nummer_Richtung = "center"
		elseif Nummer_Richtung == ""
			then Nummer_Richtung = "center"
		end
		if Nummer_BGFarbe == "{{{Nr_BackColor}}}"
			then Nummer_BGFarbe = "/#ececec"
		elseif Nummer_BGFarbe == ""
			then Nummer_BGFarbe = "/#ececec"
		end
		if Nummer_TextFarbe == "{{{Nr_TextColor}}}"
			then Nummer_TextFarbe = "/#000000"
		elseif Nummer_TextFarbe == ""
			then Nummer_TextFarbe = "/#000000"
		end
		Nummer_Zeile = Tabelle.SpalteReq(Nummer , Nummer_Richtung,Nummer_BGFarbe,Nummer_TextFarbe, 1)
	end
	
	if Thema == "{{{Thema}}}"
		then Thema_Zeile = " "
	elseif Thema == ""
		then Thema_Zeile = " "
	else
		Colons = Colons + 1
		if Thema_Richtung == "{{{Thema_Align}}}"
			then Thema_Richtung = "left"
		elseif Thema_Richtung == ""
			then Thema_Richtung = "left"
		end
		if Thema_BGFarbe == "{{{Thema_BackColor}}}"
			then Thema_BGFarbe = "/#ececec"
		elseif Thema_BGFarbe == ""
			then Thema_BGFarbe = "/#ececec"
		end
		if Thema_TextFarbe == "{{{Thema_TextColor}}}"
			then Thema_TextFarbe = "/#000000"
		elseif Thema_TextFarbe == ""
			then Thema_TextFarbe = "/#000000"
		end
		Thema_Zeile = Tabelle.SpalteReq(Thema , Thema_Richtung,Thema_BGFarbe,Thema_TextFarbe, 1)
	end
	
	if Moderator == "{{{Moderatoren}}}"
		then Moderator_Zeile = " "
	elseif Moderator == ""
		then Moderator_Zeile = " "
	else
		Colons = Colons + 1
		if Moderator_Richtung == "{{{Moderatoren_Align}}}"
			then Moderator_Richtung = "left"
		elseif Moderator_Richtung == ""
			then Moderator_Richtung = "left"
		end
		if Moderator_BGFarbe == "{{{Moderatoren_BackColor}}}"
			then Moderator_BGFarbe = "/#ececec"
		elseif Moderator_BGFarbe == ""
			then Moderator_BGFarbe = "/#ececec"
		end
		if Moderator_TextFarbe == "{{{Moderatoren_TextColor}}}"
			then Moderator_TextFarbe = "/#000000"
		elseif Moderator_TextFarbe == ""
			then Moderator_TextFarbe = "/#000000"
		end
		Moderator_Zeile = Tabelle.SpalteReq(Moderator , Moderator_Richtung,Moderator_BGFarbe,Moderator_TextFarbe, 1)
	end
	
	if Gaeste == "{{{Gaeste}}}"
		then Gaeste_Zeile = " "
	elseif Gaeste == ""
		then Gaeste_Zeile = " "
	else
		Colons = Colons + 1
		if Gaeste_Richtung == "{{{Gaeste_Align}}}"
			then Gaeste_Richtung = "left"
		elseif Gaeste_Richtung == ""
			then Gaeste_Richtung = "left"
		end
		if Gaeste_BGFarbe == "{{{Gaeste_BackColor}}}"
			then Gaeste_BGFarbe = "/#ececec"
		elseif Gaeste_BGFarbe == ""
			then Gaeste_BGFarbe = "/#ececec"
		end
		if Gaeste_TextFarbe == "{{{Gaeste_TextColor}}}"
			then Gaeste_TextFarbe = "/#000000"
		elseif Gaeste_TextFarbe == ""
			then Gaeste_TextFarbe = "/#000000"
		end
		Gaeste_Zeile = Tabelle.SpalteReq(Gaeste , Gaeste_Richtung,Gaeste_BGFarbe,Gaeste_TextFarbe, 1)
	end
	
	if Datum == "{{{Datum}}}"
		then Datum_Zeile = " "
	elseif Datum == ""
		then Datum_Zeile = " "
	else
		Colons = Colons + 1
		if Datum_Richtung == "{{{Datum_Align}}}"
			then Datum_Richtung = "center"
		elseif Datum_Richtung == ""
			then Datum_Richtung = "center"
		end
		if Datum_BGFarbe == "{{{Datum_BackColor}}}"
			then Datum_BGFarbe = "/#ececec"
		elseif Datum_BGFarbe == ""
			then Datum_BGFarbe = "/#ececec"
		end
		if Datum_TextFarbe == "{{{Datum_TextColor}}}"
			then Datum_TextFarbe = "/#000000"
		elseif Datum_TextFarbe == ""
			then Datum_TextFarbe = "/#000000"
		end
		Datum_Zeile = Tabelle.SpalteReq(Datum , Datum_Richtung,Datum_BGFarbe,Datum_TextFarbe, 1)
	end
	
	if Zuschauer == "{{{Zuschauer}}}"
		then Zuschauer_Zeile = " "
	elseif Zuschauer == ""
		then Zuschauer_Zeile = " "
	else
		Colons = Colons + 1
		if Zuschauer_Richtung == "{{{Zuschauer_Align}}}"
			then Zuschauer_Richtung = "right"
		elseif Zuschauer_Richtung == ""
			then Zuschauer_Richtung = "right"
		end
		if Zuschauer_BGFarbe == "{{{Zuschauer_BackColor}}}"
			then Zuschauer_BGFarbe = "/#ececec"
		elseif Zuschauer_BGFarbe == ""
			then Zuschauer_BGFarbe = "/#ececec"
		end
		if Zuschauer_TextFarbe == "{{{Zuschauer_TextColor}}}"
			then Zuschauer_TextFarbe = "/#000000"
		elseif Zuschauer_TextFarbe == ""
			then Zuschauer_TextFarbe = "/#000000"
		end
		Zuschauer_Zeile = Tabelle.SpalteReq(Zuschauer , Zuschauer_Richtung,Zuschauer_BGFarbe,Zuschauer_TextFarbe, 1)
	end
	
	if VOD == "{{{VOD}}}"
		then VOD_Zeile = " "
	elseif VOD == ""
		then VOD_Zeile = " "
	else
		Colons = Colons + 1
		if VOD_Richtung == "{{{VOD_Align}}}"
			then VOD_Richtung = "center"
		elseif VOD_Richtung == ""
			then VOD_Richtung = "center"
		end
		if VOD_BGFarbe == "{{{VOD_BackColor}}}"
			then VOD_BGFarbe = "/#ececec"
		elseif VOD_BGFarbe == ""
			then VOD_BGFarbe = "/#ececec"
		end
		if VOD_TextFarbe == "{{{VOD_TextColor}}}"
			then VOD_TextFarbe = "/#000000"
		elseif VOD_TextFarbe == ""
			then VOD_TextFarbe = "/#000000"
		end
		VOD_Zeile = Tabelle.SpalteReq(VOD , VOD_Richtung,VOD_BGFarbe,VOD_TextFarbe, 1)
	end
	
	if Inhalt == "{{{Inhalt}}}"
		then if Linie_BGFarbe == "{{{Linie_BackColor}}}"
			then Inhalt_Zeile = " "
		elseif Linie_BGFarbe == ""
			then Inhalt_Zeile = " "
		else Inhalt_Zeile = "|-\n| colspan=\"" .. Colons .. "\" style=\"border-bottom:5px solid;\" |"
		end
	elseif Inhalt == ""
		then if Linie_BGFarbe == "{{{Linie_BackColor}}}"
			then Inhalt_Zeile = " "
		elseif Linie_BGFarbe == ""
			then Inhalt_Zeile = " "
		else Inhalt_Zeile = "|-\n| colspan=\"" .. Colons .. "\" style=\"border-bottom:5px solid;\" |"
		end
	else
		if Inhalt_Richtung == "{{{Inhalt_Align}}}"
			then Inhalt_Richtung = "left"
			elseif Inhalt_Richtung == ""
			then Inhalt_Richtung = "left"
		end
		if Inhalt_BGFarbe == "{{{Inhalt_BackColor}}}"
			then Inhalt_BGFarbe = "/#ececec"
			elseif Inhalt_BGFarbe == ""
			then Inhalt_BGFarbe = "/#ececec"	
		end
		if Inhalt_TextFarbe == "{{{Inhalt_TextColor}}}"
			then Inhalt_TextFarbe = "/#000000"
			elseif Inhalt_TextFarbe == ""
			then Inhalt_TextFarbe = "/#000000"
		end
		if Linie_BGFarbe == "{{{Linie_BackColor}}}"
			then Inhalt_Wert =  Tabelle.SpalteReq(Inhalt , Inhalt_Richtung,Inhalt_BGFarbe,Inhalt_TextFarbe, Colons)
			Inhalt_Zeile = "|-\n" .. Inhalt_Wert
		elseif Linie_BGFarbe == ""
			then Inhalt_Wert =  Tabelle.SpalteReq(Inhalt , Inhalt_Richtung,Inhalt_BGFarbe,Inhalt_TextFarbe, Colons)
			Inhalt_Zeile = "|-\n" .. Inhalt_Wert
		else Inhalt_Zeile = "|-\n| colspan=\"" .. Colons .. "\" style=\"border-bottom:5px solid" .. Linie_BGFarbe .. ";background:" .. Inhalt_BGFarbe .. ";text-align:" .. Inhalt_Richtung ..  ";color:" .. Inhalt_TextFarbe .. ";\" |" .. Inhalt
		end
	end

	Format_Zeile = " "
	Format_Zeile = "|-\n" .. Nummer_Zeile .. Thema_Zeile .. Moderator_Zeile .. Gaeste_Zeile .. Datum_Zeile .. Zuschauer_Zeile .. VOD_Zeile .. Inhalt_Zeile
	return Format_Zeile
	
end


function p.ChatDuell(frame)
	local Folge = frame.args.Folge
	local Datum = frame.args.Datum
	local Moderator = frame.args.Moderator 
	local Team1N = frame.args.Team1N
	local Team1M = frame.args.Team1M
	local Team2N = frame.args.Team2N
	local Team2M = frame.args.Team2M
	local Ergebnis = frame.args.Ergebnis
	local Gewinner = frame.args.Gewinner 
	local Zuschauer = frame.args.Zuschauer 
	local VOD = frame.args.VOD
	
	local Inhalt = frame.args.Inhalt
	local Linie_BGFarbe = frame.args.Linie_BackColor 
	local Inhalt_Richtung = "left"
	local Inhalt_BGFarbe = "/#ececec"
	local Inhalt_TextFarbe = "/#000000"
	
	local Colons = 9
	
	Folge_Spalte = Tabelle.SpalteReq(Folge , "center","/#ececec","/#000000", 1)
	Datum_Spalte = Tabelle.SpalteReq(Datum , "center","/#ececec","/#000000", 1)
	Moderator_Spalte = Tabelle.SpalteReq(Moderator , "center","/#ececec","/#000000", 1)
	Team1N_Spalte = Tabelle.SpalteReq(Team1N , "center","/#ececec","/#000000", 1)
        Team1M_Spalte = Tabelle.SpalteReq(Team1M , "center","/#ececec","/#000000", 1)
	Team2N_Spalte = Tabelle.SpalteReq(Team2N , "center","/#ececec","/#000000", 1)
	Team2M_Spalte = Tabelle.SpalteReq(Team2M , "center","/#ececec","/#000000", 1)
	Ergebnis_Spalte = Tabelle.SpalteReq(Ergebnis , "center","/#ececec","/#000000", 1)
	Gewinner_Spalte = Tabelle.SpalteReq(Gewinner , "center","/#ececec","/#000000", 1)
	Zuschauer_Spalte = Tabelle.SpalteReq(Zuschauer , "center","/#ececec","/#000000", 1)
	VOD_Spalte = Tabelle.SpalteReq(VOD , "center","/#ececec","/#000000", 1)
	
	if Inhalt == "{{{Inhalt}}}"
		then if Linie_BGFarbe == "{{{Linie_BackColor}}}"
			then Inhalt_Zeile = " "
		elseif Linie_BGFarbe == ""
			then Inhalt_Zeile = " "
		else Inhalt_Zeile = "|-\n| colspan=\"" .. Colons .. "\" style=\"border-bottom:5px solid;\" |"
		end
	elseif Inhalt == ""
		then if Linie_BGFarbe == "{{{Linie_BackColor}}}"
			then Inhalt_Zeile = " "
		elseif Linie_BGFarbe == ""
			then Inhalt_Zeile = " "
		else Inhalt_Zeile = "|-\n| colspan=\"" .. Colons .. "\" style=\"border-bottom:5px solid;\" |"
		end
	else
		if Inhalt_Richtung == "{{{Inhalt_Align}}}"
			then Inhalt_Richtung = "left"
			elseif Inhalt_Richtung == ""
			then Inhalt_Richtung = "left"
		end
		if Inhalt_BGFarbe == "{{{Inhalt_BackColor}}}"
			then Inhalt_BGFarbe = "/#ececec"
			elseif Inhalt_BGFarbe == ""
			then Inhalt_BGFarbe = "/#ececec"	
		end
		if Inhalt_TextFarbe == "{{{Inhalt_TextColor}}}"
			then Inhalt_TextFarbe = "/#000000"
			elseif Inhalt_TextFarbe == ""
			then Inhalt_TextFarbe = "/#000000"
		end
		if Linie_BGFarbe == "{{{Linie_BackColor}}}"
			then Inhalt_Wert =  Tabelle.SpalteReq(Inhalt , Inhalt_Richtung,Inhalt_BGFarbe,Inhalt_TextFarbe, Colons)
			Inhalt_Zeile = "|-\n" .. Inhalt_Wert
		elseif Linie_BGFarbe == ""
			then Inhalt_Wert =  Tabelle.SpalteReq(Inhalt , Inhalt_Richtung,Inhalt_BGFarbe,Inhalt_TextFarbe, Colons)
			Inhalt_Zeile = "|-\n" .. Inhalt_Wert
		else Inhalt_Zeile = "|-\n| colspan=\"" .. Colons .. "\" style=\"border-bottom:5px solid" .. Linie_BGFarbe .. ";background:" .. Inhalt_BGFarbe .. ";text-align:" .. Inhalt_Richtung ..  ";color:" .. Inhalt_TextFarbe .. ";\" |" .. Inhalt
		end
	end

	Format_Zeile = " "
	Format_Zeile = "|-\n" .. Folge_Spalte .. Datum_Spalte .. Moderator_Spalte .. Team1N_Spalte .. Team1M_Spalte .. Team2N_Spalte .. Team2M_Spalte .. Ergebnis_Spalte .. Gewinner_Spalte .. Zuschauer_Spalte .. VOD_Spalte .. Inhalt_Zeile
	return Format_Zeile
	end

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