Line 53: |
Line 53: |
| ''Description, relationship:'' | | ''Description, relationship:'' |
| * '''description''' -- description of a term, the article itself; {{p|CTD term description}} | | * '''description''' -- description of a term, the article itself; {{p|CTD term description}} |
− | * '''short description''' -- short description of a term, optional; if empty, set to first 100 chars from ''description''; {{p|CTD term short description}} | + | * '''short description''' -- short description, used in footnotes and popup information; optional; if empty, set to first 100 chars from ''description''; {{p|CTD term short description}} |
| * '''image''' -- filename of an image; {{p|CTD term image}} | | * '''image''' -- filename of an image; {{p|CTD term image}} |
| * '''image description''' -- for person, if this parameter is not set, there will be automatic description generated from name and dates of life; {{p|CTD term image}} | | * '''image description''' -- for person, if this parameter is not set, there will be automatic description generated from name and dates of life; {{p|CTD term image}} |
Line 94: |
Line 94: |
| |+sep=; | | |+sep=; |
| }}<!-- | | }}<!-- |
| + | set lifetime; priority for approximate value |
| + | -->{{#vardefine:lifetime|}}<!-- инициируем пустым значением |
| + | -->{{#if: {{{start|}}} | {{#vardefine:время жизни|{{#time: Y | {{{start|}}}}}-{{#time: Y | {{{end|}}}}} }} |}}<!-- |
| + | -->{{#if: {{{approximate duration|}}} | {{#vardefine:lifetime| {{{approximate duration}}} }} |}}<!-- |
| + | -->{{#set: Lifetime={{#var:lifetime}} }}<!-- |
| Glossary HEADER --> | | Glossary HEADER --> |
| {{CTD header}} | | {{CTD header}} |
Line 103: |
Line 108: |
| image description --> | | image description --> |
| <div style="text-align: center;">{{{term|}}}</div> | | <div style="text-align: center;">{{{term|}}}</div> |
| + | <div style="text-align: center;">{{#var:lifetime}}</div> |
| {{#if: {{{approximate duration|}}} | | {{#if: {{{approximate duration|}}} |
| | <div style="text-align: center; >{{{approximate duration}}}</div>{{#set: Lifetime={{{approximate duration}}}}} | | | <div style="text-align: center; >{{{approximate duration}}}</div>{{#set: Lifetime={{{approximate duration}}}}} |
Line 156: |
Line 162: |
| <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> |}}<!-- |
Line 184: |
Line 185: |
| </ul>|}} | | </ul>|}} |
| | | |
− | <div style="border: 1px grey solid; background:#f8f8ff; width: 100%; font-size: 90%; color: grey; margin-top: 2em;"> | + | <!-- Some important data for semantic requests --> |
− | <p style="text-indent: 5px; font-size: 80%;">'''DATA'''</p> | + | <div style="border: 1px grey solid; background:#f8f8ff; width: 100%; font-size: 90%; color: grey; margin-top: 2em; 2em; padding: 0 5px;"> |
− | <p style="text-indent: 5px;">To show: <b>{{#var:term to show}}</b>; sortable: <b>{{{term|}}}</b>; short sortable: <b>{{{short name|}}}</b></p> | + | <p style="text-indent: 5px; font-size: 80%;">'''{{tip|DATA|Some important data for semantic requests}}'''</p> |
− | {{#if: {{{term diacritical|}}}| <p style="text-indent: 5px; color: #9b111e;">'''! Template needs update !''' some parameters have been changed, see [[Template:CTD_article|description]].</p> [[Category:Pages to update template]]|}} | + | <p style="text-indent: 0px;">To show: <b>{{#var:term to show}}</b>; sortable: <b>{{{term|}}}</b>; short sortable: <b>{{{short name|}}}</b><br> |
| + | Lifetime: <b></b> <br> |
| + | {{tip|Shortly|Short description used in footnotes and popup information.}}: <b>[[CTD term short description::{{#invoke: CTD |shortly| short_text = {{{short description|}}} | long_text = {{{description|}}}}}]]</b> |
| + | </p> |
| + | {{#if: {{{term diacritical|}}}| <p style="text-indent: 0px; color: #9b111e;">'''! Template needs update !''' some parameters have been changed, see [[Template:CTD_article|description]].</p> [[Category:Pages to update template]]|}} |
| </div> | | </div> |
| | | |