Template:Lucifer item: Difference between revisions

From Teopedia
(Created page with "<noinclude>This template creates a line in table of contents for ''Lucifer'' magazine. {{Style P-No indent|It creates semantic subobject with the following properties:}} * {{p|Lucifer item ID}} * {{p|Lucifer item volume}} * {{p|Lucifer item number}} * {{p|Lucifer item month}} * {{p|Lucifer item year}} * {{p|Lucifer item page}} * {{p|Lucifer item title}} * {{p|Lucifer item author}} -- list * {{p|Lucifer item author signed}} -- list * {{p|Lucifer item comment}} * {...")
 
(Add opt-in linked TOC titles, small caps for principal works, regular supplementary titles and separate comment lines.)
 
(3 intermediate revisions by 2 users not shown)
Line 9: Line 9:
* {{p|Lucifer item page}}
* {{p|Lucifer item page}}
* {{p|Lucifer item title}}
* {{p|Lucifer item title}}
* {{p|Lucifer item subtitle}}
* {{p|Lucifer item author}} -- list  
* {{p|Lucifer item author}} -- list  
* {{p|Lucifer item author signed}} -- list  
* {{p|Lucifer item author signed}} -- list  
Line 20: Line 21:
* {{t|Lucifer volume}} – a header for one volume, which consists of 12 numbers
* {{t|Lucifer volume}} – a header for one volume, which consists of 12 numbers
* {{t|Lucifer number}} – a header for one number, which consists of several items  
* {{t|Lucifer number}} – a header for one number, which consists of several items  
* {{t|Lucifer item}} – one item, which could be an article, review, report, and so on
* {{t|Lucifer item}} – one item, which could be an article, review, report, filler and so on; particular type set in '''type''' parameter (default = article)


{{Style P-No indent|'''To copy:'''}}
{{Style P-No indent|'''To copy:'''}}
Line 31: Line 32:
  | page          =  
  | page          =  
  | title        =  
  | title        =  
| subtitle      =
  | author        =  
  | author        =  
  | author signed =  
  | author signed =  
Line 37: Line 39:
  | links to text =  
  | links to text =  
  | in russian    =  
  | in russian    =  
| format        =
}}
}}
</pre>
</pre>
Set <code>format = simple</code> for the compact table-of-contents layout (plain title, hidden ID and type). This is optional; the default layout is unchanged. In this mode, use language-labelled links in <code>in russian</code>, e.g. <code>Russian</code> or <code>Russian 1</code>, <code>Russian 2</code>.
Set <code>format = linked</code> for a compact layout with linked titles and comments on a separate line. Set <code>title link</code> to an existing English Teopedia page name without a fragment. Leave it empty when no English text is available. Titles use small caps; set <code>title style = normal</code> for supplementary material. Keep <code>title</code> as plain text: its semantic value is unchanged. Other layout modes are unchanged.


