Jump to content

Module:PDF: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 13: Line 13:
local page = tonumber( frame.args['page'] ) or 1  
local page = tonumber( frame.args['page'] ) or 1  
local p_pdf = 1
local p_pdf = 1
if page < 1 then page = 1 end


--mw.log('vol= '.. volume .. ', page= ' .. page)
--mw.log('vol= '.. volume .. ', page= ' .. page)
Line 29: Line 30:
if page > 464 then p_pdf = p_pdf + 2 end
if page > 464 then p_pdf = p_pdf + 2 end
if page > 480 then p_pdf = p_pdf + 2 end
if page > 480 then p_pdf = p_pdf + 2 end
if page > 665 then p_pdf = 665 end
elseif volume == 2 then
elseif volume == 2 then
p_pdf = 42 + page
p_pdf = 42 + page