Template:HPB-SB-item: Difference between revisions

From Teopedia
mNo edit summary
mNo edit summary
 
(14 intermediate revisions by the same user not shown)
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]]''.
 
Treat image collage as a single item.
 
 
'''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 14: Line 21:
  | file =
  | file =
  | image size =  
  | image size =  
| image position =
  | status =  
  | status =  
  | continues =  
  | continues =  
Line 28: Line 36:
  | archivist notes =  
  | archivist notes =  
  | categories =  
  | categories =  
| language =
| translator =
  | hide =  
  | hide =  
}}
}}
Line 38: Line 48:
* '''file''' -- file name for an image; used if ''type=image''; shows image above ''title''; {{p|HPB SB image file name}}  
* '''file''' -- file name for an image; used if ''type=image''; shows image above ''title''; {{p|HPB SB image file name}}  
* '''image size''' -- examples: "200px" (width) or "x200px" (height); default value = 150px;
* '''image size''' -- examples: "200px" (width) or "x200px" (height); default value = 150px;
* '''image position''' -- options: left, right, center (default); usefull for images in text
* '''status''' -- current status of an item from the list: ''wanted, ok''; additionally for text: ''proofread''; for images: ''improved''; {{p|HPB SB item status}}
* '''status''' -- current status of an item from the list: ''wanted, ok''; additionally for text: ''proofread''; for images: ''improved''; {{p|HPB SB item status}}
* '''continues''' -- pages where the item continues; separated by comma (,), {{p|HPB SB item continues on pages}}
* '''continues''' -- pages where the item continues; separated by comma (,), {{p|HPB SB item continues on pages}}
Line 52: Line 63:
* '''archivist notes''' -- notes made by Adyar archivist
* '''archivist notes''' -- notes made by Adyar archivist
* '''categories''' -- some categories for the item, additional to {{p|HPB SB item categories}}; separated by comma (,)
* '''categories''' -- some categories for the item, additional to {{p|HPB SB item categories}}; separated by comma (,)
* '''language''' -- language of an item, the pasted cut, which could be translated from some  original text; default = English; {{p|HPB SB item language}}
* '''translator''' -- who translated into English; {{p|HPB SB item translator}}
* '''hide''' -- set to "''yes''" to hide all data and just set the semantic properties; used for some images and titles or subtitles altered by HPB
* '''hide''' -- set to "''yes''" to hide all data and just set the semantic properties; used for some images and titles or subtitles altered by HPB


Each item has an ID set by {{p|HPB SB item ID}} property.
Each item has an ID set by {{p|HPB SB item ID}} property.
|}
|}
== See also ==
* {{t|HPB-SB-item (obsolete, without Lua)}} – old, obsolete template.


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


   PREPEAR TITLE considering type and status
   PREPEAR TITLE considering type and status
-->{{#vardefine:final_title| {{Style P-HPB SB. Title| {{{title|}}} }} }}<!--
-->{{#vardefine:final_title| {{Style P-HPB SB. Title| {{{title|}}} }} }}<!--
   Mark untitled text
   mark untitled text
-->{{#ifeq: {{lc:{{{untitled|}}}}} | yes  
-->{{#ifeq: {{lc:{{{untitled|}}}}} | yes  
  | {{#vardefine:final_title| <h3 style="text-align: center; font-size: 120%;">'''<Untitled>''' {{#if: {{{title|}}}| ({{{title}}})|}}</h3>}}
  | {{#vardefine:final_title| <h3 style="text-align: center; font-size: 120%;">'''<Untitled>''' {{#if: {{{title|}}}| ({{{title}}})|}}</h3>}}
Line 81: Line 101:
   use different style for images
   use different style for images
-->{{#ifeq: {{lc:{{{type|}}}}} | image
-->{{#ifeq: {{lc:{{{type|}}}}} | image
  | {{#vardefine:final_title| {{Style P-HPB SB. Image title| {{{title|}}} }} }} {{#if: {{{file|}}}| [[File:{{{file|}}}|{{{image size|150px}}}|center]]|}}
  | {{#vardefine:final_title| {{Style P-HPB SB. Image title| {{{title|}}} }} }} {{#if: {{{file|}}}| [[File:{{{file|}}}|{{{image size|150px}}}|{{{image position|center}}}]]|}}


  |  
  |  
}}<!--
}}<!--
   SHOW TITLE and subtitle
   SHOW TITLE and subtitle
-->{{#var:final_title}}  
-->{{#if: {{{hide|}}} |
{{#if: {{{subtitle|}}}| {{Style P-Subtitle|{{{subtitle|}}}}} |}}<!--
|{{#var:final_title}}  
{{#if: {{{subtitle|}}}| {{Style P-Subtitle|{{{subtitle|}}}}} |}}
}}<!--


   See if it needs PROOFREADING
   see if it needs PROOFREADING
-->{{#ifeq: {{lc:{{{status|}}}}} | proofread   
-->{{#ifeq: {{lc:{{{status|}}}}} | proofread   
  | [[Category: To be proofread]]  
  | [[Category:SB. To proofread]]  
  |  
  |  
}}<!--   
}}<!--
 
  Add to CTD categories
-->{{#arraymap:{{{categories|}}}|,|@@|[[Category:SB. @@]]}}<!--   


   Set SUBOBJECT with semantic properties  
   set SUBOBJECT with semantic properties  
-->{{#subobject: HPB SB item {{{volume|}}}-{{{page|}}}-{{{item|}}}
-->{{#subobject: HPB SB item {{{volume|}}}-{{{page|}}}-{{{item|}}}
  | HPB SB item ID ={{#invoke: SB | item_id | volume={{{volume|}}} | page={{{page|}}} | item={{{item|}}} }}
  | HPB SB item ID ={{#invoke: SB | item_id | volume={{{volume|}}} | page={{{page|}}} | item={{{item|}}} }}
Line 115: Line 140:
  | HPB SB item notes={{{notes|}}}
  | HPB SB item notes={{{notes|}}}
  | HPB SB item categories={{{categories|}}}|+sep=,
  | HPB SB item categories={{{categories|}}}|+sep=,
| HPB SB item language={{{language|}}}
| HPB SB item translator={{{translator|}}}|+sep=;
}}</includeonly>
}}</includeonly>

Latest revision as of 14:54, 1 October 2024

This template is used for every item in H. P. Blavatsky's Scrapbooks.

Treat image collage as a single item.


Useful links:

  • {{HPB-SB-footer-footnotes}} – footnote template to show all descriptions.
  • [[SB|footnotes]] – Lua function, which creates a footnote.
To copy Description
{{HPB-SB-item
 | volume = 
 | page = 
 | item = 
 | type = 
 | file =
 | image size = 
 | image position = 
 | status = 
 | continues = 
 | title = 
 | subtitle = 
 | untitled = 
 | author = 
 | author signed = 
 | source title = 
 | source details = 
 | publication date = 
 | original date = 
 | notes = 
 | archivist notes = 
 | categories = 
 | language = 
 | translator = 
 | hide = 
}}
  • volume -- Scrapbook volume number, [[HPB SB volume]]
  • page -- page number in the volume, where item starts, [[HPB SB volume page]]
  • item -- item number on the page, [[HPB SB page item]]
  • type -- type of an item from the list: article, poem, notice, review, letter, telegram, card, image, other, [[HPB SB item type]]
  • file -- file name for an image; used if type=image; shows image above title; [[HPB SB image file name]]
  • image size -- examples: "200px" (width) or "x200px" (height); default value = 150px;
  • image position -- options: left, right, center (default); usefull for images in text
  • status -- current status of an item from the list: wanted, ok; additionally for text: proofread; for images: improved; [[HPB SB item status]]
  • continues -- pages where the item continues; separated by comma (,), [[HPB SB item continues on pages]]
  • title -- title of the item of any type (see above), [[HPB SB item title]]
  • subtitle -- subtitle, if exist, [[HPB SB item subtitle]]
  • untitled -- set to "yes" for text without a title; in this case parameter "title" is better to hold several words from the very begining of the text, [[HPB SB item untitled]]
  • author -- real name of the author or authors, separated by semicolon (;); format: Last-Name, Initials; [[HPB SB item author]]
  • author signed -- the name the author singed his/her article; in case of several authors, separate names by semicolon (;); format: as in original text; [[HPB SB item author signed]]}
  • source title -- the name of magazine or newspaper where it was published, [[HPB SB item source title]]
  • source details -- particular place, i.e. volume, page etc., [[HPB SB item source details]]}
  • publication date -- date of publication in this source; format: YYYY-MM-DD, [[HPB SB item publication date]]
  • original date -- date of letter written or publication in original source; format: YYYY-MM-DD, [[HPB SB item original date]]
  • notes -- any additional information about the item, [[HPB SB item notes]]
  • archivist notes -- notes made by Adyar archivist
  • categories -- some categories for the item, additional to [[HPB SB item categories]]; separated by comma (,)
  • language -- language of an item, the pasted cut, which could be translated from some original text; default = English; [[HPB SB item language]]
  • translator -- who translated into English; [[HPB SB item translator]]
  • hide -- set to "yes" to hide all data and just set the semantic properties; used for some images and titles or subtitles altered by HPB

Each item has an ID set by [[HPB SB item ID]] property.

See also