20.564
Bearbeitungen
(Straße/Ort auch als Freiattribut möglich) |
(+ Wartungsmeldung Datei-Freiattribut-Fehler Straßen/Orts-Angabe) |
||
| (3 dazwischenliegende Versionen desselben Benutzers 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 106: | Zeile 106: | ||
end | end | ||
elseif a == "Straße" then -- Straße als Freiattribute wird zu pargs["Straße"] verschoben | 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 | pargs["Straße"] = (pargs["Straße"] or "") .. ";" .. w | ||
v = "" | v = "" | ||
elseif a == "Ort" then -- Ort als Freiattribute wird zu pargs["Ort"] verschoben | 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 | pargs["Ort"] = (pargs["Ort"] or "") .. ";" .. w | ||
v = "" | v = "" | ||
| Zeile 126: | 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 202: | 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 217: | 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 323: | 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) | ||