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 | ||
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 | ||
published = mw.ustring.format( formatters.puPlacePub, args.place, args.publisher ) | |||
end | end | ||
if | if published == '' then | ||
published = theDate | |||
elseif theDate ~= '' then | |||
published = mw.ustring.format( formatters.puPlaceDate, published, theDate ) | |||
end | end | ||
local additions = { | 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 | ||
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 ) ) | ||
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' ) | ||