10.754
redigeringer
Lasse (diskussion | bidrag) No edit summary |
Lasse (diskussion | bidrag) No edit summary |
||
| Linje 212: | Linje 212: | ||
-- todo - antager at der altid er et komma til sidst | -- todo - antager at der altid er et komma til sidst | ||
t = string.sub(term, 1, -2) | t = string.sub(term, 1, -2) | ||
return '([[' .. t .. ']]' .. ',' | return '([[' .. t .. ']]' .. ', ' | ||
end | end | ||
| Linje 229: | Linje 229: | ||
if (mw.ustring.upper(mw.ustring.sub( bog, 1, 2 )) == "LB") then | if (mw.ustring.upper(mw.ustring.sub( bog, 1, 2 )) == "LB") then | ||
if ( tonumber(stykke) ~= nil) then | if ( tonumber(stykke) ~= nil) then | ||
return '[https://www.martinus.dk/da/onlinebibliotek/dtt/index.php?bog=' .. bogIDer[bog] .. '&stk=' .. stykke .. ' ' .. stykke .. ']' | return '[https://www.martinus.dk/da/onlinebibliotek/dtt/index.php?bog=' .. bogIDer[bog] .. '&stk=' .. stykke .. ' ' .. stykke .. '])' | ||
end | end | ||