20.643
Bearbeitungen
(- Bild link=) |
(bildTab() + fbdata.bildlink) |
||
| Zeile 46: | Zeile 46: | ||
local bild = fbdata.pargs["Bild"] | local bild = fbdata.pargs["Bild"] | ||
if bild ~= nil then | if bild ~= nil then | ||
local bildlink = "" | |||
if fbdata.bildlink ~= nil then | |||
bildlink = "|link=" .. fbdata.bildlink | |||
end | |||
if wik.pageExists("Datei:" .. bild) then | if wik.pageExists("Datei:" .. bild) then | ||
local beschreibung = smw.getValues("Datei:" .. bild, "Beschreibung") | local beschreibung = smw.getValues("Datei:" .. bild, "Beschreibung") | ||
t = t .. | t = t .. "{| class = \"factbox_imagetable\" border = \"0\" cellpadding = \"0\" cellspacing = \"0\" width = \"100%\"\n" | ||
t = t .. | t = t .. "|-\n" | ||
t = t .. | t = t .. "|[[Datei:" .. bild .. "|768px" .. bildlink .. "]]\n" | ||
if beschreibung[1] ~= nil then | if beschreibung[1] ~= nil then | ||
t = t .. | t = t .. "|-\n" | ||
t = t .. | t = t .. "|" .. beschreibung[1] .. "\n" | ||
end | end | ||
t = t .. | t = t .. "|}" | ||
end | end | ||
smw.addAttrToList(fbdata.attr.list, "Bild", "Datei:" .. bild) | smw.addAttrToList(fbdata.attr.list, "Bild", "Datei:" .. bild) | ||
| Zeile 128: | Zeile 132: | ||
function p.table_header_footer_(t) | function p.table_header_footer_(t) | ||
return "<dl class = | return "<dl class = \"dataTable\">" .. t .. "</dl>" | ||
end | end | ||
function p.factbox_header_footer_(t) | function p.factbox_header_footer_(t) | ||
return "<div class = | return "<div class = \"factbox\"><tabs>" .. t .. "</tabs></div>" | ||
end | end | ||
return p | return p | ||