Template:CTD article: Difference between revisions

From Teopedia
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))
 
(8 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 hpb =  
  | quotes =  
  | ctd rus =  
  | ctd rus =  
  | tsw en =  
  | tsw en =  
Line 43: Line 46:
* '''term''' -- term or name in full length in sortable form, i.e. without diacritical marks and if it is a name, it should be in following order: Last Name, Other Names, for example: ''Blavatsky, Helena Petrovna'' or ''Monier-Williams, Sir Monier'' (consider comma after last name); {{p|CTD term sortable}}, {{p|CTD term}}
* '''term''' -- term or name in full length in sortable form, i.e. without diacritical marks and if it is a name, it should be in following order: Last Name, Other Names, for example: ''Blavatsky, Helena Petrovna'' or ''Monier-Williams, Sir Monier'' (consider comma after last name); {{p|CTD term sortable}}, {{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}}
* '''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}} and {{p|Short name}} 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 two properties are set:
* '''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 pages''' -- wiki pages in Library
* '''library links''' -- wiki pages in Library in user defined style; showed as set, with or without link
* '''quotes hpb''' -- page with quotes by H.P. Blavatsky
* '''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|}}}
  | {{#set: Short name={{{short name|}}}, {{{initials|}}}| Short name regular={{{initials|}}} {{{short name|}}}}} {{#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|}}}}}}}
  | {{#set: Short name={{{short name|}}}}} {{#vardefine:short name SNM|{{{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={{{short name|}}}}} {{#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 hpb|}}}     | {{#vardefine:link_exists|yes}} |}}<!--
-->{{#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 hpb|}}}|<li>H.P.Blavatsky quotes: {{#arraymap:{{{quotes hpb|}}}|;|@@|[[:t-en-hpb:@@|@@]]}}</li>|}}<!--
-->{{#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:
  • term -- term or name in full length in sortable form, i.e. without diacritical marks and if it is a name, it should be in following order: Last Name, Other Names, for example: Blavatsky, Helena Petrovna or Monier-Williams, Sir Monier (consider comma after last name); [[CTD term sortable]], [[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; [[CTD term to show]], [[CTD term]]
  • person -- "yes" if it is a person, in this case term will be added to category «Persons» and semantic properties [[Name]], [[Full name]], [[Short name]] and [[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 «Authors» and a link to the category with this author's works is added (f.e. «Blavatsky H.P. (works)»)
  • short name -- short version of name or family name (surname) for bibliography, i.e. Blavatsky or Avicenna; [[Short name]]
  • 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:
• [[Short name regular]] in regular format N. M. Surname, f.e.: H. P. Blavatsky, or Rev. W. B. Slaughter, or J.-E. de Mirville
• [[Short name]] in sortable format Surname, N. M., f.e.: Blavatsky, H. P., or Slaughter, Rev. W. B., or Mirville, J.-E. de
• [[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. «Blavatsky H.P. (works)»


Description, relationship:

  • description -- description of a term, the article itself; [[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 [[CTD mentioned in]]
  • short description -- short description, used in footnotes and popup information; optional; if empty, set to first 100 chars from description; [[CTD term short description]]
  • image -- filename of an image; [[CTD term image]]
  • image description -- for person, if this parameter is not set, there will be automatic description generated from name and dates of life; [[CTD term image]]
  • categories -- list of categories where this term belongs or could be applied to (list separated by ";")
  • related terms -- some terms the one is connected with (list separated by ";"); [[CTD term]]


Duration, period of existence, lifetime:

  • start -- the exact date of appearance, creation or birth in any of supported format, f.e.: YYYY-MM-DD (Year-Month-Day); [[Date of appearance]]
  • end -- the exact date of disappearance, destruction or death; [[Date of disappearance]]
  • approximate duration -- set this only if the exact date is unknown, f.e.: around II AD

Semantic property [[Lifetime]] is set if at least one of the above is not empty.


Teopedia links:

  • library links -- wiki pages in Library in user defined style; showed as set, with or without link
  • library pages -- wiki page name; it will be wraped in brackets, making a link: [[text]]
  • 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


External links:

  • tsw en -- article in English section of Theosophy.wiki
  • wikipedia -- article in Wikipedia
  • other resources -- any other Internet resources in format: [URL1 text1]; [URL2 text2]

See also