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

From Teopedia library
Jump to navigation Jump to search
m
(31 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>This template is used by form {{f|HPB-SB-item}} to create or edit an item of ''[[H. P. Blavatsky's Scrapbooks]]''.
+
<noinclude>This template is used for every item in ''[[H. P. Blavatsky's Scrapbooks]]''.
 
 
* To create a new item use form {{f|HPB-SB-item}}.
 
* Pages that use this template are placed in category {{c|HPB-SB-items}}.
 
  
 
{| class=wikitable  
 
{| class=wikitable  
Line 15: Line 12:
 
  | item =  
 
  | item =  
 
  | type =  
 
  | type =  
 +
| status =
 
  | continues =  
 
  | continues =  
 
  | title =  
 
  | title =  
 +
| subtitle =
 
  | untitled =  
 
  | untitled =  
 
  | author =  
 
  | author =  
  | source =  
+
| author signed =
  | date =  
+
  | source title =
 +
| source details =
 +
| publication date =  
 +
  | original date =  
 
  | notes =  
 
  | notes =  
| image =
 
 
  | categories =  
 
  | categories =  
 +
| hide =
 
}}
 
}}
 
</pre>
 
</pre>
 
|  
 
|  
 
* '''volume''' -- Scrapbook volume number, {{p|HPB SB volume}}
 
* '''volume''' -- Scrapbook volume number, {{p|HPB SB volume}}
* '''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 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}}
* '''continues''' -- pages where the item continues, {{p|HPB SB item pages}}
+
* '''status''' -- current status of an item from the list: ''wanted, ok''; additionally for text: ''proofread''; for images: ''improved''; {{p|HPB SB item status}}
* '''title''' -- title of the article, poem, etc., {{p|HPB SB item title}}
+
* '''continues''' -- pages where the item continues; separated by comma (,), {{p|HPB SB item continues on pages}}
* '''untitled''' -- set "true" for text without a title; in this case parameter "title" should hold several words from the very begining of the text, {{p|HPB SB item untitled}}
+
* '''title''' -- title of the item of any type (see above), {{p|HPB SB item title}}
* '''author''' -- name of author or authors, separated by semicolon, {{p|HPB SB item author}}}
+
* '''subtitle''' -- subtitle, if exist, {{p|HPB SB item subtitle}}
* '''source''' -- the name of magazine or newspaper where it was published, {{p|HPB SB item source}}}
+
* '''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}}
* '''date''' -- date in format YYYY-MM-DD, {{p|HPB SB item date}}
+
* '''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 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 details''' -- particular place, i.e. volume, page etc., {{p|HPB SB item source details}}}
 +
