Jump to content

Template:CTD article: Difference between revisions

m
ETG --> CTD
m (Pavel Malakhov moved page Template:ETG article to Template:CTD article)
m (ETG --> CTD)
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 articles}} 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  
Line 10: Line 10:
|-valign=top
|-valign=top
| <pre>
| <pre>
{{ETG article
{{CTD article
  | term =  
  | term =  
  | term diacritical =  
  | term diacritical =  
Line 30: Line 30:
  | library pages =  
  | library pages =  
  | quotes hpb =  
  | quotes hpb =  
  | etg rus =  
  | ctd rus =  
  | tsw en =  
  | tsw en =  
  | wikipedia =  
  | wikipedia =  
Line 36: Line 36:
</pre>
</pre>
| ''Name:''
| ''Name:''
* '''term''' -- term or name; if name, it should be in following order: Last Name, Other Names or Initials, for example: ''Blavatsky, Helena Petrovna'' or ''Blavatsky, H.P.''; {{p|ETG term}}
* '''term''' -- term or name; if name, it should be in following order: Last Name, Other Names or Initials, for example: ''Blavatsky, Helena Petrovna'' or ''Blavatsky, H.P.''; {{p|CTD term}}
* '''term diacritical''' -- 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|ETG term diacritical}}
* '''term diacritical''' -- 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 diacritical}}
* '''person''' -- "yes" if it is a person, in this case term will be added to category {{c|Persons}} and semantic properties {{p|Name}} and {{p|Full name}} are set; ''full name'' is a name set in ''term diacritical'' 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}} and {{p|Full name}} are set; ''full name'' is a name set in ''term diacritical'' parameter or equals ''term'' otherwise
* '''origin''' -- spelling in original language, original meaning, etymology {{p|ETG term origin}}
* '''origin''' -- spelling in original language, original meaning, etymology {{p|CTD term origin}}
* '''variations''' -- different spellings (list separated by ";"), {{p|ETG term variations}}
* '''variations''' -- different spellings (list separated by ";"), {{p|CTD term variations}}
* '''transliteration SD ed.1''' -- spelling in ''The Secret Doctrine'' as in 1st edition of 1888 (if used), {{p|ETG term SD}}
* '''transliteration SD ed.1''' -- spelling in ''The Secret Doctrine'' as in 1st edition of 1888 (if used), {{p|CTD term SD}}
* '''transliteration SD ed.3''' -- spelling in ''The Secret Doctrine'' as in 3d edition of 1893 (if used), {{p|ETG term SD}}
* '''transliteration SD ed.3''' -- spelling in ''The Secret Doctrine'' as in 3d edition of 1893 (if used), {{p|CTD term SD}}
* '''transliteration HK''' -- spelling without diacritical marks, {{p|ETG term HK}}
* '''transliteration HK''' -- spelling without diacritical marks, {{p|CTD term HK}}
* '''transliteration IAST''' -- spelling according to [[wp:International Alphabet of Sanskrit Transliteration|International Alphabet of Sanskrit Transliteration]], {{p|ETG term IAST}}
* '''transliteration IAST''' -- spelling according to [[wp:International Alphabet of Sanskrit Transliteration|International Alphabet of Sanskrit Transliteration]], {{p|CTD term IAST}}




