Modul:Datei/Work: Unterschied zwischen den Versionen

Aus FürthWiki

keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 114: Zeile 114:
local date = pargs["Erstellungsdatum"] or ""
local date = pargs["Erstellungsdatum"] or ""
if date ~= "" then
if date ~= "" then
t = t .. p.attrZeile("Erstellungsdatum", lfd.linkFormDate(date, "Erstellungsdatum", "Erstellungstag", "Erstellungsjahr"),"englische Notation<br>für Medienbetrachter", date, nil, "fileinfotpl_date")
t = t .. p.attrZeile("Erstellungsdatum", lfd.linkFormDate(date, "Erstellungsdatum", "Erstellungstag", "Erstellungsjahr"))
t = t .. p.zeile("englische Notation<br>(nötig für Medienbetrachter)", date, nil, nil, "fileinfotpl_date")
end
end
date = pargs["ÜberDatum"] or ""
date = pargs["ÜberDatum"] or ""
Zeile 249: Zeile 250:
end
end
function p.attrZeile(a1, v1, a2, v2, id1, id2) -- Tabellenzeile mit max. 2 Attributen
function p.attrZeile(a1, v1, a2, v2, id1) -- Tabellenzeile mit max. 2 Attributen
local t = ""
local t = ""
if v1 ~= "" then
if v1 ~= "" then
Zeile 256: Zeile 257:
a2 = "[[Attribut:" .. a2 .. "|" .. wob.attr_text(a2) .. "]]"
a2 = "[[Attribut:" .. a2 .. "|" .. wob.attr_text(a2) .. "]]"
end
end
t = t .. p.zeile(a1, v1, a2, v2, id1, id2)
t = t .. p.zeile(a1, v1, a2, v2, id1)
end
end
return t
return t
end
end


function p.zeile(a1, v1, a2, v2, id1, id2) -- Tabellenzeile mit max. 2x2 Einträgen
function p.zeile(a1, v1, a2, v2, id1) -- Tabellenzeile mit max. 2x2 Einträgen
local t = ""
local t = ""
if v1 ~= "" then
if v1 ~= "" then
Zeile 274: Zeile 275:
else
else
t = t .. "<td>" .. v1 .. "</td>"
t = t .. "<td>" .. v1 .. "</td>"
if id2 == nil then
t = t .. "<td>'''" .. a2 .. "'''</td>"
t = t .. "<td>'''" .. a2 .. "'''</td>"
else
t = t .. "<td id=\"" .. id2 .. "\" class=\"fileinfo-paramfield\">'''" .. a2 .. "'''</td>"
end
t = t .. "<td>" .. v2 .. "</td>"
t = t .. "<td>" .. v2 .. "</td>"
end
end