Modul:Faktenbox: Unterschied zwischen den Versionen

com.isEmpty raus
(- zeileGeokoordinate())
(com.isEmpty raus)
Zeile 105: Zeile 105:
local beschreibung = que.getValues("Datei:" .. (fbdata.pargs["Bild"] or ""), "Beschreibung")
local beschreibung = que.getValues("Datei:" .. (fbdata.pargs["Bild"] or ""), "Beschreibung")
local beschreibung = beschreibung[1] or ""
local beschreibung = beschreibung[1] or ""
if not com.isEmpty(fbdata.pargs["Bild"]) and wik.pageexists("Bild:" .. fbdata.pargs["Bild"]) then
if (fbdata.pargs["Bild"] or "") ~= "" and wik.pageexists("Bild:" .. fbdata.pargs["Bild"]) then
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'
Zeile 200: Zeile 200:
if ask_result ~= nil then
if ask_result ~= nil then
for i, z in ipairs(ask_result) do -- Ergebniszeile durchiterieren
for i, z in ipairs(ask_result) do -- Ergebniszeile durchiterieren
if not com.isEmpty(z.Benennung) or not com.isEmpty(z.BenanntNach) then
if (z.Benennung or "") ~= "" or (z.BenanntNach or "") ~= "" then
if first then
if first then
t = t .. "<nowiki></nowiki>\n" -- nötig, warum auch immer, damit erster Listeeintrag richtig gerendert wird
t = t .. "<nowiki></nowiki>\n" -- nötig, warum auch immer, damit erster Listeeintrag richtig gerendert wird
Zeile 469: Zeile 469:
end
end
-- Wartungs-Kategorien
-- Wartungs-Kategorien
if com.isEmpty(fbdata.pargs["Bild"]) then
if (fbdata.pargs["Bild"] or "") == "" then
if fbdata.kategorie ~= nil then
if fbdata.kategorie ~= nil then
t = t .. "[[Kategorie:" .. fbdata.kategorie[1] .. " ohne Bild]]"
t = t .. "[[Kategorie:" .. fbdata.kategorie[1] .. " ohne Bild]]"
Zeile 484: Zeile 484:
t = t .. "[[Kategorie:Hat Slash]]"
t = t .. "[[Kategorie:Hat Slash]]"
end
end
if not com.isEmpty(fbdata.strasse_hnr) then
if fbdata.strasse_hnr ~= nil then
if fbdata.strasse_hnr.suspekt then
if fbdata.strasse_hnr.suspekt then
t = t .. "[[Kategorie:Gebäude mit verdächtiger Straße-Hausnummer-Kombination]]"
t = t .. "[[Kategorie:Gebäude mit verdächtiger Straße-Hausnummer-Kombination]]"