* '''publication date''' -- date of publication in this source; format: YYYY-MM-DD, {{p|HPB SB item publication 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}}
* '''image''' -- file name of the image, see category {{c|HPB Scrapbooks images}}, {{p|HPB SB item image}}
+
* '''categories''' -- some categories for the item, additional to {{p|HPB SB item categories}}; separated by comma (,)
* '''categories''' -- some categories for the item, additional to {{c|HPB-SB-items}}
+
* '''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 with forms]]
 
 
[[Category: Templates for HPB SB]]
 
[[Category: Templates for HPB SB]]
</noinclude><includeonly>{{HPB-SB-item-header}}<!--
+
</noinclude><includeonly><!--
 
+
  PREPEAR TITLE considering type and status
  Form and template links -->
+
-->{{#vardefine:final_title| {{Style P-HPB SB. Title| {{{title|}}} }} }}<!--
<div style="float: right; font-size: 80%;">&nbsp;[[Form:HPB-SB-item|F]]&nbsp;•&nbsp;[[Template:HPB-SB-item|T]]&nbsp;</div><!--
+
  Mark untitled text
 +
-->{{#ifeq: {{lc:{{{untitled|}}}}} | yes
 +
| {{#vardefine:final_title| <h3 style="text-align: center; font-size: 120%;">'''<Untitled>''' {{#if: {{{title|}}}| ({{{title}}})|}}</h3>}}
 +
|
 +
}}<!--
 +
  use different style for images
 +
-->{{#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
 +
|
 +
| {{#var:final_title}} {{#if: {{{subtitle|}}}| {{Style P-Subtitle|{{{subtitle|}}}}} |}}
 +
}}<!--
 +
  AFTER TITLE mark wanted items
 +
-->{{#ifeq: {{lc:{{{status|}}}}} | wanted
 +
| {{Style S-HPB SB. Editors note|wanted|center}}
 +
|
 +
}}<!--
 +
  Show additional information
 +
-->{{#if: {{{author|}}}|{{Style S-HPB SB. Editors note|<small>by {{{author}}}{{#if: {{{author signed|}}}| (signed: {{{author signed}}})|}}</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}}|}}<!--
  
   ITEM data -->
+
   See if it needs PROOFREADING
<div style="font-size: 80%; font-family:'Droid Sans Mono', 'Liberation Mono', Courier, monospace; border-bottom: 1px solid grey;">'''{{tip|ID|Volume-Page-Item}}''': {{{volume|}}}-{{{page|}}}-{{{item|}}} | '''type''': {{{type|}}} | '''volume''': [[HPB-SB-{{{volume|}}}|{{{volume|}}}]] | '''page''': [[HPB-SB-{{{volume|}}}-{{{page|}}}|{{{page|}}}]] {{#if: {{{continues|}}}| <nowiki>|</nowiki> '''continues on''': {{#arraymap:{{{continues|}}}|,|@@|[[HPB SB item pages::HPB-SB-{{{volume|}}}-@@]]}} |}}</div>
+
-->{{#ifeq: {{lc:{{{status|}}}}} | proofread 
 +
| [[Category: To be proofread]]  
 +
|  
 +
}}<!--
  
{{#if: {{{image|}}}| [[File:{{{image}}}|200x200px|right|thumb]] |}}
+
  Set SUBOBJECT with semantic properties
<span style="font-variant: small-caps; font-weight: bold; font-size: 120%;">[[HPB SB item title::{{{title|}}}]]</span>
+
-->{{#subobject: HPB SB item {{{volume|}}}-{{{page|}}}-{{{item|}}}
 
+
| HPB SB item ID ={{#invoke: SB | item_id | volume={{{volume|}}} | page={{{page|}}} | item={{{item|}}} }}
{{#if: {{{author|}}}|by {{#arraymap:{{{author|}}}|;|@@|[[HPB SB item author::@@]]}}|}}
 
 
 
* '''Source''': {{{source|}}}
 
* '''Date''': {{{date|}}}
 
* '''Notes''': {{{notes|}}}
 
 
 
<!--  CATEGORIES -->
 
{{#arraymap:{{{categories|}}}|,|@@| [[Category:@@]] | }}
 
[[Category: HPB-SB-items]]
 
<!--  SET properties -->
 
{{#set: HPB SB item item={{{item|}}}
 
 
  | HPB SB volume={{{volume|}}}
 
  | HPB SB volume={{{volume|}}}
 
  | HPB SB volume page={{{page|}}}
 
  | HPB SB volume page={{{page|}}}
 +
| HPB SB page item={{{item|}}}
 
  | HPB SB item type={{{type|}}}
 
  | HPB SB item type={{{type|}}}
  | HPB SB item source={{{source|}}}
+
| HPB SB item status={{{status|}}}
  | HPB SB item date={{{date|}}}
+
| HPB SB item continues on pages={{{continues|}}}|+sep=,
 +
| HPB SB item title={{{title|}}}
 +
| HPB SB item untitled={{{untitled|}}}
 +
| HPB SB item author={{{author|}}}|+sep=;
 +
| HPB SB item author signed={{{author signed|}}}|+sep=;
 +
  | HPB SB item source title={{{source title|}}}
 +
| HPB SB item source details={{{source details|}}}
 +
| HPB SB item publication date={{{publication date|}}}
 +
  | HPB SB item original date={{{original date|}}}
 
  | HPB SB item notes={{{notes|}}}
 
  | HPB SB item notes={{{notes|}}}
}}
+
| HPB SB item categories={{{categories|}}}|+sep=,
{{#if: {{{untitled|}}}| {{#set: HPB SB item untitled=true}}|}}
+
}}</includeonly>
</includeonly>
 

Revision as of 06:36, 6 August 2022

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 = 
 | 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]]
  • 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.