Bureaucrats, Interface administrators, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), Suppressors, Administrators, trusted
10,488
edits
No edit summary |
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 | ||