Modul:LinkISBN: Unterschied zwischen den Versionen
umgestellt
K (Kleine Änderungen) |
(umgestellt) |
||
Zeile 13: | Zeile 13: | ||
local ci = require( 'Modul:Check_isxn' ) | local ci = require( 'Modul:Check_isxn' ) | ||
local lb = require( 'Module:LinkBase' ) | |||
local yn = require( 'Modul:Yesno' ) | local yn = require( 'Modul:Yesno' ) | ||
Zeile 46: | Zeile 47: | ||
args.demo = yn( args.demo or '', false ) | args.demo = yn( args.demo or '', false ) | ||
local s | local i, s | ||
local result = '' | local result = '' | ||
if args.isbn ~= '' then | if args.isbn ~= '' then | ||
-- | -- split separate numbers | ||
local items = lb.splitItems( args.isbn, li.delimiters ) | |||
-- split seperate ISBNs and analyse them | -- split seperate ISBNs and analyse them | ||
for | for i = 1, #items, 1 do | ||
s = li.linkISBN( | s = li.linkISBN( items[ i ], args.noerror, args.demo ) | ||
if s ~= '' then | if s ~= '' then | ||
if result == '' then result = s | if result == '' then result = s |