Difference between revisions of "Template:From CTD (design)"
Jump to navigation
Jump to search
m (Pavel Malakhov moved page Template:From CTD design to Template:From CTD (design) without leaving a redirect) |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>This template is used by {{t|From | + | <noinclude>This template is used by {{t|From CTD}} to design the appearance of information from ''[[Comprehensive Theosophical Dictionary]]''. See main template for details. |
[[Category:Templates for templates]] | [[Category:Templates for templates]] | ||
− | [[Category:Templates for | + | [[Category:Templates for CTD]] |
[[t-ru-lib:Кратко из БТС (оформление)]] | [[t-ru-lib:Кратко из БТС (оформление)]] | ||
Line 12: | Line 12: | ||
Определяем другие параметры | Определяем другие параметры | ||
-->{{#vardefine:term|{{#if: {{{term to show|}}} | {{{term to show}}} | {{{term}}}}}}}<!-- используем вариант с ударениями и диакритикой, если же такого нет, то обычное написание | -->{{#vardefine:term|{{#if: {{{term to show|}}} | {{{term to show}}} | {{{term}}}}}}}<!-- используем вариант с ударениями и диакритикой, если же такого нет, то обычное написание | ||
− | -->{{#vardefine:description|{{#if: {{{short|}}} | {{{short}}} | {{#sub:{{{description}}}|0| | + | -->{{#vardefine:description|{{#if: {{{short|}}} | {{{short}}} | {{#sub:{{{description}}}|0|200}}...}}}}<!-- используем краткий вариант, если его нет, то выводим первые 100 символов из статьи (параметр "описание") |
-->{{#switch: {{#var:view}} | -->{{#switch: {{#var:view}} | ||
− | | | + | | footnote = {{#var:text}}<ref>{{#var:term}} {{#if: {{{origin|}}}| ({{{origin}}})|}} {{#var:description}}</ref> |
| brackets = {{#var:text}} [{{#var:description}}] | | brackets = {{#var:text}} [{{#var:description}}] | ||
− | | #default = {{#tag:span|{{#var:text}}|style=border-bottom:1px dotted gray; cursor:help;|title={{#var: | + | | #default = {{#tag:span|{{#var:text}}|style=border-bottom:1px dotted gray; cursor:help;|title={{#var:term}} {{#var:description}} (CTD)}} <!-- default view = popup --> |
− | }}< VALUES: view={{#var:view}}; text={{#var:text}}; term={{#var:term}}; short={{{short}}}; description={{#var:description}}; userparam={{{#userparam|}}};></includeonly> | + | }}<!-- |
+ | '''< DEBUG VALUES: view={{#var:view}}; text={{#var:text}}; term={{#var:term}}; short={{{short}}}; description={{#var:description}}; userparam={{{#userparam|}}};>''' | ||
+ | --></includeonly> |
Latest revision as of 14:33, 13 December 2022
This template is used by {{From CTD}} to design the appearance of information from Comprehensive Theosophical Dictionary. See main template for details.