Template:Lucifer item: Difference between revisions
(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|}}} | ||
{{# | {{#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}}}|}} | ||
{{# | {{#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> |}}<!-- | ||
-->{{#if: {{{in russian|}}}|Translations: <span class="plainlinks">{{{in russian}}}</span>. |}}<!-- | -->{{#if: {{{in russian|}}}|Translations: <span class="plainlinks">{{{in russian}}}</span>. |}}<!-- | ||
-->{{#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>|}}<!-- | ||
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:
- [[Lucifer item ID]]
- [[Lucifer item volume]]
- [[Lucifer item number]]
- [[Lucifer item month]]
- [[Lucifer item year]]
- [[Lucifer item page]]
- [[Lucifer item title]]
- [[Lucifer item subtitle]]
- [[Lucifer item author]] -- list
- [[Lucifer item author signed]] -- list
- [[Lucifer item comment]]
- [[Lucifer item type]]
- [[Lucifer item links to text]] -- list
- [[Lucifer item in Russian]] -- list
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.