Template:CTD article: Difference between revisions
(Support the mentioned in field for reviewed CTD entries) |
(Add Short name for categories: compact short name (no comma, no spaces in initials) for author category names) |
||
| Line 47: | Line 47: | ||
* '''person''' -- "yes" if it is a person, in this case term will be added to category {{c|Persons}} and semantic properties {{p|Name}}, {{p|Full name}}, {{p|Short name}} and {{p|Short name regular}} are set; ''full name'' is a name set in ''term to show'' parameter or equals ''term'' otherwise | * '''person''' -- "yes" if it is a person, in this case term will be added to category {{c|Persons}} and semantic properties {{p|Name}}, {{p|Full name}}, {{p|Short name}} and {{p|Short name regular}} are set; ''full name'' is a name set in ''term to show'' parameter or equals ''term'' otherwise | ||
* '''short name''' -- short version of name or family name (surname) for bibliography, i.e. ''Blavatsky'' or ''Avicenna''; {{p|Short name}} | * '''short name''' -- short version of name or family name (surname) for bibliography, i.e. ''Blavatsky'' or ''Avicenna''; {{p|Short name}} | ||
* '''initials''' -- initials to add to surname for bibliography and short references; if set, then '''short name''' is interpreted as surname and | * '''initials''' -- initials to add to surname for bibliography and short references; if set, then '''short name''' is interpreted as surname and three properties are set: | ||
: • {{p|Short name regular}} in regular format '''N. M. Surname''', f.e.: ''H. P. Blavatsky'', or ''Rev. W. B. Slaughter'', or ''J.-E. de Mirville'' | : • {{p|Short name regular}} in regular format '''N. M. Surname''', f.e.: ''H. P. Blavatsky'', or ''Rev. W. B. Slaughter'', or ''J.-E. de Mirville'' | ||
: • {{p|Short name}} in sortable format '''Surname, N. M.''', f.e.: ''Blavatsky, H. P.'', or ''Slaughter, Rev. W. B.'', or ''Mirville, J.-E. de'' | : • {{p|Short name}} in sortable format '''Surname, N. M.''', f.e.: ''Blavatsky, H. P.'', or ''Slaughter, Rev. W. B.'', or ''Mirville, J.-E. de'' | ||
: • {{p|Short name for categories}} in compact format '''Surname N.M.''' (no comma, no spaces between initials), f.e.: ''Blavatsky H.P.''; used to build author category names, f.e. {{c|Blavatsky H.P. (works)}} | |||
* '''origin''' -- spelling in original language, original meaning, etymology; {{p|CTD term origin}} | * '''origin''' -- spelling in original language, original meaning, etymology; {{p|CTD term origin}} | ||
| Line 103: | Line 104: | ||
set short name according to initials value | set short name according to initials value | ||
-->{{#if: {{{initials|}}} | -->{{#if: {{{initials|}}} | ||
| {{#vardefine:short name|{{{short name|}}}, {{{initials|}}}}} {{#vardefine:short name regular|{{{initials|}}} {{{short name|}}}}} | | {{#vardefine:short name|{{{short name|}}}, {{{initials|}}}}} {{#vardefine:short name regular|{{{initials|}}} {{{short name|}}}}} {{#vardefine:short name for categories|{{{short name|}}} {{#invoke:CTD|nospaces|{{{initials|}}}}}}} | ||
| {{#vardefine:short name|{{{short name|}}}}} | | {{#vardefine:short name|{{{short name|}}}}} {{#vardefine:short name for categories|{{{short name|}}}}} | ||
}}<!-- | }}<!-- | ||
| Line 142: | Line 143: | ||
-->{{#vardefine:person|{{lc: {{{person|}}} }}}}<!-- turn letters to lower case | -->{{#vardefine:person|{{lc: {{{person|}}} }}}}<!-- turn letters to lower case | ||
-->{{#switch: {{#var:person}} | -->{{#switch: {{#var:person}} | ||
| yes = {{#set: Name={{{term|}}} | Short name={{#var:short name}} | Short name regular={{#var:short name regular}} }} {{#if: {{{term to show|}}}| {{#set: Full name={{{term to show|}}}}} | {{#set: Full name={{{term|}}}}} }}[[Category: Persons]] | | yes = {{#set: Name={{{term|}}} | Short name={{#var:short name}} | Short name regular={{#var:short name regular}} | Short name for categories={{#var:short name for categories}} }} {{#if: {{{term to show|}}}| {{#set: Full name={{{term to show|}}}}} | {{#set: Full name={{{term|}}}}} }}[[Category: Persons]] | ||
| default = [[Category: CTD terms]] | | default = [[Category: CTD terms]] | ||
}}<!-- | }}<!-- | ||
| Line 212: | Line 213: | ||
<p style="text-indent: 0px;">To show: <b>{{#var:term to show}}</b>; sortable: <b>{{{term|}}}</b><br> | <p style="text-indent: 0px;">To show: <b>{{#var:term to show}}</b>; sortable: <b>{{{term|}}}</b><br> | ||
{{#switch: {{#var:person}} | {{#switch: {{#var:person}} | ||
| yes =Person's short name: <b>{{#var:short name regular}}</b>; sortable: <b>{{#var:short name}}</b><br> | | yes =Person's short name: <b>{{#var:short name regular}}</b>; sortable: <b>{{#var:short name}}</b>; for categories: <b>{{#var:short name for categories}}</b><br> | ||
|}} | |}} | ||
Lifetime: <b>{{#var:lifetime}}</b><br> | Lifetime: <b>{{#var:lifetime}}</b><br> | ||
Revision as of 03:13, 27 October 2026
This template is used by form «CTD article» to create or edit an article of Comprehensive Theosophical Dictionary.
- To create a new article use form «CTD article».
- Pages that use this template are placed in category «CTD articles» and other categories, named in "categories" parameter.
- Module CTD with some additional functions.
| To copy | Description |
|---|---|
{{CTD article
| term =
| term to show =
| person =
| short name =
| initials =
| origin =
| variations =
| transliteration SD ed.1 =
| transliteration SD ed.3 =
| transliteration HK =
| transliteration IAST =
| description =
| mentioned in =
| short description =
| image =
| image description =
| categories =
| related terms =
| start =
| end =
| approximate duration =
| library links =
| library pages =
| quotes =
| ctd rus =
| tsw en =
| wikipedia =
| other resources =
}}
|
Name:
Semantic property [[Lifetime]] is set if at least one of the above is not empty.
|
See also
- Понятие БТС -- corresponding template in Russian section