''Description, relationship:''
''Description, relationship:''
* '''description''' -- description of a term, the article itself, {{p|ETG term description}}
* '''description''' -- description of a term, the article itself, {{p|CTD term description}}
* '''image''' -- filename of an image, {{p|ETG term image}}
* '''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|ETG 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}}




Line 65: Line 65:
* '''library pages''' -- wiki pages in Library
* '''library pages''' -- wiki pages in Library
* '''quotes hpb''' -- page with quotes by H.P. Blavatsky
* '''quotes hpb''' -- page with quotes by H.P. Blavatsky
* '''etg rus''' -- Glossary article in Russian
* '''ctd rus''' -- Glossary article in Russian




Line 78: Line 78:


[[Category: Templates with forms]]
[[Category: Templates with forms]]
[[Category: Templates for ETG]]
[[Category: Templates for CTD]]
</noinclude><includeonly><!--
</noinclude><includeonly><!--
   set property "ETG term" to any possible variant, those that may consist of a list are processed later
   set property "CTD term" to any possible variant, those that may consist of a list are processed later
-->{{#set:
-->{{#set:
  |ETG term={{{term|}}};{{{term diacritical|}}};{{{transliteration SD|}}};{{{transliteration HK|}}};{{{transliteration IAST|}}}
  |CTD term={{{term|}}};{{{term diacritical|}}};{{{transliteration SD|}}};{{{transliteration HK|}}};{{{transliteration IAST|}}}
  |+sep=;
  |+sep=;
}}<!--  
}}<!--  
   Glossary HEADER -->
   Glossary HEADER -->
{{ETG header}}
{{CTD header}}
<!--
<!--
   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;">
<div style="border:1px grey solid; width: 200px; margin: 0 auto;">[[File:{{{image}}}|200px]] {{#set: ETG 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|}}}</div>
Line 105: Line 105:


   Article section -->
   Article section -->
<div style="font-variant: small-caps; font-weight: bold; font-size: 120%;">{{#if: {{{term diacritical|}}}| {{{term diacritical}}} | {{{term|}}} }}</div>{{#set: ETG term diacritical={{{term diacritical|}}}}}<!--
<div style="font-variant: small-caps; font-weight: bold; font-size: 120%;">{{#if: {{{term diacritical|}}}| {{{term diacritical}}} | {{{term|}}} }}</div>{{#set: CTD term diacritical={{{term diacritical|}}}}}<!--


-->{{#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}}}}} {{#if: {{{term diacritical|}}}| {{#set: Full name={{{term diacritical|}}}}} | {{#set: Full name={{{term|}}}}} }}[[Category: Persons]]
  | yes = {{#set:Name={{{term}}}}} {{#if: {{{term diacritical|}}}| {{#set: Full name={{{term diacritical|}}}}} | {{#set: Full name={{{term|}}}}} }}[[Category: Persons]]
  | default = [[Category: ETG terms]]
  | default = [[Category: CTD terms]]
}}<!--  
}}<!--  


   set variable {{#var:variants}}, with all the variations
   set variable {{#var:variants}}, with all the variations
-->{{#if: {{{variations|}}}
-->{{#if: {{{variations|}}}
|{{#vardefine:variants| • {{#arraymap:{{{variations|}}}|,|@@|[[ETG term::@@]]|&#32;•&#32;}} }}   
|{{#vardefine:variants| • {{#arraymap:{{{variations|}}}|,|@@|[[CTD term::@@]]|&#32;•&#32;}} }}   
|}}<!--
|}}<!--
-->{{#if: {{{transliteration SD|}}}  
-->{{#if: {{{transliteration SD|}}}  
| {{#vardefine:variants|{{#var:variants}} • {{{transliteration SD|}}}{{etg-trans|SD}} }}
| {{#vardefine:variants|{{#var:variants}} • {{{transliteration SD|}}}{{ctd-trans|SD}} }}
{{#set: ETG term SD={{{transliteration SD|}}} }}
{{#set: CTD term SD={{{transliteration SD|}}} }}
[[Category: Mentioned in the Secret Doctrine]]  
[[Category: Mentioned in the Secret Doctrine]]  
|}}<!--
|}}<!--
-->{{#if: {{{transliteration IAST|}}}
-->{{#if: {{{transliteration IAST|}}}
|{{#vardefine:variants|{{#var:variants}} • {{{transliteration IAST|}}}{{etg-trans|IAST}} }}
|{{#vardefine:variants|{{#var:variants}} • {{{transliteration IAST|}}}{{ctd-trans|IAST}} }}
{{#set: ETG term IAST={{{transliteration IAST|}}} }}
{{#set: CTD term IAST={{{transliteration IAST|}}} }}
|}}<!--
|}}<!--
-->{{#if: {{{transliteration HK|}}}
-->{{#if: {{{transliteration HK|}}}
|{{#vardefine:variants|{{#var:variants}} • {{{transliteration HK|}}}{{etg-trans|HK}} }}
|{{#vardefine:variants|{{#var:variants}} • {{{transliteration HK|}}}{{ctd-trans|HK}} }}
{{#set: ETG term HK={{{transliteration HK|}}} }}
{{#set: CTD term HK={{{transliteration HK|}}} }}
|}}<!--
|}}<!--
   show origin of a term
   show origin of a term
Line 135: Line 135:
<div style="font-size: 90%;">
<div style="font-size: 90%;">
{{#varexists:variants
{{#varexists:variants
  | <p style="text-indent: 0;">{{tip|Also|Different variations and aliases; all of these should redirect to this page}}: {{#var:variants}} • {{#set: ETG term variations={{#var:variants}}}}</p>
  | <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  
   duration and lifetime  
Line 142: Line 142:
</div>
</div>
<div style="white-space: pre-wrap;">{{{description|}}}</div>
<div style="white-space: pre-wrap;">{{{description|}}}</div>
{{#set: ETG term origin={{{origin|}}}|ETG term description={{{description|}}}}}
{{#set: CTD term origin={{{origin|}}}|CTD term description={{{description|}}}}}
{{#if: {{{related terms|}}}| <hr>
{{#if: {{{related terms|}}}| <hr>
<div style="font-size: 90%;">'''See also:''' {{#arraymap:{{{related terms|}}}|;|@@| {{#set:ETG related term=@@}} {{#formredlink:target=@@|form=ETG article}} }}</div> |}}<!--
<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;
   Links to other pages and resources;
Line 150: Line 150:
-->{{#if: {{{library pages|}}}    | {{#vardefine:link_exists|yes}} |}}<!--
-->{{#if: {{{library pages|}}}    | {{#vardefine:link_exists|yes}} |}}<!--
-->{{#if: {{{quotes hpb|}}}    | {{#vardefine:link_exists|yes}} |}}<!--
-->{{#if: {{{quotes hpb|}}}    | {{#vardefine:link_exists|yes}} |}}<!--
-->{{#if: {{{etg 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}} |}}<!--
-->{{#if: {{{wikipedia|}}}      | {{#vardefine:link_exists|yes}} |}}<!--
-->{{#if: {{{wikipedia|}}}      | {{#vardefine:link_exists|yes}} |}}<!--
Line 160: Line 160:
{{#if: {{{library pages|}}}|<li>Related pages: {{#arraymap:{{{library pages|}}}|;|@@|[[@@]]}}</li>|}}<!--
{{#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: {{{quotes hpb|}}}|<li>H.P.Blavatsky quotes: {{#arraymap:{{{quotes hpb|}}}|;|@@|[[:t-en-hpb:@@|@@]]}}</li>|}}<!--
-->{{#if: {{{etg rus|}}}|<li>ETG article in Russian: [[:t-ru-lib:{{{etg rus|}}}|{{{etg rus|}}}]] [[t-ru-lib:{{{etg 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>|}}<!--
-->{{#if: {{{wikipedia|}}}|<li>Wikipedia: {{#arraymap:{{{wikipedia|}}}|;|@@|[[:wp:@@|@@]]}}</li>|}}<!--
-->{{#if: {{{wikipedia|}}}|<li>Wikipedia: {{#arraymap:{{{wikipedia|}}}|;|@@|[[:wp:@@|@@]]}}</li>|}}<!--
Line 167: Line 167:


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