Template:CTD article: Difference between revisions

From Teopedia
(+initials)
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 43: Line 43:
* '''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
* '''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 two properties are set:
Line 99: Line 99:
   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|}}}}}
  | {{#set: Short name={{{short name|}}}}} {{#vardefine:short name SNM|{{{short name|}}}}}
  | {{#vardefine:short name|{{{short name|}}}}}
}}<!--  
}}<!--  


Line 120: Line 120:
   IMAGE -->
   IMAGE -->
{{#if: {{{image|}}}
{{#if: {{{image|}}}
  | <div style="font-size: 90%; width: 214px; border: 2px grey solid; float:right; padding-top: 5px; margin: 0 0 5px 5px;">
  | <div style="font-size: 90%; width: 214px; border: 2px grey solid; float:right; padding-top: 5px; margin: 0 0 5px 5px; background: white;">
<div style="border:1px grey solid; width: 200px; margin: 0 auto;">[[File:{{{image}}}|200px]] {{#set: CTD term image={{{image|}}}}} </div><!--
<div style="border:1px grey solid; width: 200px; margin: 0 auto;">[[File:{{{image}}}|200px]] {{#set: CTD term image={{{image|}}}}} </div><!--
   image description -->
   image description -->
<div style="text-align: center;">{{{term|}}}</div>
<div style="text-align: center;">{{{term to show|}}}</div>
<div style="text-align: center;">{{#var:lifetime}}</div>
<div style="text-align: center;">{{#var:lifetime}}</div>
{{#if: {{{approximate duration|}}}
{{#if: {{{image description|}}}| <center>{{{image description}}}</center>|}}
| <div style="text-align: center; >{{{approximate duration}}}</div>{{#set: Lifetime={{{approximate duration}}}}}
|}}<!--
-->{{#if: {{{start|}}}
| <div style="text-align: center; >{{#time: Y | {{{start|}}}}}-{{#time: Y | {{{end|}}}}}</div> {{#set: Lifetime={{#time: Y | {{{start|}}}}}-{{#time: Y | {{{end|}}}}} }}
|}}<!--
-->{{#if: {{{image description|}}}| <center>{{{image description}}}</center>|}}
</div>
</div>
|}}<!-- done with image section
|}}<!-- done with image section
Line 144: Line 138:
-->{{#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}} }} {{#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 202: Line 196:


<!-- Some important data for semantic requests -->
<!-- Some important data for semantic requests -->
<div style="border: 1px grey solid; background:#f8f8ff; width: 100%; font-size: 90%; color: grey; margin-top: 2em; 2em; padding: 0 5px;">
<div style="border: 1px grey solid; background: #f8f8ff; width: 98%; font-size: 90%; color: grey; margin: 2em 2em 2em 0; padding: 0 5px 3px 5px; float: left;">
<p style="text-indent: 5px; font-size: 80%;">'''{{tip|DATA|Some important data for semantic requests}}'''</p>
<p style="text-indent: 5px; font-size: 80%;">'''{{tip|DATA|Some important data for semantic requests}}'''</p>
<p style="text-indent: 0px;">To show: <b>{{#var:term to show}}</b>; sortable: <b>{{{term|}}}</b>
<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 =<nowiki>;</nowiki> short name: <b>{{#var:short name regular}}</b>; short name sortable: <b>{{#var:short name}}</b>
  | yes =Person's short name: <b>{{#var:short name regular}}</b>; sortable: <b>{{#var:short name}}</b><br>
  |}}<br>
  |}}
Lifetime: <b>{{#var:lifetime}}</b><br>
Lifetime: <b>{{#var:lifetime}}</b><br>
{{tip|Shortly|Short description used in footnotes and popup information.}}: <b>[[CTD term short description::{{#invoke: CTD |shortly| short_text = {{{short description|}}} | long_text = {{{description|}}}}}]]</b>
{{tip|Shortly|Short description used in footnotes and popup information.}}: <b>[[CTD term short description::{{#invoke: CTD |shortly| short_text = {{{short description|}}} | long_text = {{{description|}}}}}]]</b>

Latest revision as of 01:01, 1 October 2023

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 =
 | short description =
 | image = 
 | image description = 
 | categories =
 | related terms =
 | start = 
 | end = 
 | approximate duration = 
 | library pages = 
 | quotes hpb = 
 | 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
  • 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 two 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


Description, relationship:

  • description -- description of a term, the article itself; [[CTD term description]]
  • 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 pages -- wiki pages in Library
  • quotes hpb -- page with quotes by H.P. Blavatsky
  • 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