[[Category: Templates]]
[[Category: Templates]]
Line 45: Line 52:
|- valign=top
|- valign=top
| vol. {{{volume|}}}, no. {{{number|}}}, {{{month|}}}, {{{year|}}}, p. {{{page|}}}
| vol. {{{volume|}}}, no. {{{number|}}}, {{{month|}}}, {{{year|}}}, p. {{{page|}}}
<p style="text-indent: 0; line-height: 110%; font-size: 80%; color: grey;">ID: {{{id|}}}</p>
{{#if: {{#switch: {{{format|}}}|simple|linked=1}}||<p style="text-indent: 0; line-height: 110%; font-size: 80%; color: grey;">ID: {{{id|}}}</p>}}


| {{{title|}}}
| {{#ifeq: {{{format|}}}|linked|<span class="lucifer-item-title" style="font-variant: {{#ifeq: {{{title style|}}}|normal|normal|small-caps}};">{{#if: {{{title link|}}}|[[{{{title link}}}|{{{title|}}}]]|{{{title|}}}}}</span>|{{#ifeq: {{{format|}}}|simple|{{{title|}}}|<span style="font-variant-caps: small-caps;">{{{title|}}}</span>}}}}{{#if: {{{subtitle|}}}|<br> {{{subtitle}}}|}}
<p style="text-indent: 0; line-height: 110%; font-size: 80%; color: grey;">{{#if: {{{type|}}}|({{{type}}}) <br>|}}<!--
{{#if: {{#switch: {{{format|}}}|simple|linked=1}}|<p style="text-indent: 0; line-height: 110%; font-size: 80%; color: grey;">{{#if: {{{links to text|}}}|Read at: <span class="plainlinks">{{{links to text}}}</span>&#32;|}}<!--
-->{{#if: {{{in russian|}}}|Translations: <span class="plainlinks">{{{in russian}}}</span>.&#32;|}}<!--
-->{{#if: {{{comment|}}}|{{#ifeq: {{{format|}}}|linked|<span class="lucifer-item-comment" style="display: block;">{{{comment}}}</span>|{{{comment}}}}}|}}</p>
|<p style="text-indent: 0; line-height: 110%; font-size: 80%; color: grey;">{{#if: {{{type|}}}|({{{type}}}) <br>|}}<!--
-->{{#if: {{{links to text|}}}|Read at: <span class="plainlinks">{{{links to text}}}</span>|}}<!--
-->{{#if: {{{links to text|}}}|Read at: <span class="plainlinks">{{{links to text}}}</span>|}}<!--
-->{{#if: {{{in russian|}}}|Russian: <span class="plainlinks">{{{in russian}}}</span>|}}<!--
-->{{#if: {{{in russian|}}}|Russian: <span class="plainlinks">{{{in russian}}}</span>|}}<!--
-->{{#if: {{{comment|}}}|<br>{{{comment}}}|}}
-->{{#if: {{{comment|}}}|<br>{{{comment}}}|}}
</p>
</p>
}}


| {{{author|}}}
| {{{author|}}}
Line 66: Line 77:
  | Lucifer item page  ={{{page|}}}
  | Lucifer item page  ={{{page|}}}
  | Lucifer item title  ={{{title|}}}
  | Lucifer item title  ={{{title|}}}
| Lucifer item subtitle  ={{{subtitle|}}}
  | Lucifer item author ={{{author|}}}|+sep=;
  | Lucifer item author ={{{author|}}}|+sep=;
  | Lucifer item author signed ={{{author signed|}}}|+sep=;
  | Lucifer item author signed ={{{author signed|}}}|+sep=;

Latest revision as of 04:52, 31 October 2026

This template creates a line in table of contents for Lucifer magazine.

It creates semantic subobject with the following properties:

Lists have “;” as separator.

Related templates:

  • {{Lucifer volume}} – a header for one volume, which consists of 12 numbers
  • {{Lucifer number}} – a header for one number, which consists of several items
  • {{Lucifer item}} – one item, which could be an article, review, report, filler and so on; particular type set in type parameter (default = article)

To copy:

{{Lucifer item
 | id            = 
 | volume        = 
 | number        = 
 | month         = 
 | year          = 
 | page          = 
 | title         = 
 | subtitle      = 
 | author        = 
 | author signed = 
 | comment       = 
 | type          = 
 | links to text = 
 | in russian    = 
 | format        = 
}}

Set format = simple for the compact table-of-contents layout (plain title, hidden ID and type). This is optional; the default layout is unchanged. In this mode, use language-labelled links in in russian, e.g. Russian or Russian 1, Russian 2.


Set format = linked for a compact layout with linked titles and comments on a separate line. Set title link to an existing English Teopedia page name without a fragment. Leave it empty when no English text is available. Titles use small caps; set title style = normal for supplementary material. Keep title as plain text: its semantic value is unchanged. Other layout modes are unchanged.