Open main menu
Home
Random
Log in
Settings
About Teopedia library
Disclaimers
Teopedia library
Search
Changes
← Older edit
Newer edit →
Module:SB
(view source)
Revision as of 12:20, 22 April 2021
10 bytes removed
,
12:20, 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,246
edits