Bots, Editors (Semantic MediaWiki), trusted
9,973
edits
m (Add subtitle and format parameters, matching Lucifer item) |
m (Add format=linked mode with title link/title style, matching Lucifer item) |
||
| Line 32: | Line 32: | ||
| page = | | page = | ||
| title = | | title = | ||
| title link = | |||
| title style = | |||
| subtitle = | | subtitle = | ||
| author = | | author = | ||
| Line 43: | Line 45: | ||
</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 = 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]] | ||
| Line 49: | Line 53: | ||
|- 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="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: {{{in russian|}}}|Translations: <span class="plainlinks">{{{in russian}}}</span>. |}}<!-- | ||
-->{{#if: {{{comment|}}}|{{{comment}}}|}}</p> | -->{{#if: {{{comment|}}}|{{#ifeq: {{{format|}}}|linked|<span class="path-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>|}}<!-- | ||