Changes
Jump to navigation
Jump to search
← 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,259
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