Spring til indhold

Modul:Reference: Forskelle mellem versioner

83 bytes tilføjet ,  10. februar 2021
ingen redigeringsopsummering
No edit summary
No edit summary
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
        
        
       styknummer, efterbindestreg = stykke:match("(.+)-(.+)")
       if (stykke.match(str, "-")) then
      return 'stukke har -'
      end
 
  if (stykke.match(str, ".")) then
    return 'stukke har .'
      end
 
       if ( tonumber(stykke) ~= nil) then
       if ( tonumber(stykke) ~= nil) then
       return '[https://www.martinus.dk/da/onlinebibliotek/dtt/index.php?bog=' .. bogIDer[bog] .. '&stk=' .. styknummer .. ' ' .. styknummer .. '])'
       return '[https://www.martinus.dk/da/onlinebibliotek/dtt/index.php?bog=' .. bogIDer[bog] .. '&stk=' .. stykke .. ' ' .. stykke .. '])'
       end
       end