Template:Lucifer item: Difference between revisions
m (+subtitle) |
(Add opt-in linked TOC titles, small caps for principal works, regular supplementary titles and separate comment lines.) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 21: | 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 39: | 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 47: | 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>}} | ||
| <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}}}|}} | ||
<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> |}}<!-- | ||
-->{{#if: {{{in russian|}}}|Translations: <span class="plainlinks">{{{in russian}}}</span>. |}}<!-- | |||
-->{{#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|}}} | ||
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.