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

no edit summary
No edit summary
No edit summary
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 =  
Line 22: Line 20:
  | date =  
  | date =  
  | notes =  
  | notes =  
| image =
  | categories =  
  | categories =  
}}
}}
Line 28: Line 25:
|  
|  
* '''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, 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, proofread, ok, {{p|HPB SB item status}}
* '''continues''' -- pages where the item continues, {{p|HPB SB item continues on pages}}
* '''title''' -- title of the article, poem, etc., {{p|HPB SB item title}}
* '''title''' -- title of the article, poem, etc., {{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}}
* '''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}}
Line 38: Line 36:
* '''date''' -- date in format YYYY-MM-DD, {{p|HPB SB item date}}
* '''date''' -- date in format YYYY-MM-DD, {{p|HPB SB item 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}}
* '''categories''' -- some categories for the item, additional to {{c|HPB-SB-items}}
|}
|}


[[Category: Templates with forms]]
[[Category: Templates for HPB SB]]
[[Category: Templates for HPB SB]]
</noinclude><includeonly>{{HPB-SB-item-header}}<!--
</noinclude><includeonly><!--
 
   Item TITLE depends on type and status
   Form and template links -->
-->{{#vardefine:final_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
  ITEM data -->
| {{#vardefine:final_title| '''<Untitled>''' {{#if: {{{title|}}}| ({{{title}}})|}} }}
<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-{{{volume|}}}-@@|@@]]}}{{#set: HPB SB item pages=@@}} |}}</div>
|
{{#if: {{{image|}}}| [[File:{{{image}}}|200x200px|right|thumb]] |}}
}}<!--
{{#ifeq: {{{untitled|}}} | Yes
  Do not show title before image
  | '''<Untitled>''' {{#if: {{{title|}}}| ({{{title}}})|}}
-->{{#ifeq: {{lc:{{{type|}}}}} | image
|<span style="font-variant: small-caps; font-weight: bold; font-size: 120%;">[[HPB SB item title::{{{title|}}}]]</span>
|  
}}
  | {{Style P-HPB SB. Title|{{#var:final_title}}}}
 
}}<!--
{{#if: {{{author|}}}|by {{#arraymap:{{{author|}}}|;|@@|[[HPB SB item author::@@]]}}|}}
  Mark wanted items
 
-->{{#ifeq: {{lc:{{{status|}}}}} | wanted
* '''Source''': {{{source|}}}
| {{Style S-HPB SB. Editors note|wanted|center}}
* '''Date''': {{{date|}}}
|  
* '''Notes''': {{{notes|}}}
}}<!--   
 
  Set SUBOBJECT with semantic properties
<!--  CATEGORIES -->
-->{{#subobject: HPB SB item {{{volume|}}}-{{{page|}}}-{{{item|}}}
{{#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 status={{{status|}}}
| 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 source={{{source|}}}
  | HPB SB item source={{{source|}}}
  | HPB SB item date={{{date|}}}
  | HPB SB item date={{{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>