Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Module:SB
(view source)
Revision as of 09:19, 22 April 2021
12 bytes removed
,
09:19, 22 April 2021
no edit summary
Line 9:
Line 9:
local vNum = string.format("%.2d", frame.args['volume'])
local vNum = string.format("%.2d", frame.args['volume'])
local iNum = string.format("%.2d", frame.args['item'])
local iNum = string.format("%.2d", frame.args['item'])
−
print(vNum)
+
--
print(vNum)
local p_int, p_frac = math.modf(frame.args['page'])
local p_int, p_frac = math.modf(frame.args['page'])
local pNum = string.format("%.3d", p_int)
local pNum = string.format("%.3d", p_int)
Line 16:
Line 16:
end
end
−
local id = string.format("%.2d", frame.args['volume']) .. '-' .. pNum .. '-' .. iNum
+
--
local id = string.format("%.2d", frame.args['volume']) .. '-' .. pNum .. '-' .. iNum
−
--
local id=
string
.
format("{0:d4}", frame
.
args[
'
volume
'
])
+
local id =
vNum .. '-' .. pNum
.. '
-
'
.. iNum
−
return id
+
return id
end
end
return sb
return sb
Pavel Malakhov
Bureaucrats
,
Interface administrators
,
Administrators (Semantic MediaWiki)
,
Curators (Semantic MediaWiki)
,
Editors (Semantic MediaWiki)
,
Suppressors
,
Administrators
, trusted
10,238
edits
Navigation menu
Personal tools
Log in
Namespaces
Module
Addition
Variants
Views
Read
View source
View history
More
Search
Library
Main page
All pages
All categories
Help
Popular
Secret Doctrine
HPB Scrapbooks
Blavatsky Collected Writings
Dictionary
Categories
Recent
Random page
Sections
Library
File Storage
In Russian
Links
Sites
Forums
Book stores
Theosophy Wiki
Tools
Upload file
Special pages
Printable version