Template:CTD article: Difference between revisions
mNo edit summary |
m (Add 'works' parameter (parity with ru 'труды'): marks author as having works in the Library and links to the Category:<Short name> (works)) |
||
| (6 intermediate revisions by 3 users not shown) | |||
| Line 12: | Line 12: | ||
| <pre> | | <pre> | ||
{{CTD article | {{CTD article | ||
| term = | | term = | ||
| term to show = | | term to show = | ||
| person = | | person = | ||
| short name = | | works = | ||
| short name = | |||
| initials = | | initials = | ||
| origin = | | origin = | ||
| Line 24: | Line 25: | ||
| transliteration IAST = | | transliteration IAST = | ||
| description = | | description = | ||
| mentioned in = | |||
| short description = | | short description = | ||
| image = | | image = | ||
| Line 32: | Line 34: | ||
| end = | | end = | ||
| approximate duration = | | approximate duration = | ||
| library links = | |||
| library pages = | | library pages = | ||
| quotes | | quotes = | ||
| ctd rus = | | ctd rus = | ||
| tsw en = | | tsw en = | ||
| Line 44: | Line 47: | ||
* '''term to show''' -- the same term with diacritical marks (if exist) and stress mark (if needed); if term is a name then put it in a full form in regular order, for example: ''Helena Petrovna Blavatsky''; {{p|CTD term to show}}, {{p|CTD term}} | * '''term to show''' -- the same term with diacritical marks (if exist) and stress mark (if needed); if term is a name then put it in a full form in regular order, for example: ''Helena Petrovna Blavatsky''; {{p|CTD term to show}}, {{p|CTD term}} | ||
* '''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 | ||
* '''works''' -- "yes" if this author has works in the Library; in this case the article is placed in category {{c|Authors}} and a link to the category with this author's works is added (f.e. {{c|Blavatsky H.P. (works)}}) | |||
* '''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 59: | Line 64: | ||
''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}} | ||
* '''mentioned in''' – works in which this term, person, literary work or periodical is mentioned. Enter work titles as hyperlinks, separated by semicolons. Each item is stored as a separate value of the Text property {{p|CTD mentioned in}} | |||
* '''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}} | * '''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}} | ||
| Line 74: | Line 80: | ||
''Teopedia links:'' | ''Teopedia links:'' | ||
* '''library | * '''library links''' -- wiki pages in Library in user defined style; showed as set, with or without link | ||
* '''quotes | * '''library pages''' -- wiki page name; it will be wraped in brackets, making a link: <nowiki>[[text]]</nowiki> | ||
* '''quotes''' -- list of quote sources, separated by ";", f.e. ''H. P. Blavatsky; Radha Burnier''; for each source a link is generated to the matching section of this article's page in the [[:Quotes:|Quotes]] namespace, i.e. page ''Quotes:<the article's own page name>'', with an anchor equal to the source name -- f.e. for article ''Ahura Mazda'' and source ''H. P. Blavatsky'' the link leads to ''Quotes:Ahura Mazda#H. P. Blavatsky'' (that section heading must exist on the Quotes page and match the source name exactly, including capitalization) | |||
* '''ctd rus''' -- article in Russian | * '''ctd rus''' -- article in Russian | ||
| Line 99: | Line 106: | ||
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 138: | Line 145: | ||
-->{{#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 171: | Line 178: | ||
</div> | </div> | ||
<div style="white-space: pre-wrap;">{{{description|}}}</div> | <div style="white-space: pre-wrap;">{{{description|}}}</div> | ||
{{#if: {{{mentioned in|}}} | |||
|{{#set: CTD mentioned in={{{mentioned in|}}}|+sep=;}} | |||
|}} | |||
{{#set: CTD term origin={{{origin|}}}|CTD term description={{{description|}}}}} | {{#set: CTD term origin={{{origin|}}}|CTD term description={{{description|}}}}} | ||
{{#if: {{{related terms|}}}| <hr> | {{#if: {{{related terms|}}}| <hr> | ||
| Line 177: | Line 188: | ||
Links to other pages and resources; | Links to other pages and resources; | ||
see if there are any: | see if there are any: | ||
-->{{#ifeq: {{lc:{{{works|}}}}} | yes | {{#vardefine:link_exists|yes}} |}}<!-- | |||
-->{{#if: {{{library pages|}}} | {{#vardefine:link_exists|yes}} |}}<!-- | -->{{#if: {{{library pages|}}} | {{#vardefine:link_exists|yes}} |}}<!-- | ||
-->{{#if: {{{quotes | -->{{#if: {{{library links|}}} | {{#vardefine:link_exists|yes}} |}}<!-- | ||
-->{{#if: {{{quotes|}}} | {{#vardefine:link_exists|yes}} |}}<!-- | |||
-->{{#if: {{{ctd rus|}}} | {{#vardefine:link_exists|yes}} |}}<!-- | -->{{#if: {{{ctd rus|}}} | {{#vardefine:link_exists|yes}} |}}<!-- | ||
-->{{#if: {{{tsw en|}}} | {{#vardefine:link_exists|yes}} |}}<!-- | -->{{#if: {{{tsw en|}}} | {{#vardefine:link_exists|yes}} |}}<!-- | ||
| Line 187: | Line 200: | ||
-->{{#varexists:link_exists|{{Style P-No indent|'''Some links:'''}} | -->{{#varexists:link_exists|{{Style P-No indent|'''Some links:'''}} | ||
<ul> | <ul> | ||
{{#if: {{{library pages|}}}|<li>Related pages: {{#arraymap:{{{library pages|}}}|;|@@|[[@@]]}}</li>|}}<!-- | {{#ifeq: {{lc:{{{works|}}}}} | yes |<li>Works: [[:Category:{{#if:{{{short name|}}}|{{#var:short name for categories}}|{{{term|}}}}} (works)|{{#if:{{{short name|}}}|{{#var:short name for categories}}|{{{term|}}}}} (works)]]</li>[[Category: Authors]]|}}<!-- | ||
-->{{#if: {{{quotes | -->{{#if: {{{library links|}}}|<li>Related pages: {{#arraymap:{{{library links|}}}|;|@@|@@}}</li>|}}<!-- | ||
-->{{#if: {{{library pages|}}}|<li>Related pages: {{#arraymap:{{{library pages|}}}|;|@@|[[@@]]}}</li>|}}<!-- | |||
-->{{#if: {{{quotes|}}}|<li>Quotes: {{#arraymap:{{{quotes|}}}|;|@@|[[Quotes:{{FULLPAGENAME}}#@@|@@]]}}</li>|}}<!-- | |||
-->{{#if: {{{ctd rus|}}}|<li>CTD article in Russian: [[:t-ru-lib:{{{ctd rus|}}}|{{{ctd rus|}}}]] [[t-ru-lib:{{{ctd rus|}}}]]</li>|}}<!-- | -->{{#if: {{{ctd rus|}}}|<li>CTD article in Russian: [[:t-ru-lib:{{{ctd rus|}}}|{{{ctd rus|}}}]] [[t-ru-lib:{{{ctd rus|}}}]]</li>|}}<!-- | ||
-->{{#if: {{{tsw en|}}}|<li>Theosophy Wiki: {{#arraymap:{{{tsw en|}}}|;|@@|[[:tsw-en:@@|@@]]}}</li>|}}<!-- | -->{{#if: {{{tsw en|}}}|<li>Theosophy Wiki: {{#arraymap:{{{tsw en|}}}|;|@@|[[:tsw-en:@@|@@]]}}</li>|}}<!-- | ||
| Line 194: | Line 209: | ||
-->{{#if: {{{other resources|}}}|<li>Other resources: {{#arraymap:{{{other resources|}}}|;|@@|@@}}</li>|}} | -->{{#if: {{{other resources|}}}|<li>Other resources: {{#arraymap:{{{other resources|}}}|;|@@|@@}}</li>|}} | ||
</ul>|}} | </ul>|}} | ||
<!-- | |||
MENTIONS: collapsible block, collapsed by default; shown only if filled. | |||
Placed before the DATA block. | |||
-->{{#if: {{{mentioned in|}}} | |||
| <table class="mw-collapsible mw-collapsed" style="background:#f8f9fa;border:1px solid grey;width:100%;margin-top:1em;"> | |||
<tr><td style="font-weight:bold;padding:3px 5px;">Mentions</td></tr> | |||
<tr><td style="padding:0 8px 8px 8px;"> | |||
<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Mentioned in:</p> | |||
<ul>{{#arraymap:{{{mentioned in|}}}|;|@@|<li>@@</li>|}}</ul> | |||
</td></tr> | |||
</table> | |||
}} | |||
<!-- Some important data for semantic requests --> | <!-- Some important data for semantic requests --> | ||
| Line 200: | Line 227: | ||
<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> | ||
Latest revision as of 04:00, 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 =
| works =
| 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