Bureaucrats, Interface administrators, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), Suppressors, Administrators, trusted
11,104
edits
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 = | local volume = tonumber( frame.args['volume'] ) or 1 | ||
local 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 == | if volume == 1 then | ||
p_pdf = 47 + page | p_pdf = 47 + page | ||
else | else | ||
if volume == | if volume == 2 then | ||
p_pdf = 16 + page | p_pdf = 16 + page | ||
else | else |