Modul:LinkISBN: Unterschied zwischen den Versionen
Umbenennung
(code check) |
(Umbenennung) |
||
Zeile 2: | Zeile 2: | ||
local LinkISBN = { | local LinkISBN = { | ||
suite = 'LinkISBN', | suite = 'LinkISBN', | ||
serial = '2020- | serial = '2020-10-24', | ||
item = 65157187 | item = 65157187 | ||
} | } | ||
Zeile 12: | Zeile 12: | ||
local ci = require( 'Module:Check_isxn' ) | local ci = require( 'Module:Check_isxn' ) | ||
local fs = require( 'Module:Failsafe' ) | local fs = require( 'Module:Failsafe' ) | ||
local | local li = require( 'Module:Link utilities/i18n' ) | ||
local | local lu = require( 'Module:Link utilities' ) | ||
local yn = require( 'Module:Yesno' ) | local yn = require( 'Module:Yesno' ) | ||
Zeile 24: | Zeile 24: | ||
local comment = '' | local comment = '' | ||
m, comment = | m, comment = lu.extractComment( m ) | ||
m = m:gsub( 'ISBN *', '' ):upper() -- x -> X | m = m:gsub( 'ISBN *', '' ):upper() -- x -> X | ||
Zeile 53: | Zeile 53: | ||
-- split separate ISBNs | -- split separate ISBNs | ||
local items = | local items = lu.splitItems( args.isbn, li.delimiters ) | ||
-- analyse ISBNs | -- analyse ISBNs |