Jump to content

Template:CTD article: Difference between revisions

m
Move 'mentioned in' into a collapsible 'Mentions' block before DATA (parity with CTD literature / Литература БТС)
(Add Short name for categories: compact short name (no comma, no spaces in initials) for author category names)
m (Move 'mentioned in' into a collapsible 'Mentions' block before DATA (parity with CTD literature / Литература БТС))
Line 178: Line 178:
{{#if: {{{mentioned in|}}}
{{#if: {{{mentioned in|}}}
|{{#set: CTD mentioned in={{{mentioned in|}}}|+sep=;}}
|{{#set: CTD mentioned in={{{mentioned in|}}}|+sep=;}}
<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Mentioned in:</p>
<ul>{{#arraymap:{{{mentioned in|}}}|;|@@|<li>@@</li>|}}</ul>
|}}
|}}


Line 207: Line 205:
-->{{#if: {{{other resources|}}}|<li>Other resources: {{#arraymap:{{{other resources|}}}|;|@@|@@}}</li>|}}
-->{{#if: {{{other resources|}}}|<li>Other resources: {{#arraymap:{{{other resources|}}}|;|@@|@@}}</li>|}}
</ul>|}}
</ul>|}}
<!--
  MENTIONS: collapsible block, collapsed by default; shown only if filled.
  Placed before the DATA block.
-->{{#if: {{{mentioned in|}}}
| <table class="mw-collapsible mw-collapsed" style="background:#f8f9fa;border:1px solid grey;width:100%;margin-top:1em;">
<tr><td style="font-weight:bold;padding:3px 5px;">Mentions</td></tr>
<tr><td style="padding:0 8px 8px 8px;">
<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Mentioned in:</p>
<ul>{{#arraymap:{{{mentioned in|}}}|;|@@|<li>@@</li>|}}</ul>
</td></tr>
</table>
}}


<!-- Some important data for semantic requests -->
<!-- Some important data for semantic requests -->