Template:CTD article: Difference between revisions

From Teopedia
mNo edit summary
m (+short description)
(34 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>This template is used by form {{f|ETG article}} to create or edit an article of ''[[Enlarged Theosophical Glossary]]''.
<noinclude>This template is used by form {{f|CTD article}} to create or edit an article of ''[[Comprehensive Theosophical Dictionary]]''.


* To create a new article use form {{f|ETG article}}.  
* To create a new article use form {{f|CTD article}}.  
* Pages that use this template are placed in category {{c|ETG article}} and other categories, named in "categories" parameter.
* Pages that use this template are placed in category {{c|CTD articles}} and other categories, named in "categories" parameter.


{| class=wikitable  
{| class=wikitable  
|-
|-
! width=230px | To copy
! width=280px | To copy
! Description
! Description
|-valign=top
|-valign=top
| <pre>
| <pre>
{{ETG article
{{CTD article
  | term =
  | term =
| term to show =
| person =
| short name =
| origin =
  | variations =
  | variations =
  | transliteration SD =
  | transliteration SD ed.1 =
| transliteration SD ed.3 =
| transliteration HK =
  | transliteration IAST =
  | transliteration IAST =
| origin =
  | description =
  | description =
| short description =
| image =
| image description =
  | categories =
  | categories =
  | related terms =
  | related terms =
| start =
| end =
| approximate duration =
| library pages =
| quotes hpb =
| ctd rus =
| tsw en =
| wikipedia =
}}
}}
</pre>
</pre>
|  
| ''Name:''
* '''term''' -- word or term, {{p|ETG 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}}
* '''variations''' -- different spellings (list separated by ";"), {{p|ETG term variations}}
* '''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}}
* '''transliteration SD''' -- how it is used in ''The Secret Doctrine'' (if used), {{p|ETG term SD}}
* '''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
* '''transliteration IAST''' -- how it is spelled acording to [[wp:International Alphabet of Sanskrit Transliteration|International Alphabet of Sanskrit Transliteration]], {{p|ETG term IAST}}
* '''short name''' -- short version of name for bibliography, i.e. ''Blavatsky, H. P.'' or ''Slaughter, Rev. W. B.'' or ''Mirville, J.-E. de''; {{p|Short name}}
* '''origin''' -- spelling on the original language and original meaning, {{p|ETG term origin}}
* '''origin''' -- spelling in original language, original meaning, etymology; {{p|CTD term origin}}
* '''description''' -- description of a term, the article itself, {{p|ETG term description}}
* '''variations''' -- different spellings (list separated by ";"); {{p|CTD term variations}}, {{p|CTD term}}
* '''transliteration SD ed.1''' -- spelling in ''The Secret Doctrine'' as in 1st edition of 1888 (if used); {{p|CTD term SD}}, {{p|CTD term}}
* '''transliteration SD ed.3''' -- spelling in ''The Secret Doctrine'' as in 3d edition of 1893 (if used); {{p|CTD term SD}}, {{p|CTD term}}
* '''transliteration HK''' -- spelling without diacritical marks; {{p|CTD term HK}}, {{p|CTD term}}
* '''transliteration IAST''' -- spelling according to [[wp:International Alphabet of Sanskrit Transliteration|International Alphabet of Sanskrit Transliteration]]; {{p|CTD term IAST}}, {{p|CTD term}}
 
 
''Description, relationship:''
* '''description''' -- description of a term, the article itself; {{p|CTD term description}}
* '''short description''' -- short description of a term, 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 description''' -- for person, if this parameter is not set, there will be automatic description generated from name and dates of life; {{p|CTD term image}}
* '''categories''' -- list of categories where this term belongs or could be applied to (list separated by ";")
* '''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 ";"), {{p|ETG term}}
* '''related terms''' -- some terms the one is connected with (list separated by ";"); {{p|CTD term}}
 
 
''Duration, period of existence, lifetime:''
* '''start''' -- the exact date of appearance, creation or birth in any of [http://php.net/manual/ru/datetime.formats.date.php supported format], f.e.: ''YYYY-MM-DD'' (Year-Month-Day); {{p|Date of appearance}}
* '''end''' -- the exact date of disappearance, destruction or death; {{p|Date of disappearance}}
* '''approximate duration''' -- set this '''only''' if the exact date is unknown, f.e.: ''around II AD''
Semantic property {{p|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''' -- Glossary article in Russian
 
 
''External links:''
* '''tsw en''' -- article in English section of [[:tsw-en:|Theosophy.wiki]]
* '''wikipedia''' -- article in [[:wp:|Wikipedia]]
* '''other resources''' -- any other Internet resources in format: [URL1 text1]; [URL2 text2]
|}
|}
== See also ==
* [[:t-ru-lib:Шаблон:Понятие БТС|Понятие БТС]] -- corresponding template in Russian section [[t-ru-lib:Шаблон:Понятие БТС]]


[[Category: Templates with forms]]
[[Category: Templates with forms]]
[[Category: Templates]]
[[Category: Templates for CTD]]
</noinclude><includeonly><!--
 
   
[[t-ru-lib:Шаблон:Понятие БТС]]
    Links to the Form and Template -->
</noinclude><includeonly><!-- consider compatibility with old parameters
<div style="float: right; font-size: 80%; margin-right: 15px; margin-top: -5px;">[[Form:ETG article|F]] [[Template:ETG article|T]]</div><!--
-->{{#vardefine:term to show| {{{term to show|}}} }}<!-- new name
-->{{#if: {{{term diacritical|}}}| {{#vardefine:term to show| {{{term diacritical|}}} }} |}}<!-- old name
  set property "CTD term" to any possible variant, those that may consist of a list are processed later
-->{{#set: CTD term sortable={{{term|}}}
|CTD term={{{term|}}};{{#var:term to show}};{{{transliteration SD|}}};{{{transliteration HK|}}};{{{transliteration IAST|}}}
|+sep=;
}}<!--
  Glossary HEADER -->
{{CTD header}}
<!--
  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="border:1px grey solid; width: 200px; margin: 0 auto;">[[File:{{{image}}}|200px]] {{#set: CTD term image={{{image|}}}}} </div><!--
  image description -->
<div style="text-align: center;">{{{term|}}}</div>
{{#if: {{{approximate duration|}}}
| <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>
|}}<!-- done with image section
 
  Article section -->
<div style="font-variant: small-caps; font-weight: bold; font-size: 120%;">{{#if: {{{term to show|}}}
| {{#var:term to show}} {{#set: CTD term to show={{#var:term to show}}}}
| {{{term|}}} {{#set: CTD term to show={{{term|}}}}}
}}</div><!--
 
  if term is a name of a person
-->{{#vardefine:person|{{lc: {{{person|}}} }}}}<!-- turn letters to lower case
-->{{#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]]
| default = [[Category: CTD terms]]
}}<!--
 
  set variable {{#var:variants}}, with all the variations
-->{{#if: {{{variations|}}}
|{{#vardefine:variants| • {{#arraymap:{{{variations|}}}|;|@@|[[CTD term::@@]]|&#32;•&#32;}} }} 
|}}<!--
-->{{#if: {{{transliteration SD|}}}
| {{#vardefine:variants|{{#var:variants}} • {{{transliteration SD|}}}{{ctd-trans|SD}} }}
{{#set: CTD term SD={{{transliteration SD|}}} }}
[[Category: Mentioned in the Secret Doctrine]]
|}}<!--
-->{{#if: {{{transliteration IAST|}}}
|{{#vardefine:variants|{{#var:variants}} • {{{transliteration IAST|}}}{{ctd-trans|IAST}} }}
{{#set: CTD term IAST={{{transliteration IAST|}}} }}
|}}<!--
-->{{#if: {{{transliteration HK|}}}
|{{#vardefine:variants|{{#var:variants}} • {{{transliteration HK|}}}{{ctd-trans|HK}} }}
{{#set: CTD term HK={{{transliteration HK|}}} }}
|}}<!--
  show origin of a term
-->{{#if: {{{origin|}}}|<div style="font-size: 90%; color: grey;">({{{origin|}}})</div>|}}<!--
  show term variations-->
<div style="font-size: 90%;">
{{#varexists:variants
| <p style="text-indent: 0;">{{tip|Also|Different variations and aliases; all of these should redirect to this page}}: {{#var:variants}} • {{#set: CTD term variations={{#var:variants}}}}</p>
|}}<!--
  duration and lifetime
-->{{#if: {{{start|}}} | {{Style P-No indent|({{#time:j xg Y|{{{start}}}}} − {{#time:j xg Y|{{{end}}}}})}} {{#set: Date of appearance={{{start|}}} | Date of disappearance={{{end|}}}}} |}}<!--
-->{{#if: {{{approximate duration|}}}| {{Style P-No indent|({{{approximate duration}}})}} |}}
</div>
<div style="white-space: pre-wrap;">{{{description|}}}</div>
{{#set: CTD term origin={{{origin|}}}|CTD term description={{{description|}}}}}
{{#if: {{{short description|}}}
|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">{{tip|Shortly|Short text for popup hints and footnotes; main meaning in several words.}}:</p>{{{short description}}} {{#set: CTD term short description={{{short description|}}}}}
| {{#set: CTD term short description={{#sub:{{{description|}}}|0|100}}{{#ifexpr: {{#len:{{{description|}}}}} > 100 |...}}}}
}}
 
{{#if: {{{related terms|}}}| <hr>
<div style="font-size: 90%;">'''See also:''' {{#arraymap:{{{related terms|}}}|;|@@| {{#set:CTD related term=@@}} {{#formredlink:target=@@|form=CTD article}} }}</div> |}}<!--
 
  Links to other pages and resources;
  see if there are any:
-->{{#if: {{{library pages|}}}    | {{#vardefine:link_exists|yes}} |}}<!--
-->{{#if: {{{quotes hpb|}}}    | {{#vardefine:link_exists|yes}} |}}<!--
-->{{#if: {{{ctd rus|}}}        | {{#vardefine:link_exists|yes}} |}}<!--
-->{{#if: {{{tsw en|}}}        | {{#vardefine:link_exists|yes}} |}}<!--
-->{{#if: {{{wikipedia|}}}      | {{#vardefine:link_exists|yes}} |}}<!--
-->{{#if: {{{other resources|}}}| {{#vardefine:link_exists|yes}} |}}<!--
 
  if there are some, show them in a list
-->{{#varexists:link_exists|{{Style P-No indent|'''Some links:'''}}
<ul>
{{#if: {{{library pages|}}}|<li>Related pages: {{#arraymap:{{{library pages|}}}|;|@@|[[@@]]}}</li>|}}<!--
-->{{#if: {{{quotes hpb|}}}|<li>H.P.Blavatsky quotes: {{#arraymap:{{{quotes hpb|}}}|;|@@|[[:t-en-hpb:@@|@@]]}}</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: {{{wikipedia|}}}|<li>Wikipedia: {{#arraymap:{{{wikipedia|}}}|;|@@|[[:wp:@@|@@]]}}</li>|}}<!--
-->{{#if: {{{other resources|}}}|<li>Other resources: {{#arraymap:{{{other resources|}}}|;|@@|@@}}</li>|}}
</ul>|}}


  CARD -->
<div style="border: 1px grey solid; background:#f8f8ff; width: 100%; font-size: 90%; color: grey; margin-top: 2em;">
<span style="font-variant: small-caps; font-weight: bold; ">[[ETG term::{{{term|}}}]]</span><!--
<p style="text-indent: 5px; font-size: 80%;">'''TERM DATA'''</p>
-->{{#if: {{{variations|}}}| {{#arraymap:{{{variations|}}}|;|@@|[[ETG term variations::@@]]|•}} |}}<!--
<p style="text-indent: 5px;">To show: <b>{{#var:term to show}}</b>; Full sortable: <b>{{{term|}}}</b>; Short sortable: <b>{{{short name|}}}</b></p>
-->{{#if: {{{transliteration SD|}}}| • [[ETG term SD::{{{transliteration SD|}}}]][[Category: Terms from SD]] |}}<!--
{{#if: {{{term diacritical|}}}| <p style="text-indent: 5px; color: #9b111e;">'''! Template needs update !''' some parameters have been changed, see [[Template:CTD_article|description]].</p> [[Category:Pages to update template]]|}}
-->{{#if: {{{transliteration IAST|}}}| • [[ETG term IAST::{{{transliteration IAST|}}}]] |}}<!--
</div>
--> ([[ETG term origin::{{{origin|}}}]]). {{{description|}}} {{#set: ETG term description=description}}
{{#if: {{{related terms|}}}| '''Related terms:''' {{#arraymap:{{{related terms|}}}|;|@@|[[ETG term::@@}}]]}} |}}<!--


    CATEGORIES -->
{{#arraymap:{{{categories|}}}|;|@@| [[Category:@@]] | }}
{{#arraymap:{{{categories|}}}|;|@@| [[Category:@@]] | }}
[[Category: ETG articles]]
[[Category: CTD articles]]
[[Category: CTD-{{#sub:{{{term|}}}|0|1}}]]
</includeonly>
</includeonly>

Revision as of 10:13, 20 October 2022

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.
To copy Description
{{CTD article
 | term = 
 | term to show = 
 | person = 
 | short name = 
 | 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 = 
}}
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]] and [[Short name]] are set; full name is a name set in term to show parameter or equals term otherwise
  • short name -- short version of name for bibliography, i.e. Blavatsky, H. P. or Slaughter, Rev. W. B. or Mirville, J.-E. de; [[Short name]]
  • origin -- spelling in original language, original meaning, etymology; [[CTD term origin]]
  • variations -- different spellings (list separated by ";"); [[CTD term variations]], [[CTD term]]
  • transliteration SD ed.1 -- spelling in The Secret Doctrine as in 1st edition of 1888 (if used); [[CTD term SD]], [[CTD term]]
  • transliteration SD ed.3 -- spelling in The Secret Doctrine as in 3d edition of 1893 (if used); [[CTD term SD]], [[CTD term]]
  • transliteration HK -- spelling without diacritical marks; [[CTD term HK]], [[CTD term]]
  • transliteration IAST -- spelling according to International Alphabet of Sanskrit Transliteration; [[CTD term IAST]], [[CTD term]]


Description, relationship:

  • description -- description of a term, the article itself; [[CTD term description]]
  • short description -- short description of a term, 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 -- Glossary 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