Modul:Datei: Unterschied zwischen den Versionen

499 Bytes hinzugefügt ,  Mittwoch um 11:36
+ Wartungsmeldung Datei-Freiattribut-Fehler Straßen/Orts-Angabe
(fix fehlendes #set Lizenz)
(+ Wartungsmeldung Datei-Freiattribut-Fehler Straßen/Orts-Angabe)
 
(4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 67: Zeile 67:
end
end
if aw_fail then
if aw_fail then
t = t .. "[[Kategorie:Freiattribut-Fehler]]"
mw.smw.set{["Wartungsmeldung"]="Datei-Freiattribut-Fehler"}
end
end
for a, w in pairs(aw) do
for a, w in pairs(aw) do
Zeile 105: Zeile 105:
v_query
v_query
end
end
elseif a == "Straße" then -- Straße als Freiattribute wird zu pargs["Straße"] verschoben
mw.smw.set{["Wartungsmeldung"]="Datei-Freiattribut-Fehler Straßen-Angabe"}
pargs["Straße"] = (pargs["Straße"] or "") .. ";" .. w
v = ""
elseif a == "Ort" then -- Ort als Freiattribute wird zu pargs["Ort"] verschoben
mw.smw.set{["Wartungsmeldung"]="Datei-Freiattribut-Fehler Orts-Angabe"}
pargs["Ort"] = (pargs["Ort"] or "") .. ";" .. w
v = ""
else
else
v = p.attrValList(a, {[a] = w})
v = p.attrValList(a, {[a] = w})
Zeile 120: Zeile 128:
v = p.attrValList(a[1], pargs)
v = p.attrValList(a[1], pargs)
if v ~= "" then
if v ~= "" then
t = t .. p.zeile("[[Attribut:" .. a[1] .. "|" .. wob.attr_text(a[1]) .. "]]", v,
t = t .. p.zeile("[[Attribut:" .. a[1] .. "|" .. wob.attrText(a[1]) .. "]]", v,
"ausgeblendet:", "[[" .. a[2] .. "::" .. (pargs[a[2]] or "Nein") .. "]]")
"ausgeblendet:", "[[" .. a[2] .. "::" .. (pargs[a[2]] or "Nein") .. "]]")
end
end
Zeile 196: Zeile 204:
infotext = infotext .. "<br>"
infotext = infotext .. "<br>"
end
end
infotext = infotext .. wob.attr_text("Urheber") .. ": " ..
infotext = infotext .. wob.attrText("Urheber") .. ": " ..
table.concat(urheber, ", ")
table.concat(urheber, ", ")
end
end
Zeile 211: Zeile 219:
infotext = infotext .. "<br>"
infotext = infotext .. "<br>"
end
end
infotext = infotext .. wob.attr_text("Lizenz") .. ": " .. lizenz
infotext = infotext .. wob.attrText("Lizenz") .. ": " .. lizenz
end
end
if infotext ~= "" then
if infotext ~= "" then
Zeile 317: Zeile 325:
local t = ""
local t = ""
if v1 ~= "" then
if v1 ~= "" then
a1 = "[[Attribut:" .. a1 .. "|" .. wob.attr_text(a1) .. "]]"
a1 = "[[Attribut:" .. a1 .. "|" .. wob.attrText(a1) .. "]]"
if a2 ~= nil and v2 ~= nil and v2 ~= "" then
if a2 ~= nil and v2 ~= nil and v2 ~= "" then
a2 = "[[Attribut:" .. a2 .. "|" .. wob.attr_text(a2) .. "]]"
a2 = "[[Attribut:" .. a2 .. "|" .. wob.attrText(a2) .. "]]"
end
end
t = t .. p.zeile(a1, v1, a2, v2, id1)
t = t .. p.zeile(a1, v1, a2, v2, id1)