Bureaucrats, Interface administrators, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), Suppressors, Administrators, trusted
17,577
edits
(Created page with "local sd = {} -- functions package for HPB Scrapbooks local function isempty(s) return s == nil or s == '' end -- Return pdf page number in The Secret Doctrin, which coresponds to book page -- Example for vol.1: xxx → 30; 100 → 53 -- Call example: {{#invoke: SD | volume=1 | page=17}} -- Values: -- vol. 1, pages: i-xlvii, 1-676 -- vol. 2, pages: i-xvi, 1-798 -- vol. 3, pages: i-xx, 1-594 function sd.pdf_page( frame ) local volume = string.format("%.2d", frame.arg...") |
mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
local sd = {} -- functions package for | local sd = {} -- functions package for “Secret Doctrine” by H.P. Blavatsky | ||
local function isempty(s) | local function isempty(s) | ||
| Line 7: | Line 7: | ||
-- Return pdf page number in The Secret Doctrin, which coresponds to book page | -- Return pdf page number in The Secret Doctrin, which coresponds to book page | ||
-- Example for vol.1: xxx → 30; 100 → 53 | -- Example for vol.1: xxx → 30; 100 → 53 | ||
-- Call example: {{#invoke: SD | volume=1 | page=17}} | -- Call example: {{#invoke: SD | pdf_page | volume=1 | page=17}} | ||
-- Values: | -- Values: | ||
-- vol. 1, pages: i-xlvii, 1-676 | -- vol. 1, pages: i-xlvii, 1-676 | ||
| 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 | ||