Zum Inhalt springen

Modul:Citation: Unterschied zwischen den Versionen

K
umgestellt
KKeine Bearbeitungszusammenfassung
K (umgestellt)
Zeile 193: Zeile 193:
args.noError = 'false'
args.noError = 'false'
end
end
local theDate = ''
local published = ''
if args.date ~= '' and args.edition then
if args.date ~= '' and args.edition then
args.date = mw.ustring.format( formatters.puDateEdition, args.date, args.edition )
theDate = mw.ustring.format( formatters.puDateEdition, args.date, args.edition )
end
end
if args.place ~= '' and args.publisher ~= '' then
if args.place ~= '' and args.publisher ~= '' then
args.place = mw.ustring.format( formatters.puPlacePub, args.place, args.publisher )
published = mw.ustring.format( formatters.puPlacePub, args.place, args.publisher )
end
end
if args.place == '' then
if published == '' then
args.place = args.date
published = theDate
args.date = ''
elseif theDate ~= '' then
end
published = mw.ustring.format( formatters.puPlaceDate, published, theDate )
if args.place ~= '' and args.date ~= '' then
args.place = mw.ustring.format( formatters.puPlaceDate, args.place, args.date )
end
end


local additions = { args.place }
local additions = { published }
if args.series ~= '' then
if args.series ~= '' then
table.insert( additions, mw.ustring.format( formatters.addSeries, args.series ) )
table.insert( additions, mw.ustring.format( formatters.addSeries, args.series ) )
Zeile 301: Zeile 301:
if next( rft ) then
if next( rft ) then
if args.type == 'book' or args.type == 'map' or args.type == 'collection' then
if args.type == 'book' or args.type == 'map' or args.type == 'collection' then
table.insert( rft, 1, 'rft.genre=book' )
table.insert( rft, 1, 'rft_val_fmt=' .. mw.uri.encode( 'info:ofi/fmt:kev:mtx:book' ) )
if args.type == 'collection' then
if args.type == 'collection' then
table.insert( rft, 'rft.atitle=' .. mw.uri.encode( args.title ) )
table.insert( rft, 'rft.atitle=' .. mw.uri.encode( args.title ) )
table.insert( rft, 'rft.btitle=' .. mw.uri.encode( args.collection ) )
table.insert( rft, 'rft.btitle=' .. mw.uri.encode( args.collection ) )
table.insert( rft, 1, 'rft.genre=bookitem' )
else
else
table.insert( rft, 'rft.btitle=' .. mw.uri.encode( args.title ) )
table.insert( rft, 'rft.btitle=' .. mw.uri.encode( args.title ) )
end
table.insert( rft, 1, 'rft.genre=book' )
end
table.insert( rft, 1, 'rft_val_fmt=' .. mw.uri.encode( 'info:ofi/fmt:kev:mtx:book' ) )
else
else
table.insert( rft, 1, 'rft.genre=journal' )
table.insert( rft, 1, 'rft.genre=journal' )
Anonymer Benutzer