Jump to content

Template:Lucifer item: Difference between revisions

Add opt-in linked TOC titles, small caps for principal works, regular supplementary titles and separate comment lines.
(Add optional simple layout for Lucifer volume 1; preserve legacy layout)
(Add opt-in linked TOC titles, small caps for principal works, regular supplementary titles and separate comment lines.)
 
Line 43: Line 43:
</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 = 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 49: Line 52:
|- valign=top
|- valign=top
| vol. {{{volume|}}}, no. {{{number|}}}, {{{month|}}}, {{{year|}}}, p. {{{page|}}}
| vol. {{{volume|}}}, no. {{{number|}}}, {{{month|}}}, {{{year|}}}, p. {{{page|}}}
{{#ifeq: {{{format|}}}|simple||<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>}}


| {{#ifeq: {{{format|}}}|simple|{{{title|}}}|<span style="font-variant-caps: small-caps;">{{{title|}}}</span>}}{{#if: {{{subtitle|}}}|<br> {{{subtitle}}}|}}
| {{#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}}}|}}
{{#ifeq: {{{format|}}}|simple|<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: {{#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: {{{in russian|}}}|Translations: <span class="plainlinks">{{{in russian}}}</span>.&#32;|}}<!--
-->{{#if: {{{comment|}}}|{{{comment}}}|}}</p>
-->{{#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>|}}<!--
|<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>|}}<!--