Modul:Link utilities: Unterschied zwischen den Versionen
Wartung
(Wartung, Kommentare) |
(Wartung) |
||
| Zeile 2: | Zeile 2: | ||
local LinkBase = { | local LinkBase = { | ||
suite = 'LinkBase', | suite = 'LinkBase', | ||
serial = '2019-07- | serial = '2019-07-10', | ||
item = 65228027 | item = 65228027 | ||
} | } | ||
| Zeile 8: | Zeile 8: | ||
-- module variable | -- module variable | ||
local lb = {} | local lb = {} | ||
-- module import | |||
local fs = require( 'Module:Failsafe' ) | |||
-- split separate items like numbers | -- split separate items like numbers | ||
| Zeile 55: | Zeile 58: | ||
return catPrefix .. aCat .. ']]' .. '<span class="' .. aClass .. '" title="' | return catPrefix .. aCat .. ']]' .. '<span class="' .. aClass .. '" title="' | ||
.. aCat .. '">' .. aCat .. '</span>' | .. aCat .. '">' .. aCat .. '</span>' | ||
end | |||
-- module administration | |||
function lb.LinkBase() | |||
return LinkBase | |||
end | |||
function lb.failsafe( version ) | |||
return fs._failsafe( version, LinkBase ) or '' | |||
end | end | ||
return lb | return lb | ||