Template:CTD article: Difference between revisions

m
+short description
mNo edit summary
m (+short description)
Line 83: Line 83:
[[Category: Templates with forms]]
[[Category: Templates with forms]]
[[Category: Templates for CTD]]
[[Category: Templates for CTD]]
[[t-ru-lib:Шаблон:Понятие БТС]]
</noinclude><includeonly><!-- consider compatibility with old parameters
</noinclude><includeonly><!-- consider compatibility with old parameters
-->{{#vardefine:term to show| {{{term to show|}}} }}<!-- new name
-->{{#vardefine:term to show| {{{term to show|}}} }}<!-- new name
Line 153: Line 155:
<div style="white-space: pre-wrap;">{{{description|}}}</div>
<div style="white-space: pre-wrap;">{{{description|}}}</div>
{{#set: CTD term origin={{{origin|}}}|CTD term description={{{description|}}}}}
{{#set: CTD term origin={{{origin|}}}|CTD term description={{{description|}}}}}
{{#if: {{{short description|}}}
|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">{{tip|Shortly|Short text for popup hints and footnotes; main meaning in several words.}}:</p>{{{short description}}} {{#set: CTD term short description={{{short description|}}}}}
| {{#set: CTD term short description={{#sub:{{{description|}}}|0|100}}{{#ifexpr: {{#len:{{{description|}}}}} > 100 |...}}}}
}}
{{#if: {{{related terms|}}}| <hr>
{{#if: {{{related terms|}}}| <hr>
<div style="font-size: 90%;">'''See also:''' {{#arraymap:{{{related terms|}}}|;|@@| {{#set:CTD related term=@@}} {{#formredlink:target=@@|form=CTD article}} }}</div> |}}<!--
<div style="font-size: 90%;">'''See also:''' {{#arraymap:{{{related terms|}}}|;|@@| {{#set:CTD related term=@@}} {{#formredlink:target=@@|form=CTD article}} }}</div> |}}<!--