Modul:Datei: Unterschied zwischen den Versionen

switch wob.attrText() zu atr.attrText()
(+ Wartungsmeldung Datei ohne Formular-Daten)
(switch wob.attrText() zu atr.attrText())
Zeile 8: Zeile 8:
local smw = require("Modul:SMW")
local smw = require("Modul:SMW")
local lfd = require("Modul:LinkFormDatum")
local lfd = require("Modul:LinkFormDatum")
local wob = require("Modul:Wörterbuch")
local atr = require("Modul:Attribut")
local kal = require("Modul:Kalender")
local kal = require("Modul:Kalender")


Zeile 154: Zeile 154:
end
end
t = t .. p.zeile(
t = t .. p.zeile(
"[[Attribut:" .. a[1] .. "|" .. wob.attrText(a[1]) .. "]]", v,
"[[Attribut:" .. a[1] .. "|" .. atr.attrText(a[1]) .. "]]", v,
"ausgeblendet:", ausgeblendet)
"ausgeblendet:", ausgeblendet)
mw.smw.set{[a[2]] = pargs[a[2]] or "Nein"}
mw.smw.set{[a[2]] = pargs[a[2]] or "Nein"}
Zeile 234: Zeile 234:
infotext = infotext .. "<br>"
infotext = infotext .. "<br>"
end
end
infotext = infotext .. wob.attrText("Urheber") .. ": " ..
infotext = infotext .. atr.attrText("Urheber") .. ": " ..
table.concat(urheber, ", ")
table.concat(urheber, ", ")
end
end
Zeile 249: Zeile 249:
infotext = infotext .. "<br>"
infotext = infotext .. "<br>"
end
end
infotext = infotext .. wob.attrText("Lizenz") .. ": " .. lizenz
infotext = infotext .. atr.attrText("Lizenz") .. ": " .. lizenz
end
end
if infotext ~= "" then
if infotext ~= "" then
Zeile 361: Zeile 361:
local t = ""
local t = ""
if v1 ~= "" then
if v1 ~= "" then
a1 = "[[Attribut:" .. a1 .. "|" .. wob.attrText(a1) .. "]]"
a1 = "[[Attribut:" .. a1 .. "|" .. atr.attrText(a1) .. "]]"
if a2 ~= nil and v2 ~= nil and v2 ~= "" then
if a2 ~= nil and v2 ~= nil and v2 ~= "" then
a2 = "[[Attribut:" .. a2 .. "|" .. wob.attrText(a2) .. "]]"
a2 = "[[Attribut:" .. a2 .. "|" .. atr.attrText(a2) .. "]]"
end
end
t = t .. p.zeile(a1, v1, a2, v2, id1)
t = t .. p.zeile(a1, v1, a2, v2, id1)