Bureaucrats, Interface administrators, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), Suppressors, Administrators, trusted
10,488
edits
No edit summary |
m (+language and translator) |
||
(5 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 41: | Line 43: | ||
str = str .. ' by ' .. frame.args['author'] | str = str .. ' by ' .. frame.args['author'] | ||
else | else | ||
str = str .. ' by unknown author' | if not isempty(frame.args['title']) then | ||
str = str .. ' by unknown author' | |||
else | |||
str = str .. frame.args['type'] .. ' by unknown author' | |||
end | |||
end | end | ||
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 56: | 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 61: | Line 73: | ||
if not isempty(frame.args['archivist_notes']) then | if not isempty(frame.args['archivist_notes']) then | ||
str = str .. '<br>' .. frame.args['archivist_notes'] .. '. – Archivist | str = str .. '<br>' .. frame.args['archivist_notes'] .. '. – Archivist' | ||
end | end | ||