Difference between revisions of "Template:HPB-SB-item (obsolete, without Lua)"

From Teopedia library
Jump to navigation Jump to search
m (Pavel Malakhov moved page Template:HPB-SB-item to Template:HPB-SB-item (obsolete, without Lua) without leaving a redirect)
 
(8 intermediate revisions by the same user not shown)
Line 12: Line 12:
 
  | item =  
 
  | item =  
 
  | type =  
 
  | type =  
 +
| file =
 +
| image size =
 +
| image position =
 
  | status =  
 
  | status =  
 
  | continues =  
 
  | continues =  
Line 33: Line 36:
 
* '''item''' -- item number on the page, {{p|HPB SB page item}}
 
* '''item''' -- item number on the page, {{p|HPB SB page item}}
 
* '''type''' -- type of an item from the list: ''article, poem, notice, review, letter, telegram, card, image, other'', {{p|HPB SB item type}}
 
* '''type''' -- type of an item from the list: ''article, poem, notice, review, letter, telegram, card, image, other'', {{p|HPB SB item type}}
 +
* '''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 position''' -- values: left, right, center (default);
 
* '''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 38: Line 44:
 
* '''subtitle''' -- subtitle, if exist, {{p|HPB SB item subtitle}}
 
* '''subtitle''' -- subtitle, if exist, {{p|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, {{p|HPB SB item untitled}}
 
* '''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, {{p|HPB SB item untitled}}
* '''author''' -- real name of the author or authors, separated by semicolon (;); format: Last-Name, First-Name Other-Names; {{p|HPB SB item author}}}
+
* '''author''' -- real name of the author or authors, separated by semicolon (;); format: '''Last-Name, Initials'''; {{p|HPB SB item author}}
* '''author signed''' -- the name the author(s) singed his/her (their) article, separated by semicolon (;); format: as in original text; {{p|HPB SB item author signed}}}
+
* '''author signed''' -- the name the author singed his/her article; in case of several authors, separate names by semicolon (;); format: as in original text; {{p|HPB SB item author signed}}}
 
* '''source title''' -- the name of magazine or newspaper where it was published, {{p|HPB SB item source title}}
 
* '''source title''' -- the name of magazine or newspaper where it was published, {{p|HPB SB item source title}}
 
* '''source details''' -- particular place, i.e. volume, page etc., {{p|HPB SB item source details}}}
 
* '''source details''' -- particular place, i.e. volume, page etc., {{p|HPB SB item source details}}}
Line 52: Line 58:
  
 
[[Category: Templates for HPB SB]]
 
[[Category: Templates for HPB SB]]
 +
[[t-ru-lib:ЕПБ-ЛА элемент]]
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
 
   PREPEAR TITLE considering type and status
 
   PREPEAR TITLE considering type and status
Line 62: Line 69:
 
   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|}}} }} }}
+
  | {{#vardefine:final_title| {{Style P-HPB SB. Image title| {{{title|}}} }} }} {{#if: {{{file|}}}| [[File:{{{file|}}}|{{{image size|150px}}}|{{{image position|center}}}]]|}}
 +
 
 
  |  
 
  |  
 
}}<!--
 
}}<!--
Line 76: Line 84:
 
}}<!--
 
}}<!--
 
   Show additional information
 
   Show additional information
-->{{#if: {{{author|}}}|{{Style S-HPB SB. Editors note|<small>by {{{author}}}{{#if: {{{author signed|}}}| (signed: {{{author signed}}})|}}</small>|center}}|}}<!--
+
-->{{#if: {{{hide|}}}| <!-- show nothing -->|<div style="font-size: 85%; width: 80%; text-align: center; margin: 0 auto;">{{Style S-HPB SB. Editors note| {{#if: {{{author|}}}| '''author:''' {{{author}}}|}} {{#if: {{{author signed|}}}|&#32; (signed: {{{author signed}}})|}} {{#if: {{{source title|}}}| '''source:''' ''{{{source title}}}'' |}} {{#if: {{{source details|}}}|, {{{source details}}}|}} {{#if: {{{notes|}}}| '''notes:''' {{{notes}}}|}} |}}</div><!--
-->{{#if: {{{source title|}}}|{{Style S-HPB SB. Editors note|<small>{{{source title}}}{{#if: {{{source details|}}}|, {{{source details}}}|}}</small>|center}}|}}<!--
+
--><div style="width: 100%; margin-top: 1em;"></div>}}<!-- bottom margin 
-->{{#if: {{{notes|}}}|{{Style S-HPB SB. Editors note|<small>{{{notes}}}</small>|center}}|}}<!--
 
  
 
   See if it needs PROOFREADING
 
   See if it needs PROOFREADING
Line 93: Line 100:
 
  | HPB SB page item={{{item|}}}
 
  | HPB SB page item={{{item|}}}
 
  | HPB SB item type={{{type|}}}
 
  | HPB SB item type={{{type|}}}
 +
| HPB SB image file name={{{file|}}}
 
  | HPB SB item status={{{status|}}}
 
  | HPB SB item status={{{status|}}}
 
  | HPB SB item continues on pages={{{continues|}}}|+sep=,
 
  | HPB SB item continues on pages={{{continues|}}}|+sep=,

Latest revision as of 02:39, 6 December 2022

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

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 = 
 | categories = 
 | 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 -- values: left, right, center (default);
  • 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]]
  • categories -- some categories for the item, additional to [[HPB SB item categories]]; separated by comma (,)
  • 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.