Insider: Unterschied zwischen den Versionen
Aus Bohnenwiki
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
(3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 4: | Zeile 4: | ||
local Insider = frame.args.Insider | local Insider = frame.args.Insider | ||
local Insider_Richtung = frame.args.Insider_Align | local Insider_Richtung = frame.args.Insider_Align | ||
local align = " " | local align = " " | ||
local bg_color = " " | local bg_color = "style=\"background: #ececec \"| " | ||
local span = " " | local span = " colspan=\"1\" " | ||
Insider_Spalte = " " | Insider_Spalte = " " | ||
Zeile 23: | Zeile 21: | ||
align = "| align=\"center\" " | align = "| align=\"center\" " | ||
end | end | ||
if Insider == "{{{Insider}}}" | if Insider == "{{{Insider}}}" | ||
then Insider_Spalte = align .. span .. bg_color .. "-" | then Insider_Spalte = align .. span .. bg_color .. "-" | ||
elseif Insider == "{{{Bedeutung}}}" | elseif Insider == "{{{Bedeutung}}}" | ||
Zeile 49: | Zeile 31: | ||
then Insider_Spalte = align .. span .. bg_color .. "-" | then Insider_Spalte = align .. span .. bg_color .. "-" | ||
elseif Insider == "{{{VOD}}}" | elseif Insider == "{{{VOD}}}" | ||
then Insider_Spalte = align .. span .. bg_color .. "-" | |||
elseif Insider == nil | |||
then Insider_Spalte = align .. span .. bg_color .. "-" | then Insider_Spalte = align .. span .. bg_color .. "-" | ||
else | else | ||
Insider_Spalte = align .. span .. bg_color .. Insider | |||
end | |||
return Insider_Spalte | |||
end | end | ||
return Insider |
Aktuelle Version vom 17. Juli 2015, 09:25 Uhr
Die Dokumentation für dieses Modul kann unter Modul:Insider/Doku erstellt werden
Insider = {}
function Insider.Zeile(frame)
local Insider = frame.args.Insider
local Insider_Richtung = frame.args.Insider_Align
local align = " "
local bg_color = "style=\"background: #ececec \"| "
local span = " colspan=\"1\" "
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 == "{{{Insider}}}"
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 .. "-"
elseif Insider == nil
then Insider_Spalte = align .. span .. bg_color .. "-"
else
Insider_Spalte = align .. span .. bg_color .. Insider
end
return Insider_Spalte
end
return Insider