Changes

Jump to navigation Jump to search
1,911 bytes added ,  13:13, 20 October 2022
m
+short description
Line 14: Line 14:  
  | term to show =  
 
  | term to show =  
 
  | person =  
 
  | person =  
 +
| short name =
 
  | origin =
 
  | origin =
 
  | variations =
 
  | variations =
Line 21: Line 22:  
  | transliteration IAST =
 
  | transliteration IAST =
 
  | description =
 
  | description =
 +
| short description =
 
  | image =  
 
  | image =  
 
  | image description =  
 
  | image description =  
Line 36: Line 38:  
</pre>
 
</pre>
 
| ''Name:''
 
| ''Name:''
* '''term''' -- term or name in sortable form, i.e. without diacritical marks and if it is a name, it should be in following order: Last Name, Other Names or Initials, for example: ''Blavatsky, Helena Petrovna'' or ''Blavatsky, H.P.'' (consider comma after last name); {{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}}
+
* '''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; ''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}} and {{p|Short name}} 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|CTD term origin}}
+
* '''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}}
* '''variations''' -- different spellings (list separated by ";"), {{p|CTD term variations}}
+
* '''origin''' -- spelling in original language, original meaning, etymology; {{p|CTD term origin}}
* '''transliteration SD ed.1''' -- spelling in ''The Secret Doctrine'' as in 1st edition of 1888 (if used), {{p|CTD term SD}}
+
* '''variations''' -- different spellings (list separated by ";"); {{p|CTD term variations}}, {{p|CTD term}}
* '''transliteration SD ed.3''' -- spelling in ''The Secret Doctrine'' as in 3d edition of 1893 (if used), {{p|CTD term SD}}
+
* '''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 HK''' -- spelling without diacritical marks, {{p|CTD term HK}}
+
* '''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 IAST''' -- spelling according to [[wp:International Alphabet of Sanskrit Transliteration|International Alphabet of Sanskrit Transliteration]], {{p|CTD term IAST}}
+
* '''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|CTD term description}}
+
* '''description''' -- description of a term, the article itself; {{p|CTD term description}}
* '''image''' -- filename of an image, {{p|CTD term image}}
+
* '''short description''' -- short description of a term, 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|CTD 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|CTD 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 79: Line 83:  
[[Category: Templates with forms]]
 
[[Category: Templates with forms]]
 
[[Category: Templates for CTD]]
 
[[Category: Templates for CTD]]
</noinclude><includeonly><!--
+
 
 +
[[t-ru-lib:Шаблон:Понятие БТС]]
 +
</noinclude><includeonly><!-- consider compatibility with old parameters
 +
-->{{#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 property "CTD term" to any possible variant, those that may consist of a list are processed later
-->{{#set:
+
-->{{#set: CTD term sortable={{{term|}}}
  |CTD term={{{term|}}};{{{term to show|}}};{{{transliteration SD|}}};{{{transliteration HK|}}};{{{transliteration IAST|}}}
+
  |CTD term={{{term|}}};{{#var:term to show}};{{{transliteration SD|}}};{{{transliteration HK|}}};{{{transliteration IAST|}}}
 
  |+sep=;
 
  |+sep=;
 
}}<!--  
 
}}<!--  
Line 106: Line 114:  
   Article section -->
 
   Article section -->
 
<div style="font-variant: small-caps; font-weight: bold; font-size: 120%;">{{#if: {{{term to show|}}}
 
<div style="font-variant: small-caps; font-weight: bold; font-size: 120%;">{{#if: {{{term to show|}}}
  | {{{term to show}}} {{#set: CTD term to show={{{term to show|}}}}}
+
  | {{#var:term to show}} {{#set: CTD term to show={{#var:term to show}}}}
 
  | {{{term|}}} {{#set: CTD term to show={{{term|}}}}}
 
  | {{{term|}}} {{#set: CTD term to show={{{term|}}}}}
 
}}</div><!--
 
}}</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:Name={{{term}}}}} {{#if: {{{term to show|}}}| {{#set: Full name={{{term to show|}}}}} | {{#set: Full name={{{term|}}}}} }}[[Category: Persons]]
+
  | 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]]
 
  | default = [[Category: CTD terms]]
 
}}<!--  
 
}}<!--  
Line 118: Line 127:  
   set variable {{#var:variants}}, with all the variations
 
   set variable {{#var:variants}}, with all the variations
 
-->{{#if: {{{variations|}}}
 
-->{{#if: {{{variations|}}}
|{{#vardefine:variants| • {{#arraymap:{{{variations|}}}|,|@@|[[CTD term::@@]]|&#32;•&#32;}} }}   
+
|{{#vardefine:variants| • {{#arraymap:{{{variations|}}}|;|@@|[[CTD term::@@]]|&#32;•&#32;}} }}   
 
|}}<!--
 
|}}<!--
 
-->{{#if: {{{transliteration SD|}}}  
 
-->{{#if: {{{transliteration SD|}}}  
Line 141: Line 150:  
|}}<!--
 
|}}<!--
 
   duration and lifetime  
 
   duration and lifetime  
-->{{#if: {{{start|}}}| {{Style P-No indent|([[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|}}}| {{Style P-No indent|({{{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: CTD term origin={{{origin|}}}|CTD term description={{{description|}}}}}
 
{{#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>
 
{{#if: {{{related terms|}}}| <hr>
 
<div style="font-size: 90%;">'''See also:''' {{#arraymap:{{{related terms|}}}|;|@@| {{#set:CTD related term=@@}} {{#formredlink:target=@@|form=CTD article}} }}</div> |}}<!--
 
<div style="font-size: 90%;">'''See also:''' {{#arraymap:{{{related terms|}}}|;|@@| {{#set:CTD related term=@@}} {{#formredlink:target=@@|form=CTD article}} }}</div> |}}<!--
Line 168: Line 182:  
-->{{#if: {{{other resources|}}}|<li>Other resources: {{#arraymap:{{{other resources|}}}|;|@@|@@}}</li>|}}
 
-->{{#if: {{{other resources|}}}|<li>Other resources: {{#arraymap:{{{other resources|}}}|;|@@|@@}}</li>|}}
 
</ul>|}}
 
</ul>|}}
 +
 +
<div style="border: 1px grey solid; background:#f8f8ff; width: 100%; font-size: 90%; color: grey; margin-top: 2em;">
 +
<p style="text-indent: 5px; font-size: 80%;">'''TERM DATA'''</p>
 +
<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: {{{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]]|}}
 +
</div>
    
{{#arraymap:{{{categories|}}}|;|@@| [[Category:@@]] | }}
 
{{#arraymap:{{{categories|}}}|;|@@| [[Category:@@]] | }}

Navigation menu