Insider: Unterschied zwischen den Versionen
Aus Bohnenwiki
(Die Seite wurde neu angelegt: „Insider = {} function Insider.Zeile(frame) local Nummer = frame.args.Insider local Nummer_Richtung = frame.args.Insider_Align local Nummer_Farbe = frame.ar…“) |
Keine Bearbeitungszusammenfassung |
||
Zeile 39: | Zeile 39: | ||
if Insider == "{{{Insider}}}" | if Insider == "{{{Insider}}}" | ||
then Insider_Spalte = " " | then Insider_Spalte = align .. span .. bg_color .. "-" | ||
elseif Insider == nil | |||
then Insider_Spalte = align .. span .. bg_color .. "-" | |||
elseif Insider == "{{{Bedeutung}}}" | |||
then Insider_Spalte = align .. span .. bg_color .. "-" | |||
elseif Insider == "{{{Herkunft}}}" | |||
then Insider_Spalte = align .. span .. bg_color .. "-" | |||
elseif Insider == "{{{Personen}}}" | |||
then Insider_Spalte = align .. span .. bg_color .. "-" | |||
elseif Insider == "{{{VOD}}}" | |||
then Insider_Spalte = align .. span .. bg_color .. "-" | |||
else | else | ||
Insider_Spalte = align .. span .. bg_color .. Insider | Insider_Spalte = align .. span .. bg_color .. Insider |
Version vom 15. Juli 2015, 19:03 Uhr
Die Dokumentation für dieses Modul kann unter Modul:Insider/Doku erstellt werden
Insider = {}
function Insider.Zeile(frame)
local Nummer = frame.args.Insider
local Nummer_Richtung = frame.args.Insider_Align
local Nummer_Farbe = frame.args.Insider_Color
local Nummer_Colspan = frame.args.Insider_Colspan
local align = " "
local bg_color = " "
local span = " "
Insider_Spalte = " "
if Insider_Richtung == "{{{Insider_Richtung}}}" then align = "| align=\"left\" "
elseif Insider_Richtung == "center"
then align = "| align=\"center\" "
elseif Insider_Richtung == "right"
then align = "| align=\"right\" "
elseif Insider_Richtung == "left"
then align = "| align=\"left\" "
else
align = "| align=\"center\" "
end
if Insider_Farbe == "{{{Insider_Color}}}"
then bg_color = "style=\"background: #ececec \"| "
elseif Insider_Farbe == nil
then bg_color = "style=\"background: #ececec \"| "
else
bg_color = "style=\"background: " .. Insider_Farbe .. " \"| "
end
if Insider_Colspan == "{{{Insider_Colspan}}}"
then span = " colspan=\"1\" "
else
span = "\" colspan=\"" .. Insider_Colspan .. "\" "
end
if Insider == "{{{Insider}}}"
then Insider_Spalte = align .. span .. bg_color .. "-"
elseif Insider == nil
then Insider_Spalte = align .. span .. bg_color .. "-"
elseif Insider == "{{{Bedeutung}}}"
then Insider_Spalte = align .. span .. bg_color .. "-"
elseif Insider == "{{{Herkunft}}}"
then Insider_Spalte = align .. span .. bg_color .. "-"
elseif Insider == "{{{Personen}}}"
then Insider_Spalte = align .. span .. bg_color .. "-"
elseif Insider == "{{{VOD}}}"
then Insider_Spalte = align .. span .. bg_color .. "-"
else
Insider_Spalte = align .. span .. bg_color .. Insider
end
return Insider_Spalte
end