Modul:Citation: Unterschied zwischen den Versionen
OL
(formatters, checkRedundantParams, unwantedUrls) |
(OL) |
||
| Zeile 196: | Zeile 196: | ||
end | end | ||
if cu.isSet( args.ol ) | if cu.isSet( args.ol ) then | ||
args.ol = args.ol:gsub( '^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/OL', | |||
M = 'books/OL', | |||
W = 'works/OL' | |||
}; | }; | ||
cu.insertItem2( tab, prefix[ args.ol:sub( -1 ) ] .. args.ol, args.ol, 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 ) | ||