Jump to content

Module:SD: Difference between revisions

15 bytes removed ,  Thursday at 04:08
m
no edit summary
mNo edit summary
mNo edit summary
 
Line 13: Line 13:
-- vol. 3, pages: i-xx, 1-594
-- vol. 3, pages: i-xx, 1-594
function sd.pdf_page( frame )
function sd.pdf_page( frame )
local volume = string.format("%.2d", frame.args['volume'])
local volume = tonumber( frame.args['volume'] ) or 1
local page = string.format("%.2d", frame.args['page'])
local page = tonumber( frame.args['page'] ) or 1
local p_pdf = 1
local p_pdf = 1


--mw.log('vol= '.. volume .. ', page= ' .. page)
--mw.log('vol= '.. volume .. ', page= ' .. page)
if volume == '1' then
if volume == 1 then
p_pdf = 47 + page
p_pdf = 47 + page
else  
else  
if volume == '2' then
if volume == 2 then
p_pdf = 16 + page
p_pdf = 16 + page
else  
else