Przejdź do zawartości

Moduł:PL Wstępna charakterystyka bakteriofaga Serratia φOS10 J. Kamiński.pdf/dymek

Z Wikiźródeł, wolnej biblioteki

Dokumentacja dla tego modułu może zostać utworzona pod nazwą Moduł:PL Wstępna charakterystyka bakteriofaga Serratia φOS10 J. Kamiński.pdf/dymek/opis

  --  dymek = podmoduł oddający numer strony przypisu na podstawie jego numeru w bibliografii
local p = {}

function p.STR(frame)
   local nr = frame.args[1] and tonumber(mw.text.trim(frame.args[1]))
   if(not nr) then return end
    
    if     1 <= nr  and nr <=   17 then     result =   "91"      end
    if    18 <= nr  and nr <=   35 then     result =   "92"      end
    if    36 <= nr  and nr <=   54 then     result =   "93"      end
    if    55 <= nr  and nr <=   71 then     result =   "94"      end
    if    72 <= nr  and nr <=   90 then     result =   "95"      end
    if    91 <= nr  and nr <=  108 then     result =   "96"      end
    if   109 <= nr  and nr <=  127 then     result =   "97"      end
    if   128 <= nr  and nr <=  145 then     result =   "98"      end
    if   146 <= nr  and nr <=  163 then     result =   "99"      end
    if   164 <= nr  and nr <=  183 then     result =  "100"      end
    if   184 == nr                 then     result =  "101"      end


return result end

return p