Bureaucrats, Interface administrators, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), Suppressors, Administrators, trusted
14,058
edits
No edit summary |
No edit summary |
||
Line 30: | Line 30: | ||
end | end | ||
-- Create | -- Create footnote with item summary and notes by editor and archivist | ||
function sb.footnote( frame ) | function sb.footnote( frame ) | ||
local str = '' | local str = '' | ||
if isempty(frame.args[' | if not isempty(frame.args['title']) then | ||
str = 'by | str = '<i>' .. frame.args['title'] .. '</i>' | ||
end | |||
if not isempty(frame.args['author']) then | |||
str = str .. ' by ' .. frame.args['author'] | |||
else | else | ||
str = 'by ' .. frame.args[' | str = str .. ' by unknown author' | ||
end | |||
if not isempty(frame.args['author_signed']) then | |||
str = str .. ' (signed as' .. frame.args['author_signed'] .. ')' | |||
end | |||
if not isempty(frame.args['source_title']) then | |||
str = str .. ', <i>' .. frame.args['source_title'] .. '</i>' | |||
end | |||
if not isempty(frame.args['source_details']) then | |||
str = str .. ', ' .. frame.args['source_details'] | |||
end | |||
if not isempty(frame.args['notes']) then | |||
str = str .. '. ' .. frame.args['notes'] | |||
end | end | ||
if not isempty(frame.args['archivist_notes']) then | if not isempty(frame.args['archivist_notes']) then | ||
str = str .. frame.args['archivist_notes'] .. '. | str = str .. '<br>' .. frame.args['archivist_notes'] .. '. – Archivist.' | ||
end | end | ||
return str | |||
end | end | ||