Modul:Citation: Unterschied zwischen den Versionen

OL
(formatters, checkRedundantParams, unwantedUrls)
(OL)
Zeile 196: Zeile 196:
end
end


if cu.isSet( args.ol ) and not args.ol:match( '^OL%d+[AMW]$' ) then
if cu.isSet( args.ol ) then
args.ol = ''
args.ol = args.ol:gsub( '^OL', '' )
table.insert( wrong, 'ol' )
if not args.ol:match( '^[1-9]%d*[AMW]$' ) then
args.ol = ''
table.insert( wrong, 'ol' )
end
end
end


Zeile 345: Zeile 348:
elseif cu.isSet( args.ol ) then
elseif cu.isSet( args.ol ) then
local prefix = {
local prefix = {
['A']='authors/',
A = 'authors/OL',
['M']='books/',
M = 'books/OL',
['W']='works/'
W = 'works/OL'
};
};
local link = prefix[ args.ol:sub( -1 ) ] .. args.ol
cu.insertItem2( tab, prefix[ args.ol:sub( -1 ) ] .. args.ol, args.ol, ci.params.ol.format )
cu.insertItem2( tab, link, args.ol:sub( 3 ), ci.params.ol.format )
elseif cu.isSet( args.asin ) then
elseif cu.isSet( args.asin ) then
cu.insertItem2( tab, args.asin, args.asin, ci.params.asin.format )
cu.insertItem2( tab, args.asin, args.asin, ci.params.asin.format )
Anonymer Benutzer