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

From Teopedia library
Jump to navigation Jump to search
(18 intermediate revisions by the same user not shown)
Line 15: Line 15:
 
  | continues =  
 
  | continues =  
 
  | title =  
 
  | title =  
 +
| subtitle =
 
  | untitled =  
 
  | untitled =  
 
  | author =  
 
  | author =  
Line 23: Line 24:
 
  | notes =  
 
  | notes =  
 
  | categories =  
 
  | categories =  
 +
| hide =
 
}}
 
}}
 
</pre>
 
</pre>
Line 29: Line 31:
 
* '''page''' -- page number in the volume, where item starts, {{p|HPB SB volume page}}
 
* '''page''' -- page number in the volume, where item starts, {{p|HPB SB volume page}}
 
* '''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, 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}}
* '''status''' -- current status of an item from the list: wanted, proofread, ok, {{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, {{p|HPB SB item continues on pages}}
+
* '''continues''' -- pages where the item continues; separated by comma (,), {{p|HPB SB item continues on pages}}
* '''title''' -- title of the article, poem, etc., {{p|HPB SB item title}}
+
* '''title''' -- title of the item of any type (see above), {{p|HPB SB item title}}
* '''untitled''' -- set "Yes" for text without a title; in this case parameter "title" better to hold several words from the very begining of the text, {{p|HPB SB item untitled}}
+
* '''subtitle''' -- subtitle, if exist, {{p|HPB SB item subtitle}}
* '''author''' -- name of author or authors, separated by semicolon, {{p|HPB SB item author}}}
+
* '''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''' -- name of author or authors, separated by semicolon (;), {{p|HPB SB item author}}}
 
* '''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 40: Line 43:
 
* '''original date''' -- date of letter written or publication in original source; format: YYYY-MM-DD, {{p|HPB SB item original date}}
 
* '''original date''' -- date of letter written or publication in original source; format: YYYY-MM-DD, {{p|HPB SB item original date}}
 
* '''notes''' -- any additional information about the item, {{p|HPB SB item notes}}
 
* '''notes''' -- any additional information about the item, {{p|HPB SB item notes}}
* '''categories''' -- some categories for the item, additional to {{p|HPB SB item categories}}
+
* '''categories''' -- some categories for the item, additional to {{p|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 {{p|HPB SB item ID}} property.
 
|}
 
|}
  
 
[[Category: Templates for HPB SB]]
 
[[Category: Templates for HPB SB]]
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
   Item TITLE depends on type and status
+
   PREPEAR TITLE considering type and status
-->{{#vardefine:final_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| '''<Untitled>''' {{#if: {{{title|}}}| ({{{title}}})|}} }}
+
  | {{#vardefine:final_title| <h3 style="text-align: center; font-size: 120%;">'''<Untitled>''' {{#if: {{{title|}}}| ({{{title}}})|}}</h3>}}
 
  |
 
  |
 
}}<!--
 
}}<!--
   Do not show title before image
+
   use different style for images
-->{{#ifeq: {{lc:{{{type|}}}}} | image  
+
-->{{#ifeq: {{lc:{{{type|}}}}} | image
 +
| {{#vardefine:final_title| {{Style P-HPB SB. Image title| {{{title|}}} }} }}
 +
|
 +
}}<!--
 +
  SHOW TITLE if hide option is not set
 +
-->{{#ifeq: {{lc:{{{hide|}}}}} | yes
 
  |  
 
  |  
  | {{Style P-HPB SB. Title|{{#var:final_title}}}}
+
  | {{#var:final_title}} {{#if: {{{subtitle|}}}| {{Style P-Subtitle|{{{subtitle|}}}}} |}}
 
}}<!--
 
}}<!--
   Mark wanted items
+
   AFTER TITLE mark wanted items
 
-->{{#ifeq: {{lc:{{{status|}}}}} | wanted  
 
-->{{#ifeq: {{lc:{{{status|}}}}} | wanted  
 
  | {{Style S-HPB SB. Editors note|wanted|center}}
 
  | {{Style S-HPB SB. Editors note|wanted|center}}
 +
|
 +
}}<!--
 +
  Show additional information
 +
-->{{#if: {{{author|}}}|{{Style S-HPB SB. Editors note|<small>by {{{author}}}</small>|center}}|}}<!--
 +
-->{{#if: {{{source title|}}}|{{Style S-HPB SB. Editors note|<small>{{{source title}}}{{#if: {{{source details|}}}|, {{{source details}}}|}}</small>|center}}|}}<!--
 +
-->{{#if: {{{notes|}}}|{{Style S-HPB SB. Editors note|<small>{{{notes}}}</small>|center}}|}}<!--
 +
 +
  See if it needs PROOFREADING
 +
-->{{#ifeq: {{lc:{{{status|}}}}} | proofread 
 +
| [[Category: To be proofread]]
 
  |  
 
  |  
 
}}<!--   
 
}}<!--   
 +
 
   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 volume={{{volume|}}}
 
  | HPB SB volume={{{volume|}}}
 
  | HPB SB volume page={{{page|}}}
 
  | HPB SB volume page={{{page|}}}
Line 72: Line 95:
 
  | HPB SB item title={{{title|}}}
 
  | HPB SB item title={{{title|}}}
 
  | HPB SB item untitled={{{untitled|}}}
 
  | HPB SB item untitled={{{untitled|}}}
  | HPB SB item author={{{author|}}}|+sep=,
+
  | HPB SB item author={{{author|}}}|+sep=;
 
  | HPB SB item source title={{{source title|}}}
 
  | HPB SB item source title={{{source title|}}}
 
  | HPB SB item source details={{{source details|}}}
 
  | HPB SB item source details={{{source details|}}}

Revision as of 07:28, 18 June 2021

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

To copy Description
{{HPB-SB-item
 | volume = 
 | page = 
 | item = 
 | type = 
 | status = 
 | continues = 
 | title = 
 | subtitle = 
 | untitled = 
 | author = 
 | 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]]
  • 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 -- name of author or authors, separated by semicolon (;), [[HPB SB item author]]}
  • 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.