Template:CTD literature data: Difference between revisions

From Teopedia
(Создание шаблона строки для CTD/Literature, аналогично CTD periodical data)
 
m (Убрана жирность у краткого описания, серый цвет сохранён)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>This template is used in [[CTD]] for [[CTD/Literature|literature]].
<noinclude>This template is used in [[CTD]] for [[CTD/Literature|literature]]. Renders one block per work: small-caps title, italic author in natural name order, an optional grey "(signed ...)" note when the work was originally signed with a different name, and a short description line.


[[Category: Templates for CTD]]
[[Category: Templates for CTD]]
[[Category: Templates for templates]]
[[Category: Templates for templates]]
</noinclude><includeonly>|-valign=top
</noinclude><includeonly><div style="margin-bottom:0.5em;"><span style="font-variant: small-caps; font-weight: bold; font-size: 100%;">{{#if: {{{name|}}}| [[{{{wiki_page|}}}|{{{name|}}}]] | [[{{{wiki_page|}}}]] }}</span><!--
| {{#if: {{{image|}}} | [[File:{{{image|}}}|200x40px|right]] |}}
-->{{#if: {{{author|}}} | &#32;—&#32;<span style="font-style:italic;font-weight:normal;">{{#arraymap:{{{author|}}}|;|@@|{{#if:{{#show:@@|?Full name|link=none}}|{{#show:@@|?Full name|link=none}}|@@}}|, }}</span> |}}<!--
| <span style="font-variant: small-caps; font-weight: bold; ">{{#if: {{{name|}}}| [[{{{wiki_page|}}}|{{{name|}}}]] | [[{{{wiki_page|}}}]] }}</span> <span style="font-size: 90%;"><!--
-->{{#if: {{{signed|}}} | <span style="color:grey;font-weight:normal;">&#32;(signed: <span style="font-style:italic;">{{{signed|}}}</span>)</span> |}}<!--
-->{{#if: {{{author|}}} |&#32;– {{{author}}} |}}<!--
-->{{#if: {{{description|}}} | <div style="font-size: 90%; margin-top: -0.3em; line-height: 120%; color: grey; font-weight: normal;">{{{description|}}}</div> |}}</div></includeonly>
-->{{#if: {{{variations|}}} |&#32;{{{variations|}}} |}}<!--
-->{{#if: {{{origin|}}} |&#32;– {{{origin|}}} |}}<!--
--></span>
{{#if: {{{description|}}} | <div style="font-size: 90%; margin-top: -0.3em; line-height: 120%; color: grey;">{{{description|}}}</div> |}}
</includeonly>

Latest revision as of 15:27, 18 November 2026

This template is used in CTD for literature. Renders one block per work: small-caps title, italic author in natural name order, an optional grey "(signed ...)" note when the work was originally signed with a different name, and a short description line.