Template:HPB-SB-item: Difference between revisions

no edit summary
m (Pavel Malakhov moved page Template:HPB-SB-item2 to Template:HPB-SB-item without leaving a redirect: remake with Lua)
No edit summary
Line 1: Line 1:
<noinclude>This template is used for every item in ''[[H. P. Blavatsky's Scrapbooks]]''.
<noinclude>This template is used for every item in ''[[H. P. Blavatsky's Scrapbooks]]''.
 
 
'''Useful links:'''
* {{t|HPB-SB-footer-footnotes}} – footnote template to show all descriptions.
* {{m|SB|footnotes}} – Lua function, which creates a footnote.


{| class=wikitable  
{| class=wikitable  
Line 58: Line 63:


[[Category: Templates for HPB SB]]
[[Category: Templates for HPB SB]]
[[Category: Templates with Lua]]
[[t-ru-lib:ЕПБ-ЛА элемент]]
[[t-ru-lib:ЕПБ-ЛА элемент]]
</noinclude><includeonly><!-- DEBUG
</noinclude><includeonly><!--
* author: {{{author|-}}}
 
* source title: {{{source title|---}}}
* archivist notes: {{{archivist notes|---}}}
* LUA: {{#invoke: SB | footnote
| title={{{title|}}}
| author={{{author|}}}
| author_signed={{{author signed|}}}
| source_title={{{source title|}}}
| source_details={{{source details|}}}
| notes={{{notes|}}}
| archivist_notes={{{archivist notes|}}}
}}-->
<!--
  create a footnote for additional information on item
--{{#vardefine:footnote|<i>{{{title|}}}</i>
{{#if: {{{author|}}}|&#32; by {{{author}}}|&#32; by unknown author}}
{{#if: {{{author signed|}}}|&#32; (signed as {{{author signed}}})|}}
{{#if: {{{source title|}}}|, ''{{{source title}}}'' |}}
{{#if: {{{source details|}}}|, {{{source details}}}|}}
{{#if: {{{notes|}}}|. {{{notes}}}|}}.
{{#if: {{{archivist notes|}}}|<br>{{{archivist notes}}}. – Archivist.|<br>{{tip|No archivist notes|Adyar archivist}}}} }}<!--
   create a footnote by function "footnote" in module SB (Lua module for Scrapbooks)
   create a footnote by function "footnote" in module SB (Lua module for Scrapbooks)
--><div style="float: right;">{{#tag:ref| {{#invoke: SB | footnote  
--><div style="float: right;">{{#tag:ref| {{#invoke: SB | footnote