Jump to content

Template:CTD article: Difference between revisions

no edit summary
m (no text indent for lifetime)
No edit summary
Line 6: Line 6:
{| class=wikitable  
{| class=wikitable  
|-
|-
! width=255px | To copy
! width=280px | To copy
! Description
! Description
|-valign=top
|-valign=top
Line 36: Line 36:
</pre>
</pre>
| ''Name:''
| ''Name:''
* '''term''' -- term or name, {{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|ETG term}}
* '''term diacritical''' -- the same term with diacritical marks (if exist) and stress mark (if needed), {{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|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
* '''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|ETG term origin}}
* '''variations''' -- different spellings (list separated by ";"), {{p|ETG term variations}}
* '''variations''' -- different spellings (list separated by ";"), {{p|ETG term variations}}
Line 109: Line 109:
-->{{#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}}}}} {{#if: {{{term diacritical|}}}| {{#set: Full name={{{term diacritical|}}}}} | {{#set: Full name={{{term|}}}}} }}[[Category: Persons]]
  | default = [[Category: ETG terms]]
  | default = [[Category: ETG terms]]
}}<!--  
}}<!--