Zum Inhalt springen

Modul:Citation: Unterschied zwischen den Versionen

K
Jahr Buch
KKeine Bearbeitungszusammenfassung
K (Jahr Buch)
Zeile 333: Zeile 333:
return formatters.dbIssn:gsub( 'xx1xx', issn )
return formatters.dbIssn:gsub( 'xx1xx', issn )
.. cx.check_issn( { args = { [ 1 ] = issn, error = text } } )
.. cx.check_issn( { args = { [ 1 ] = issn, error = text } } )
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


local function makePublisher( args, tab )
local function makePublisher( args, tab )
local theDate = args.date
local theDate = ''
if args.date ~= '' then
if dateFormat ~= '' and dateFormat ~= 'Y' then
dateFormat = 'M Y'
end
theDate = getDate( args.date, dateFormat )
end
 
local published = ''
local published = ''


Zeile 404: Zeile 430:
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
Anonymer Benutzer