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

+properties
No edit summary
(+properties)
Line 17: Line 17:
  | continues =  
  | continues =  
  | title =  
  | title =  
| untitled =
  | author =  
  | author =  
  | source =  
  | source =  
Line 30: Line 31:
* '''continues''' -- pages where the item continues, {{p|HPB SB item pages}}
* '''continues''' -- pages where the item continues, {{p|HPB SB item 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" should 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}}}
* '''author''' -- name of author or authors, separated by semicolon, {{p|HPB SB item author}}}
* '''source''' -- the name of magazine or newspaper where it was published, {{p|HPB SB item source}}}
* '''source''' -- the name of magazine or newspaper where it was published, {{p|HPB SB item source}}}
Line 46: Line 48:
<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|}}} {{#if: {{{continues|}}}| <nowiki>|</nowiki> '''continues on''': {{#arraymap:{{{continues|}}}|,|@@|[[HPB SB item pages::HPB-SB-{{{volume|}}}-@@]]}} |}}</div>
<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|}}} {{#if: {{{continues|}}}| <nowiki>|</nowiki> '''continues on''': {{#arraymap:{{{continues|}}}|,|@@|[[HPB SB item pages::HPB-SB-{{{volume|}}}-@@]]}} |}}</div>


<span style="font-variant: small-caps; font-weight: bold; font-size: 120%;">[[HPB SB item title::{{{title|}}}]]</span>
<span style="font-variant: small-caps; font-weight: bold; font-size: 120%;">[[HPB SB item title::{{{title|}}}]]</span>  


{{#if: {{{author|}}}|by {{#arraymap:{{{author|}}}|;|@@|[[Property::@@]]}}|}}
{{#if: {{{author|}}}|by {{#arraymap:{{{author|}}}|;|@@|[[HPB SB item author::@@]]}}|}}  


* '''Source''': {{{source|}}}
* '''Source''': {{{source|}}}
Line 57: Line 59:
{{#arraymap:{{{categories|}}}|,|@@| [[Category:@@]] | }}
{{#arraymap:{{{categories|}}}|,|@@| [[Category:@@]] | }}
[[Category: HPB-SB-items]]
[[Category: HPB-SB-items]]
<!--  SET properties -->
{{#set: HPB SB item volume={{{volume|}}}
| HPB SB item page={{{page|}}}
| HPB SB item item={{{item|}}}
| HPB SB item type={{{type|}}}
| HPB SB item source={{{source|}}}
| HPB SB item date={{{date|}}}
| HPB SB item notes={{{notes|}}}
}}
{{#if: {{{untitled|}}}| {{#set: HPB SB item untitled=yes}}|}}
</includeonly>
</includeonly>