Jump to content

Template:CTD article: Difference between revisions

diacritical --> to show
m (ETG --> CTD)
(diacritical --> to show)
Line 12: Line 12:
{{CTD article
{{CTD article
  | term =  
  | term =  
  | term diacritical =  
  | term to show =  
  | person =  
  | person =  
  | origin =
  | origin =
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|CTD term}}
* '''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 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}}
* '''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}}
* '''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 to show'' parameter or equals ''term'' otherwise
* '''origin''' -- spelling in original language, original meaning, etymology {{p|CTD term origin}}
* '''origin''' -- spelling in original language, original meaning, etymology {{p|CTD term origin}}
* '''variations''' -- different spellings (list separated by ";"), {{p|CTD term variations}}
* '''variations''' -- different spellings (list separated by ";"), {{p|CTD term variations}}
Line 82: Line 82:
   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={{{term|}}};{{{term diacritical|}}};{{{transliteration SD|}}};{{{transliteration HK|}}};{{{transliteration IAST|}}}
  |CTD term={{{term|}}};{{{term to show|}}};{{{transliteration SD|}}};{{{transliteration HK|}}};{{{transliteration IAST|}}}
  |+sep=;
  |+sep=;
}}<!--  
}}<!--  
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: CTD term diacritical={{{term diacritical|}}}}}<!--
<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|}}}}}
| {{{term|}}} {{#set: CTD term to show={{{term|}}}}}
}}</div><!--


-->{{#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 to show|}}}| {{#set: Full name={{{term to show|}}}}} | {{#set: Full name={{{term|}}}}} }}[[Category: Persons]]
  | default = [[Category: CTD terms]]
  | default = [[Category: CTD terms]]
}}<!--  
}}<!--