Line 3: |
Line 3: |
| * To create a new article use form {{f|CTD article}}. | | * To create a new article use form {{f|CTD article}}. |
| * Pages that use this template are placed in category {{c|CTD articles}} and other categories, named in "categories" parameter. | | * Pages that use this template are placed in category {{c|CTD articles}} and other categories, named in "categories" parameter. |
| + | * [[Module:CTD|Module CTD]] with some additional functions. |
| | | |
| {| class=wikitable | | {| class=wikitable |
Line 95: |
Line 96: |
| }}<!-- | | }}<!-- |
| set lifetime; priority for approximate value | | set lifetime; priority for approximate value |
− | -->{{#vardefine:lifetime|}}<!-- инициируем пустым значением | + | -->{{#vardefine:lifetime|}}<!-- set it empty, initialize |
− | -->{{#if: {{{start|}}} | {{#vardefine:время жизни|{{#time: Y | {{{start|}}}}}-{{#time: Y | {{{end|}}}}} }} |}}<!-- | + | -->{{#if: {{{start|}}} | {{#vardefine:lifetime|{{#time: Y | {{{start|}}}}}-{{#time: Y | {{{end|}}}}} }} |}}<!-- |
| -->{{#if: {{{approximate duration|}}} | {{#vardefine:lifetime| {{{approximate duration}}} }} |}}<!-- | | -->{{#if: {{{approximate duration|}}} | {{#vardefine:lifetime| {{{approximate duration}}} }} |}}<!-- |
| -->{{#set: Lifetime={{#var:lifetime}} }}<!-- | | -->{{#set: Lifetime={{#var:lifetime}} }}<!-- |
| + | |
| Glossary HEADER --> | | Glossary HEADER --> |
| {{CTD header}} | | {{CTD header}} |
Line 189: |
Line 191: |
| <p style="text-indent: 5px; font-size: 80%;">'''{{tip|DATA|Some important data for semantic requests}}'''</p> | | <p style="text-indent: 5px; font-size: 80%;">'''{{tip|DATA|Some important data for semantic requests}}'''</p> |
| <p style="text-indent: 0px;">To show: <b>{{#var:term to show}}</b>; sortable: <b>{{{term|}}}</b>; short sortable: <b>{{{short name|}}}</b><br> | | <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> | + | Lifetime: <b>{{#var:lifetime}}</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> | | {{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> | | </p> |