Template:Path item: Difference between revisions
mNo edit summary |
m (Add format=linked mode with title link/title style, matching Lucifer item) |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<noinclude>This template creates | <noinclude>This template creates a line in table of contents for ''[[Path, The|The Path]]'' magazine. | ||
To copy: | {{Style P-No indent|It creates semantic subobject with the following properties:}} | ||
<pre> | * {{p|Path item ID}} | ||
{{ Path item | * {{p|Path item volume}} | ||
* {{p|Path item number}} | |||
* {{p|Path item month}} | |||
* {{p|Path item year}} | |||
* {{p|Path item page}} | |||
* {{p|Path item title}} | |||
* {{p|Path item subtitle}} | |||
* {{p|Path item author}} -- list | |||
* {{p|Path item author signed}} -- list | |||
* {{p|Path item comment}} | |||
* {{p|Path item type}} | |||
* {{p|Path item links to text}} -- list | |||
* {{p|Path item in Russian}} -- list | |||
Lists have “;” as separator. | |||
{{Style P-No indent|'''Related templates:'''}} | |||
* {{t|Path volume}} – a header for one volume, which consists of 12 numbers | |||
* {{t|Path number}} – a header for one number, which consists of several items | |||
* {{t|Path item}} – one item, which could be an article, review, report, and so on | |||
{{Style P-No indent|'''To copy:'''}} | |||
<pre>{{Path item | |||
| id = | | id = | ||
| volume = | | volume = | ||
| number = | | number = | ||
| month = | | month = | ||
| year = | |||
| page = | | page = | ||
| title = | | title = | ||
| title link = | |||
| title style = | |||
| subtitle = | |||
| author = | | author = | ||
| author signed = | | author signed = | ||
| comment = | | comment = | ||
| type = | |||
| 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 now shows the title in small caps. | |||
< | |||
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, or to a bookmark on the volume's text page, e.g. <code>Path/Vol1/Text#path_v1_n1_p7</code> (see {{t|Page aside in Path}}). 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 for periodicals]] | |||
</noinclude><includeonly> | </noinclude><includeonly> | ||
|- valign=top | |- valign=top | ||
| | | 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>}} | ||
| {{{ | |||
| {{#if: {{{ | | {{#ifeq: {{{format|}}}|linked|<span class="path-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: {{{comment|}}}|{{#ifeq: {{{format|}}}|linked|<span class="path-item-comment" style="display: block;">{{{comment}}}</span>|{{{comment}}}}}|}}</p> | |||
-->{{#if: {{{in russian|}}}|< | |<p style="text-indent: 0; line-height: 110%; font-size: 80%; color: grey;">{{#if: {{{type|}}}|({{{type}}}) <br>|}}<!-- | ||
-->{{#if: {{{comment|}}}|<br>< | -->{{#if: {{{links to text|}}}|Read at: <span class="plainlinks">{{{links to text}}}</span>|}}<!-- | ||
</includeonly> | -->{{#if: {{{in russian|}}}|Russian: <span class="plainlinks">{{{in russian}}}</span>|}}<!-- | ||
-->{{#if: {{{comment|}}}|<br>{{{comment}}}|}} | |||
</p> | |||
}} | |||
| {{{author|}}} | |||
{{#if: {{{author signed|}}}|<p style="text-indent: 0; color: grey;">{{{author signed}}}</p>|}} | |||
<!-- | |||
set SUBOBJECT with semantic properties --> | |||
{{#subobject: Path item {{{id|}}} | |||
| Path item ID ={{{id|}}} | |||
| Path item volume ={{{volume|}}} | |||
| Path item number ={{{number|}}} | |||
| Path item month ={{{month|}}} | |||
| Path item year ={{{year|}}} | |||
| Path item page ={{{page|}}} | |||
| Path item title ={{{title|}}} | |||
| Path item subtitle ={{{subtitle|}}} | |||
| Path item author ={{{author|}}}|+sep=; | |||
| Path item author signed ={{{author signed|}}}|+sep=; | |||
| Path item comment={{{comment|}}} | |||
| Path item type ={{{type|}}} | |||
| Path item links to text ={{{links to text|}}}|+sep=; | |||
| Path item in Russian ={{{in russian|}}}|+sep=; | |||
}}</includeonly> | |||
Latest revision as of 16:33, 2 November 2026
This template creates a line in table of contents for The Path magazine.
It creates semantic subobject with the following properties:
- [[Path item ID]]
- [[Path item volume]]
- [[Path item number]]
- [[Path item month]]
- [[Path item year]]
- [[Path item page]]
- [[Path item title]]
- [[Path item subtitle]]
- [[Path item author]] -- list
- [[Path item author signed]] -- list
- [[Path item comment]]
- [[Path item type]]
- [[Path item links to text]] -- list
- [[Path item in Russian]] -- list
Lists have “;” as separator.
Related templates:
- {{Path volume}} – a header for one volume, which consists of 12 numbers
- {{Path number}} – a header for one number, which consists of several items
- {{Path item}} – one item, which could be an article, review, report, and so on
To copy:
{{Path item
| id =
| volume =
| number =
| month =
| year =
| page =
| title =
| title link =
| title style =
| 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 now shows the title in small caps.
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, or to a bookmark on the volume's text page, e.g. Path/Vol1/Text#path_v1_n1_p7 (see {{Page aside in Path}}). 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.