Modul:Citation: Unterschied zwischen den Versionen
K
keine Bearbeitungszusammenfassung
KKeine Bearbeitungszusammenfassung |
KKeine Bearbeitungszusammenfassung |
||
| Zeile 404: | Zeile 404: | ||
table.insert( tab, | table.insert( tab, | ||
mw.ustring.format( formatters.dbJstor, args.jstor, args.jstor ) ) | mw.ustring.format( formatters.dbJstor, args.jstor, args.jstor ) ) | ||
end | |||
end | |||
local function getDate( aDate, aFormat ) | |||
local function formatDate( aDate, aFormat ) | |||
return mw.getContentLanguage():formatDate( aFormat, aDate, true ) | |||
end | |||
if aDate ~='' then | |||
local success, t; | |||
success, t = pcall( formatDate, aDate, aFormat ) | |||
if success then | |||
return t | |||
else | |||
table.insert( errorMsgs, texts.wrongDate ) | |||
return '' | |||
end | |||
else | |||
return '' | |||
end | end | ||
end | end | ||
| Zeile 502: | Zeile 521: | ||
end | end | ||
return title | return title | ||
end | end | ||