Modul:Citation: Unterschied zwischen den Versionen
+webnews
(bookitem, cite classes) |
(+webnews) |
||
| Zeile 2: | Zeile 2: | ||
local citation = { | local citation = { | ||
suite = 'Citation', | suite = 'Citation', | ||
serial = '2021-08- | serial = '2021-08-19', | ||
item = 56159597 | item = 56159597 | ||
} | } | ||
| Zeile 62: | Zeile 62: | ||
local i | local i | ||
if args.type == 'web' and not cu.isSet( args.title ) and not cu.isSet( args.url ) then | if ( args.type == 'web' or args.type == 'webnews' ) | ||
and not cu.isSet( args.title ) and not cu.isSet( args.url ) then | |||
args.title = ci.texts.noTitle | args.title = ci.texts.noTitle | ||
cu.addErrorMsg( ci.texts.noTitleUrl ) | cu.addErrorMsg( ci.texts.noTitleUrl ) | ||
| Zeile 478: | Zeile 479: | ||
end | end | ||
if not cu.isSet( title ) then | if not cu.isSet( title ) then | ||
if args.type ~= 'web' then | if args.type ~= 'web' or args.type == 'webnews' then | ||
title = ci.texts.noTitle | title = ci.texts.noTitle | ||
cu.addErrorMsg( ci.texts.unknownPeriodical ) | cu.addErrorMsg( ci.texts.unknownPeriodical ) | ||
| Zeile 581: | Zeile 582: | ||
citation = makeCollection( args ) | citation = makeCollection( args ) | ||
elseif args.type == 'journal' or args.type == 'newspaper' | elseif args.type == 'journal' or args.type == 'newspaper' | ||
or args.type == 'web' then | or args.type == 'web' or args.type == 'webnews' then | ||
citation = makePeriodical( args ) | citation = makePeriodical( args ) | ||
else | else | ||