Module:SB: Difference between revisions

369 bytes added ,  14 April 2023
m
+language and translator
mNo edit summary
m (+language and translator)
 
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 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']