Line 1: |
Line 1: |
− | <noinclude>This template is used by {{t|From ETG}} to design the appearance of information from [[ETG]]. See main template for details. | + | <noinclude>This template is used by {{t|From CTD}} to design the appearance of information from ''[[Comprehensive Theosophical Dictionary]]''. See main template for details. |
| | | |
− | [[Категория:Templates for templates]] | + | [[Category:Templates for templates]] |
− | [[Категория:Templates for ETG]] | + | [[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|100}}...}}}}<!-- используем краткий вариант, если его нет, то выводим первые 100 символов из статьи (параметр "описание") | + | -->{{#vardefine:description|{{#if: {{{short|}}} | {{{short}}} | {{#sub:{{{description}}}|0|200}}...}}}}<!-- используем краткий вариант, если его нет, то выводим первые 100 символов из статьи (параметр "описание") |
| | | |
| -->{{#switch: {{#var:view}} | | -->{{#switch: {{#var:view}} |
− | | popup = {{#var:text}}<ref>''{{#var:term}}'' {{#if: {{{origin|}}}| ({{{origin}}})|}} {{{description}}}</ref> | + | | 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:description}} (ETG, {{#var:term}})}} | + | | #default = {{#tag:span|{{#var:text}}|style=border-bottom:1px dotted gray; cursor:help;|title={{#var:term}} {{#var:description}} (CTD)}} <!-- default view = popup --> |
− | }}</includeonly> | + | }}<!-- |
| + | '''< DEBUG VALUES: view={{#var:view}}; text={{#var:text}}; term={{#var:term}}; short={{{short}}}; description={{#var:description}}; userparam={{{#userparam|}}};>''' |
| + | --></includeonly> |