Changes

Jump to navigation Jump to search
453 bytes added ,  12:20, 22 April 2021
no edit summary
Line 1: Line 1: −
{{ETG article
+
local sb = {} -- functions package for HPB Scrapbooks
|term=Aahla
+
 
|origin={{tip|Eg.}}
+
function sb.item_id( frame )
|description=One of the divisions of the Kerneter or infernal regions, or [[Amenti]] ; the word means the “Field of Peace”.
+
local id = frame.args['volume'] .. '-' .. frame.args['page'] .. '-' .. frame.args['item']
|categiries=TG terms
+
    return id
|related terms=Amenti
+
end
}}
+
 
 +
function sb.item_id2( frame )
 +
local vNum = string.format("%.2d", frame.args['volume'])
 +
local iNum = string.format("%.2d", frame.args['item'])
 +
--print(vNum)
 +
local p_int, p_frac = math.modf(frame.args['page'])
 +
local pNum = string.format("%.3d", p_int) 
 +
if p_frac > 0 then
 +
pNum = pNum .. '.' .. p_frac
 +
end
 +
 +
--local id = string.format("%.2d", frame.args['volume']) .. '-' .. pNum .. '-' .. iNum
 +
local id = vNum .. '--' .. pNum .. '--' .. iNum
 +
return id
 +
end
 +
 
 +
 
 +
return sb

Navigation menu