Folge: Unterschied zwischen den Versionen
Aus Bohnenwiki
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
(20 dazwischenliegende Versionen von einem anderen Benutzer werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
p = {} | |||
Tabelle = require( "Modul:Tabelle" ) | |||
function | function p.Zeile(frame) | ||
local Nummer = frame.args.Nr | local Nummer = frame.args.Nr | ||
local Nummer_Richtung = frame.args.Nr_Align | local Nummer_Richtung = frame.args.Nr_Align | ||
local | local Nummer_BGFarbe = frame.args.Nr_BackColor | ||
local | local Nummer_TextFarbe = frame.args.Nr_TextColor | ||
local Thema = frame.args.Thema | local Thema = frame.args.Thema | ||
local Thema_Richtung = frame.args.Thema_Align | local Thema_Richtung = frame.args.Thema_Align | ||
local | local Thema_BGFarbe = frame.args.Thema_BackColor | ||
local | 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 = frame.args.Gaeste | ||
local Gaeste_Richtung = frame.args.Gaeste_Align | local Gaeste_Richtung = frame.args.Gaeste_Align | ||
local | local Gaeste_BGFarbe = frame.args.Gaeste_BackColor | ||
local | local Gaeste_TextFarbe = frame.args.Gaeste_TextColor | ||
local | local Datum = frame.args.Datum | ||
local | local Datum_Richtung = frame.args.Datum_Align | ||
local | local Datum_BGFarbe = frame.args.Datum_BackColor | ||
local Datum_TextFarbe = frame.args.Datum_TextColor | |||
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 | local Zuschauer_BGFarbe = frame.args.Zuschauer_BackColor | ||
local | local Zuschauer_TextFarbe = frame.args.Zuschauer_TextColor | ||
local VOD = frame.args.VOD | local VOD = frame.args.VOD | ||
local VOD_Richtung = frame.args.VOD_Align | local VOD_Richtung = frame.args.VOD_Align | ||
local | local VOD_BGFarbe = frame.args.VOD_BackColor | ||
local | local VOD_TextFarbe = frame.args.VOD_TextColor | ||
local | local Inhalt = frame.args.Inhalt | ||
local | local Inhalt_Richtung = frame.args.Inhalt_Align | ||
local | 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 | if Nummer == "{{{Nr}}}" | ||
then | 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 | end | ||
if Thema == "{{{Thema}}}" | |||
then Thema_Zeile = " " | |||
elseif Thema == "" | |||
then Thema_Zeile = " " | |||
else | |||
Colons = Colons + 1 | |||
if Thema_Richtung == "{{{Thema_Align}}}" | |||
elseif | then Thema_Richtung = "left" | ||
then | elseif Thema_Richtung == "" | ||
elseif | then Thema_Richtung = "left" | ||
then | end | ||
elseif | if Thema_BGFarbe == "{{{Thema_BackColor}}}" | ||
then | 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 | end | ||
if | if Moderator == "{{{Moderatoren}}}" | ||
then Moderator_Zeile = " " | |||
elseif | elseif Moderator == "" | ||
then | 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 | end | ||
if | if Gaeste == "{{{Gaeste}}}" | ||
then | 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 | end | ||
if Datum == "{{{Datum}}}" | if Datum == "{{{Datum}}}" | ||
then | 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 | end | ||
if Zuschauer == "{{{Zuschauer}}}" | |||
then Zuschauer_Zeile = " " | |||
elseif Zuschauer == "" | |||
then Zuschauer_Zeile = " " | |||
else | |||
Colons = Colons + 1 | |||
then | 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 | end | ||
if | if VOD == "{{{VOD}}}" | ||
then | 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 | end | ||
if | if Inhalt == "{{{Inhalt}}}" | ||
then | then if Linie_BGFarbe == "{{{Linie_BackColor}}}" | ||
then Inhalt_Zeile = " " | |||
elseif Linie_BGFarbe == "" | |||
then Inhalt_Zeile = " " | |||
then | else Inhalt_Zeile = "|-\n| colspan=\"" .. Colons .. "\" style=\"border-bottom:5px solid;\" |" | ||
end | |||
elseif Inhalt == "" | |||
then if Linie_BGFarbe == "{{{Linie_BackColor}}}" | |||
then | 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" | |||
then | 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 = "|-\n" .. Nummer_Zeile .. Thema_Zeile .. Moderator_Zeile .. Gaeste_Zeile .. Datum_Zeile .. Zuschauer_Zeile .. VOD_Zeile .. Inhalt_Zeile | |||
return Format_Zeile | |||
end | 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 | if Inhalt == "{{{Inhalt}}}" | ||
then | 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 | 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 | end | ||
return | 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