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 15:19, 21 October 2022
595 bytes added
,
15:19, 21 October 2022
no edit summary
Line 24:
Line 24:
local id = vNum .. '-' .. pNum .. '-' .. iNum
local id = vNum .. '-' .. pNum .. '-' .. iNum
return id
return id
+
end
+
+
-- Create unique ID for the item, which consist of: Volume-Page-Item_on_page
+
-- ID example: 01-017-03
+
-- Call example: {{#invoke: SB | item_id | volume=1 | page=17 | item=3 }}
+
-- Values: volume=1..99, page=1..999, item=1..99
+
function sb.footnote( frame )
+
local str = ''
+
+
if frame.args['author'] > 0 then
+
str = 'by ' .. frame.args['author']
+
else
+
str = 'by unknown author'
+
end
+
+
if frame.args['archivist_notes'] > 0 then
+
str = 'by ' .. frame.args['author']
+
else
+
str = 'by unknown author'
+
end
+
+
local final_str = '<i>' .. frame.args['title'] .. '</i>' .. str
+
return final_str
end
end
Pavel Malakhov
Bureaucrats
,
Interface administrators
,
Administrators (Semantic MediaWiki)
,
Curators (Semantic MediaWiki)
,
Editors (Semantic MediaWiki)
,
Suppressors
,
Administrators
, trusted
10,278
edits