Modul:LinkISBN: Unterschied zwischen den Versionen
Wartung
(Wartung) |
(Wartung) |
||
Zeile 31: | Zeile 31: | ||
local comment = '', t | local comment = '', t | ||
m, comment = lb.extractComment( m ) | |||
m = | m = m:gsub( 'ISBN *', '' ):upper() -- x -> X | ||
t = '<span class="' .. li.class .. '" title="' .. li.special .. m | t = '<span class="' .. li.class .. '" title="' .. li.special .. m | ||
.. '">[[' .. li.special .. m .. '|' .. 'ISBN ' .. m .. ']]</span>' | .. '">[[' .. li.special .. m .. '|' .. 'ISBN ' .. m .. ']]</span>' | ||
if not noerror then | if not noerror then | ||
t = t .. ci._check_isbn( m, li.invalid .. ( demo and '' or li.invalidCat ) ) | |||
end | end | ||
if comment ~= '' then | if comment ~= '' then | ||
Zeile 55: | Zeile 46: | ||
function li.linkISBNSet( args ) | function li.linkISBNSet( args ) | ||
args.isbn = args.isbn or args[1] or '' | args.isbn = args.isbn or args[ 1 ] or '' | ||
args.noerror = yn( args.noerror | args.noerror = yn( args.noerror, false ) | ||
if args.isbn == '' then | if args.isbn == '' then | ||
return '' | return '' |