Modul:Citation: Unterschied zwischen den Versionen
Aufruf vergessen
(Umstellung) |
(Aufruf vergessen) |
||
| Zeile 231: | Zeile 231: | ||
if args.date:match( '^[12]%d%d%d%-[01]?%d%-[0123]?%d$' ) then | if args.date:match( '^[12]%d%d%d%-[01]?%d%-[0123]?%d$' ) then | ||
dateFormat = 'j. F Y' | dateFormat = 'j. F Y' | ||
elseif args.date:match( '^[12]%d%d%d%-[01]?%d | elseif args.date:match( '^[12]%d%d%d%-[01]?%d$' ) then | ||
dateFormat = 'M Y' | dateFormat = 'M Y' | ||
elseif args.date:match( '^[12]%d%d%d | elseif args.date:match( '^[12]%d%d%d$' ) then | ||
dateFormat = 'Y' | dateFormat = 'Y' | ||
else | else | ||
| Zeile 249: | Zeile 249: | ||
end | end | ||
if args.accessDate ~= '' and | if args.accessDate ~= '' and | ||
not args.accessDate:match( '^20%d%d | not args.accessDate:match( '^20%d%d-[01]?%d-[0123]?%d$' ) then | ||
args.accessDate = '' | args.accessDate = '' | ||
table.insert( errorMsgs, texts.wrongDate ) | table.insert( errorMsgs, texts.wrongDate ) | ||
| Zeile 560: | Zeile 560: | ||
day = '' | day = '' | ||
if args.date ~= '' then | if args.date ~= '' then | ||
if | if dateFormat == 'j. F Y' then | ||
day = getDate( args.date, 'l, j. F Y' ) | day = getDate( args.date, 'l, j. F Y' ) | ||
else | else | ||
| Zeile 664: | Zeile 664: | ||
local args, citation | local args, citation | ||
args = checkParams( frameArgs ) | args = checkParams( frameArgs ) | ||
checkValues( args ) | |||
if args.type == 'map' or args.type == 'book' then | if args.type == 'map' or args.type == 'book' then | ||
| Zeile 715: | Zeile 716: | ||
function ci.citation( frame ) | function ci.citation( frame ) | ||
local args = frame:getParent().args | local args = frame:getParent().args | ||
aType = getArgValue( 'type', args ) | aType = getArgValue( 'type', args ) | ||