Modul:LinkISBN: Unterschied zwischen den Versionen
LinkBase/i18n
KKeine Bearbeitungszusammenfassung |
(LinkBase/i18n) |
||
Zeile 2: | Zeile 2: | ||
local LinkISBN = { | local LinkISBN = { | ||
suite = 'LinkISBN', | suite = 'LinkISBN', | ||
serial = '2019-07- | serial = '2019-07-26', | ||
item = 65157187 | item = 65157187 | ||
} | } | ||
-- module variable, i18n | -- module variable, i18n | ||
local li = { | local li = {} | ||
} | |||
-- module import | -- module import | ||
Zeile 23: | Zeile 13: | ||
local fs = require( 'Module:Failsafe' ) | local fs = require( 'Module:Failsafe' ) | ||
local lb = require( 'Module:LinkBase' ) | local lb = require( 'Module:LinkBase' ) | ||
local li = require( 'Module:LinkBase/i18n' ) | |||
local yn = require( 'Module:Yesno' ) | local yn = require( 'Module:Yesno' ) | ||
Zeile 36: | Zeile 27: | ||
m = m:gsub( 'ISBN *', '' ):upper() -- x -> X | m = m:gsub( 'ISBN *', '' ):upper() -- x -> X | ||
t = '<span class="' .. li. | t = '<span class="' .. li.classes.booksources .. '" title="' | ||
.. li.categories.special .. m .. '">[[' .. li.categories.special | |||
.. m .. '|' .. 'ISBN ' .. m .. ']]</span>' | |||
if not noerror then | if not noerror then | ||
t = t .. ci._check_isbn( m, li. | t = t .. ci._check_isbn( m, | ||
li.categories.invalidISBN .. ( demo and '' or li.invalidCat ) ) | |||
end | end | ||
if comment ~= '' then | if comment ~= '' then |