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. |
| + | * [[Module:CTD|Module CTD]] with some additional functions. |
| | | |
| {| class=wikitable | | {| class=wikitable |
| |- | | |- |
− | ! width=255px | To copy | + | ! width=280px | To copy |
| ! Description | | ! Description |
| |-valign=top | | |-valign=top |
| | <pre> | | | <pre> |
− | {{ETG article | + | {{CTD article |
| | term = | | | term = |
− | | term diacritical = | + | | term to show = |
| | person = | | | person = |
| + | | short name = |
| + | | initials = |
| | origin = | | | origin = |
| | variations = | | | variations = |
Line 21: |
Line 24: |
| | transliteration IAST = | | | transliteration IAST = |
| | description = | | | description = |
| + | | short description = |
| | image = | | | image = |
| | image description = | | | image description = |
Line 28: |
Line 32: |
| | end = | | | end = |
| | approximate duration = | | | approximate duration = |
| + | | library pages = |
| | quotes hpb = | | | quotes hpb = |
− | | etg rus = | + | | ctd rus = |
| | tsw en = | | | tsw en = |
| | wikipedia = | | | wikipedia = |
| + | | other resources = |
| }} | | }} |
| </pre> | | </pre> |
| | ''Name:'' | | | ''Name:'' |
− | * '''term''' -- term or name, {{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}} |
− | * '''term diacritical''' -- the same term with diacritical marks (if exist) and stress mark (if needed), {{p|ETG term diacritical}} | + | * '''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}} and {{p|Full name}} are set | + | * '''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 |
− | * '''origin''' -- spelling in original language, original meaning, etymology {{p|ETG term origin}} | + | * '''short name''' -- short version of name or family name (surname) for bibliography, i.e. ''Blavatsky'' or ''Avicenna''; {{p|Short name}} |
− | * '''variations''' -- different spellings (list separated by ";"), {{p|ETG term variations}} | + | * '''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: |
− | * '''transliteration SD ed.1''' -- spelling in ''The Secret Doctrine'' as in 1st edition of 1888 (if used), {{p|ETG term SD}} | + | : • {{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'' |
− | * '''transliteration SD ed.3''' -- spelling in ''The Secret Doctrine'' as in 3d edition of 1893 (if used), {{p|ETG term SD}} | + | : • {{p|Short name}} in sortable format '''Surname, N. M.''', f.e.: ''Blavatsky, H. P.'', or ''Slaughter, Rev. W. B.'', or ''Mirville, J.-E. de'' |
− | * '''transliteration HK''' -- spelling without diacritical marks, {{p|ETG term HK}} | + | |
− | * '''transliteration IAST''' -- spelling according to [[wp:International Alphabet of Sanskrit Transliteration|International Alphabet of Sanskrit Transliteration]], {{p|ETG term IAST}} | + | * '''origin''' -- spelling in original language, original meaning, etymology; {{p|CTD term origin}} |
| + | * '''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, 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}} | + | * '''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 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''' -- 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:'' | | ''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}} | + | * '''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}} | + | * '''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'' | | * '''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. | | Semantic property {{p|Lifetime}} is set if at least one of the above is not empty. |
Line 62: |
Line 74: |
| | | |
| ''Teopedia links:'' | | ''Teopedia links:'' |
− | * '''quotes hpb''' -- page with quotes by H.P.Blavatsky | + | * '''library pages''' -- wiki pages in Library |
− | * '''etg rus''' -- Glossary article in Russian | + | * '''quotes hpb''' -- page with quotes by H.P. Blavatsky |
| + | * '''ctd rus''' -- article in Russian |
| | | |
| | | |
Line 73: |
Line 86: |
| | | |
| == See also == | | == See also == |
− | * [[:t-ru-lib:Шаблон:Понятие БТС|Понятие БТС]] -- corresponding template in Russian section [[t-ru-lib:Шаблон:Понятие БТС]] | + | * [[:t-ru-lib:Шаблон:Понятие БТС|Понятие БТС]] -- corresponding template in Russian section |
| | | |
| [[Category: Templates with forms]] | | [[Category: Templates with forms]] |
− | [[Category: ETG Templates]] | + | [[Category: Templates for CTD]] |
− | </noinclude><includeonly><!-- | + | |
− | set property "ETG term" to any possible variant, those that may consist of a list are processed later | + | [[t-ru-lib:Шаблон:Понятие БТС]] |
− | -->{{#set: | + | </noinclude><includeonly><!-- consider compatibility with old parameters |
− | |ETG term={{{term|}}};{{{term diacritical|}}};{{{transliteration SD|}}};{{{transliteration HK|}}};{{{transliteration IAST|}}} | + | new name: |
| + | -->{{#vardefine:term to show| {{{term to show|}}} }}<!-- |
| + | old name: |
| + | -->{{#if: {{{term diacritical|}}}| {{#vardefine:term to show| {{{term diacritical|}}} }} |}}<!-- |
| + | set short name according to initials value |
| + | -->{{#if: {{{initials|}}} |
| + | | {{#vardefine:short name|{{{short name|}}}, {{{initials|}}}}} {{#vardefine:short name regular|{{{initials|}}} {{{short name|}}}}} |
| + | | {{#vardefine:short name|{{{short 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=; | | |+sep=; |
| }}<!-- | | }}<!-- |
| + | set lifetime; priority for approximate value |
| + | -->{{#vardefine:lifetime|}}<!-- set it empty, initialize |
| + | -->{{#if: {{{start|}}} | {{#vardefine:lifetime|{{#time: Y | {{{start|}}}}}-{{#time: Y | {{{end|}}}}} }} |}}<!-- |
| + | -->{{#if: {{{approximate duration|}}} | {{#vardefine:lifetime| {{{approximate duration}}} }} |}}<!-- |
| + | -->{{#set: Lifetime={{#var:lifetime}} }}<!-- |
| + | |
| 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; background: white;"> |
− | <div style="border:1px grey solid; width: 200px; margin: 0 auto;">[[Файл:{{{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 to show|}}}</div> |
− | {{#if: {{{approximate duration|}}}
| + | <div style="text-align: center;">{{#var:lifetime}}</div> |
− | | <div style="text-align: center; >{{{approximate duration}}}</div>{{#set: Lifetime={{{approximate duration}}}}}
| + | {{#if: {{{image description|}}}| <center>{{{image description}}}</center>|}} |
− | |}}<!--
| |
− | -->{{#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 |
| | | |
| 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 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 | | -->{{#vardefine:person|{{lc: {{{person|}}} }}}}<!-- turn letters to lower case |
| -->{{#switch: {{#var:person}} | | -->{{#switch: {{#var:person}} |
− | | yes = {{#set: Full name={{{term|}}}|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: 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::@@]]| • }} }} | + | |{{#vardefine:variants| • {{#arraymap:{{{variations|}}}|;|@@|[[CTD term::@@]]| • }} }} |
| |}}<!-- | | |}}<!-- |
| -->{{#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 133: |
Line 164: |
| <div style="font-size: 90%;"> | | <div style="font-size: 90%;"> |
| {{#varexists:variants | | {{#varexists:variants |
− | | {{вп|Also|Different variations and aliases; all of these should redirect to this page}}: {{#var:variants}} • {{#set: ETG term variations={{#var:variants}}}}<br> | + | | <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 |
− | -->{{#if: {{{start|}}}| ([[Date of appearance::{{{start|}}}]] − [[Date of disappearance::{{{end|}}}]]) |}}<!-- | + | -->{{#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|}}}| ({{{approximate duration}}}) |}} | + | -->{{#if: {{{approximate duration|}}}| {{Style P-No indent|({{{approximate duration}}})}} |}} |
| </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; |
| see if there are any: | | see if there are any: |
| + | -->{{#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 153: |
Line 185: |
| | | |
| if there are some, show them in a list | | if there are some, show them in a list |
− | -->{{#varexists:link_exists|'''Some links:''' | + | -->{{#varexists:link_exists|{{Style P-No indent|'''Some links:'''}} |
| <ul> | | <ul> |
− | {{#if: {{{quotes hpb|}}}|<li>H.P.Blavatsky quotes: {{#arraymap:{{{quotes hpb|}}}|;|@@|[[:t-en-hpb:@@|@@]]}}</li>|}}<!-- | + | {{#if: {{{library pages|}}}|<li>Related pages: {{#arraymap:{{{library pages|}}}|;|@@|[[@@]]}}</li>|}}<!-- |
− | -->{{#if: {{{etg rus|}}}|<li>ETG article in Russian: [[:t-ru-lib:{{{etg rus|}}}|{{{etg rus|}}}]] [[t-ru-lib:{{{etg rus|}}}]]</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: {{{tsw en|}}}|<li>Theosophy Wiki: {{#arraymap:{{{tsw en|}}}|;|@@|[[:tsw-en:@@|@@]]}}</li>|}}<!-- |
− | -->{{#if: {{{wikipedia|}}}|<li>Wikipedia: {{#arraymap:{{{wikipedia|}}}|;|@@|[[:t-ru-sinnett:@@|@@]]}}</li>|}}<!-- | + | -->{{#if: {{{wikipedia|}}}|<li>Wikipedia: {{#arraymap:{{{wikipedia|}}}|;|@@|[[:wp:@@|@@]]}}</li>|}}<!-- |
| -->{{#if: {{{other resources|}}}|<li>Other resources: {{#arraymap:{{{other resources|}}}|;|@@|@@}}</li>|}} | | -->{{#if: {{{other resources|}}}|<li>Other resources: {{#arraymap:{{{other resources|}}}|;|@@|@@}}</li>|}} |
| </ul>|}} | | </ul>|}} |
| + | |
| + | <!-- Some important data for semantic requests --> |
| + | <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: 0px;">To show: <b>{{#var:term to show}}</b>; sortable: <b>{{{term|}}}</b><br> |
| + | {{#switch: {{#var:person}} |
| + | | yes =Person's short name: <b>{{#var:short name regular}}</b>; sortable: <b>{{#var:short name}}</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> |
| + | </p> |
| + | {{#if: {{{term diacritical|}}}| <p style="text-indent: 0px; color: #9b111e;">'''! Template needs update !''' some parameters have been changed, see [[Template:CTD_article|description]].</p> [[Category:Pages to update template]]|}} |
| + | </div> |
| | | |
| {{#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> |