Module:SB: Difference between revisions

363 bytes added ,  14 April 2023
m
+language and translator
mNo edit summary
m (+language and translator)
 
(2 intermediate revisions by the same user not shown)
Line 31: Line 31:


-- Create footnote with item summary and notes by editor and archivist
-- Create footnote with item summary and notes by editor and archivist
-- View: TITLE by AUTHOR (signed as AUTHOR_SIGNED), SOURCE_TITLE, SOURCE_DETAILS.
-- Translated from LANGUAGE by TRANSLATOR. NOTES. ARCHIVIST_NOTES.
function sb.footnote( frame )
function sb.footnote( frame )
local str = ''
local str = ''
Line 49: Line 51:


if not isempty(frame.args['author_signed']) then
if not isempty(frame.args['author_signed']) then
str = str .. ' (signed as' .. frame.args['author_signed'] .. ')'
str = str .. ' (signed as ' .. frame.args['author_signed'] .. ')'
end
end


Line 60: Line 62:
end
end


if not isempty(frame.args['language']) then
str = str .. '. Translated from ' .. frame.args['language']
if not isempty(frame.args['translator']) then
str = str .. ' by ' .. frame.args['translator']
end
end
if not isempty(frame.args['notes']) then
if not isempty(frame.args['notes']) then
str = str .. '. ' .. frame.args['notes']  
str = str .. '. ' .. frame.args['notes']  
Line 68: Line 76:
end
end


return str .. '.'
return str
end
end