15.082
Bearbeitungen
(+ Dateiinfo) |
(Optimierungen Dateiinfo) |
||
| Zeile 166: | Zeile 166: | ||
-- Dateiinfo erstellen | -- Dateiinfo erstellen | ||
local | local infotext = "" | ||
local dateiinfo = "" | |||
if not com.isEmpty(args.Beschreibung) then | if not com.isEmpty(args.Beschreibung) then | ||
dateiinfo = dateiinfo .. args.Beschreibung | infotext = infotext .. args.Beschreibung | ||
dateiinfo = dateiinfo .. wik.wikiTextLimit(args.Beschreibung, 75) | |||
end | end | ||
if not com.isEmpty(args.Urheber) then | if not com.isEmpty(args.Urheber) then | ||
if | if infotext ~= "" then | ||
infotext = infotext .. "<br>" | |||
end | end | ||
infotext = infotext .. "'''Urheber:''' " .. args.Urheber | |||
end | end | ||
if not com.isEmpty(args.Erstellungsdatum) then | if not com.isEmpty(args.Erstellungsdatum) then | ||
if infotext ~= "" then | |||
infotext = infotext .. "<br>" | |||
end | |||
infotext = infotext .. "'''Erstellungsdatum:''' " .. | |||
lfd.linkFormDate(args.Erstellungsdatum) | |||
end | |||
if mw.ustring.len(dateiinfo) ~= mw.ustring.len(args.Beschreibung) then | |||
dateiinfo = dateiinfo .. " ..." | |||
end | |||
if infotext ~= "" then | |||
if dateiinfo ~= "" then | if dateiinfo ~= "" then | ||
dateiinfo = dateiinfo .. " | dateiinfo = dateiinfo .. " " | ||
end | end | ||
dateiinfo = dateiinfo .. "''' | dateiinfo = dateiinfo .. "{{#info:" .. infotext .. "}}" | ||
end | |||
if dateiinfo ~= "" then | |||
t=t..'<tr>'.. | |||
'<td>[[Attribut:Dateiinfo|Dateiinfo]] (automatisch erstellt)</td>'.. | |||
'<td colspan="3">[[Dateiinfo::' .. dateiinfo .. ']]</td>'.. | |||
'</tr>' | |||
end | end | ||
t=t..'<tr>'.. | t=t..'<tr>'.. | ||