Difference between revisions of "Template:CTD article"
Jump to navigation
Jump to search
m |
(updated according to Russian template) |
||
Line 11: | Line 11: | ||
| <pre> | | <pre> | ||
{{ETG article | {{ETG article | ||
− | | term = | + | | term = |
+ | | term diacritical = | ||
+ | | person = | ||
+ | | origin = | ||
| variations = | | variations = | ||
| transliteration SD = | | transliteration SD = | ||
| transliteration HK = | | transliteration HK = | ||
| transliteration IAST = | | transliteration IAST = | ||
− | |||
| description = | | description = | ||
+ | | image = | ||
+ | | image description = | ||
| categories = | | categories = | ||
| related terms = | | related terms = | ||
+ | | start = | ||
+ | | end = | ||
+ | | approximate duration = | ||
+ | | quotes hpb = | ||
+ | | etg rus = | ||
+ | | tsw en = | ||
+ | | wikipedia = | ||
}} | }} | ||
</pre> | </pre> | ||
− | | | + | | ''Name:'' |
− | * '''term''' -- | + | * '''term''' -- term or name, {{p|ETG term}} |
+ | * '''term diacritical''' -- the same term with diacritical marks (if exist) and stress mark (if needed), {{p|ETG 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 | ||
+ | * '''origin''' -- spelling in original language, original meaning, etymology {{p|ETG term origin}} | ||
* '''variations''' -- different spellings (list separated by ";"), {{p|ETG term variations}} | * '''variations''' -- different spellings (list separated by ";"), {{p|ETG term variations}} | ||
* '''transliteration SD''' -- spelling in ''The Secret Doctrine'' (if used), {{p|ETG term SD}} | * '''transliteration SD''' -- spelling in ''The Secret Doctrine'' (if used), {{p|ETG term SD}} | ||
* '''transliteration HK''' -- spelling without diacritical marks, {{p|ETG term HK}} | * '''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}} | * '''transliteration IAST''' -- spelling according to [[wp:International Alphabet of Sanskrit Transliteration|International Alphabet of Sanskrit Transliteration]], {{p|ETG term IAST}} | ||
− | + | ||
+ | |||
+ | ''Description, relationship:'' | ||
* '''description''' -- description of a term, the article itself, {{p|ETG term description}} | * '''description''' -- description of a term, the article itself, {{p|ETG term description}} | ||
+ | * '''image''' -- filename of an image, {{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|ETG 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|ETG 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:'' | ||
+ | * '''quotes hpb''' -- page with quotes by H.P.Blavatsky | ||
+ | * '''etg 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: ETG Templates]] |
</noinclude><includeonly><!-- | </noinclude><includeonly><!-- | ||
− | + | set property "ETG term" to any possible variant, those that may consist of a list are processed later | |
− | + | -->{{#set: | |
− | <div style=" | + | |ETG term={{{term|}}};{{{term diacritical|}}};{{{transliteration SD|}}};{{{transliteration HK|}}};{{{transliteration IAST|}}} |
+ | |+sep=; | ||
+ | }}<!-- | ||
+ | Glossary HEADER --> | ||
+ | {{ETG 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;">[[Файл:{{{image}}}|200px]] {{#set: ETG 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 diacritical|}}}| {{{term diacritical}}} | {{{term|}}} }}</div>{{#set: ETG term diacritical={{{term diacritical|}}}}}<!-- |
− | -->{{#if: {{{variations|}}}| {{#arraymap:{{{variations|}}}| | + | |
− | -->{{#if: {{{transliteration SD|}}}| | + | -->{{#vardefine:person|{{lc: {{{person|}}} }}}}<!-- turn letters to lower case |
− | -->{{#if: {{{transliteration | + | -->{{#switch: {{#var:person}} |
− | -->{{#if: {{{ | + | | yes = {{#set: Full name={{{term|}}}|Name={{{term}}}}} [[Category: Persons]] |
− | --> ({{{ | + | | default = [[Category: ETG terms]] |
− | {{#set: ETG term origin={{{origin|}}}|ETG term description={{{description|}}} }} | + | }}<!-- |
+ | |||
+ | set variable {{#var:variants}}, with all the variations | ||
+ | -->{{#if: {{{variations|}}} | ||
+ | |{{#vardefine:variants| • {{#arraymap:{{{variations|}}}|,|@@|[[ETG term::@@]]| • }} }} | ||
+ | |}}<!-- | ||
+ | -->{{#if: {{{transliteration SD|}}} | ||
+ | | {{#vardefine:variants|{{#var:variants}} • {{{transliteration SD|}}}{{etg-trans|SD}} }} | ||
+ | {{#set: ETG term SD={{{transliteration SD|}}} }} | ||
+ | [[Category: Mentioned in the Secret Doctrine]] | ||
+ | |}}<!-- | ||
+ | -->{{#if: {{{transliteration IAST|}}} | ||
+ | |{{#vardefine:variants|{{#var:variants}} • {{{transliteration IAST|}}}{{etg-trans|IAST}} }} | ||
+ | {{#set: ETG term IAST={{{transliteration IAST|}}} }} | ||
+ | |}}<!-- | ||
+ | -->{{#if: {{{transliteration HK|}}} | ||
+ | |{{#vardefine:variants|{{#var:variants}} • {{{transliteration HK|}}}{{etg-trans|HK}} }} | ||
+ | {{#set: ETG 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 | ||
+ | | {{вп|Also|Different variations and aliases; all of these should redirect to this page}}: {{#var:variants}} • {{#set: ETG term variations={{#var:variants}}}}<br> | ||
+ | |}}<!-- | ||
+ | duration and lifetime | ||
+ | -->{{#if: {{{start|}}}| ([[Date of appearance::{{{start|}}}]] − [[Date of disappearance::{{{end|}}}]]) |}}<!-- | ||
+ | -->{{#if: {{{approximate duration|}}}| ({{{approximate duration}}}) |}} | ||
+ | </div> | ||
+ | <div style="white-space: pre-wrap;">{{{description|}}}</div> | ||
+ | {{#set: ETG term origin={{{origin|}}}|ETG term description={{{description|}}}}} | ||
{{#if: {{{related terms|}}}| <hr> | {{#if: {{{related terms|}}}| <hr> | ||
− | <div style="font-size: 90%;">'''See | + | <div style="font-size: 90%;">'''See also:''' {{#arraymap:{{{related terms|}}}|;|@@| {{#set:ETG related term=@@}} {{#formredlink:target=@@|form=ETG article}} }}</div> |}}<!-- |
+ | |||
+ | Links to other pages and resources; | ||
+ | see if there are any: | ||
+ | --> | ||
+ | -->{{#if: {{{quotes hpb|}}} | {{#vardefine:link_exists|yes}} |}}<!-- | ||
+ | -->{{#if: {{{etg 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|<h3>Some links:</h3> | ||
+ | <ul> | ||
+ | {{#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: {{{tsw en|}}}|<li>Theosophy Wiki: {{#arraymap:{{{tsw en|}}}|;|@@|[[:tsw-en:@@|@@]]}}</li>|}}<!-- | ||
+ | -->{{#if: {{{wikipedia|}}}|<li>Wikipedia: {{#arraymap:{{{wikipedia|}}}|;|@@|[[:t-ru-sinnett:@@|@@]]}}</li>|}}<!-- | ||
+ | -->{{#if: {{{other resources|}}}|<li>Other resources: {{#arraymap:{{{other resources|}}}|;|@@|@@}}</li>|}} | ||
+ | </ul>|}} | ||
− | |||
{{#arraymap:{{{categories|}}}|;|@@| [[Category:@@]] | }} | {{#arraymap:{{{categories|}}}|;|@@| [[Category:@@]] | }} | ||
[[Category: ETG articles]] | [[Category: ETG articles]] | ||
</includeonly> | </includeonly> |
Revision as of 12:03, 16 September 2021
This template is used by form «ETG article» to create or edit an article of Enlarged Theosophical Glossary.
- To create a new article use form «ETG article».
- Pages that use this template are placed in category «ETG articles» and other categories, named in "categories" parameter.
To copy | Description |
---|---|
{{ETG article | term = | term diacritical = | person = | origin = | variations = | transliteration SD = | transliteration HK = | transliteration IAST = | description = | image = | image description = | categories = | related terms = | start = | end = | approximate duration = | quotes hpb = | etg rus = | tsw en = | wikipedia = }} |
Name:
Semantic property [[Lifetime]] is set if at least one of the above is not empty.
|
See also
- Понятие БТС -- corresponding template in Russian section