17.707
Bearbeitungen
(function p.factbox_(t)) |
(bild = fbdata.pargs["Bild"]) |
||
| Zeile 42: | Zeile 42: | ||
-- =p.bildTab_{pargs={Bild="Erloeserkirche.jpg"}} | -- =p.bildTab_{pargs={Bild="Erloeserkirche.jpg"}} | ||
local t = "" | local t = "" | ||
local bild = fbdata.pargs["Bild"] | |||
if wik.pageExists("Bild:" .. | if bild ~= nil then | ||
local beschreibung = smw.getValues("Datei:" .. | if wik.pageExists("Bild:" .. bild) then | ||
local beschreibung = smw.getValues("Datei:" .. bild, "Beschreibung") | |||
t = t .. '{| class = "factbox_imagetable" border = "0" cellpadding = "0" cellspacing = "0" width = "100%"\n' | t = t .. '{| class = "factbox_imagetable" border = "0" cellpadding = "0" cellspacing = "0" width = "100%"\n' | ||
t = t .. '|-\n' | t = t .. '|-\n' | ||
t = t .. '|[[Datei:' .. | t = t .. '|[[Datei:' .. bild .. '|768px|link=' .. (seite or '') .. ']]\n' | ||
if beschreibung[1] ~= nil then | if beschreibung[1] ~= nil then | ||
t = t .. '|-\n' | t = t .. '|-\n' | ||
| Zeile 54: | Zeile 55: | ||
t = t .. '|}' | t = t .. '|}' | ||
end | end | ||
smw.addAttrToList(fbdata.attr.list, "Bild", "Datei:" .. | smw.addAttrToList(fbdata.attr.list, "Bild", "Datei:" .. bild) | ||
end | end | ||
-- Tab draus machen | -- Tab draus machen | ||