20.564
Bearbeitungen
(fix Lizenz in Dateiinfo) |
(+ Wartungsmeldung Datei-Freiattribut-Fehler Straßen/Orts-Angabe) |
||
| (5 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
| Zeile 67: | Zeile 67: | ||
end | end | ||
if aw_fail then | if aw_fail then | ||
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. | 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 166: | Zeile 174: | ||
"</span>" .. | "</span>" .. | ||
"</td>" .. | "</td>" .. | ||
"</tr>" | "</tr>" .. | ||
"{{#set:Lizenz=" .. lizenz .. "}}" | |||
end | end | ||
| Zeile 195: | Zeile 204: | ||
infotext = infotext .. "<br>" | infotext = infotext .. "<br>" | ||
end | end | ||
infotext = infotext .. wob. | infotext = infotext .. wob.attrText("Urheber") .. ": " .. | ||
table.concat(urheber, ", ") | table.concat(urheber, ", ") | ||
end | end | ||
| Zeile 210: | Zeile 219: | ||
infotext = infotext .. "<br>" | infotext = infotext .. "<br>" | ||
end | end | ||
infotext = infotext .. wob. | infotext = infotext .. wob.attrText("Lizenz") .. ": " .. lizenz | ||
end | end | ||
if infotext ~= "" then | if infotext ~= "" then | ||
| Zeile 316: | Zeile 325: | ||
local t = "" | local t = "" | ||
if v1 ~= "" then | if v1 ~= "" then | ||
a1 = "[[Attribut:" .. a1 .. "|" .. wob. | 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. | 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) | ||