Line 16: |
Line 16: |
| | person = | | | person = |
| | short name = | | | short name = |
| + | | initials = |
| | origin = | | | origin = |
| | variations = | | | variations = |
Line 43: |
Line 44: |
| * '''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}} | | * '''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}}, {{p|Full name}} and {{p|Short 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 |
− | * '''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}} | + | * '''short name''' -- short version of name or family name (surname) for bibliography, i.e. ''Blavatsky'' or ''Avicenna''; {{p|Short name}} |
| + | * '''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: |
| + | : • {{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'' |
| + | : • {{p|Short name}} in sortable format '''Surname, N. M.''', f.e.: ''Blavatsky, H. P.'', or ''Slaughter, Rev. W. B.'', or ''Mirville, J.-E. de'' |
| + | |
| * '''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}}, {{p|CTD term}} | | * '''variations''' -- different spellings (list separated by ";"); {{p|CTD term variations}}, {{p|CTD term}} |
Line 88: |
Line 93: |
| [[t-ru-lib:Шаблон:Понятие БТС]] | | [[t-ru-lib:Шаблон:Понятие БТС]] |
| </noinclude><includeonly><!-- consider compatibility with old parameters | | </noinclude><includeonly><!-- consider compatibility with old parameters |
− | -->{{#vardefine:term to show| {{{term to show|}}} }}<!-- new name | + | new name: |
− | -->{{#if: {{{term diacritical|}}}| {{#vardefine:term to show| {{{term diacritical|}}} }} |}}<!-- old 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|}}} |
| + | | {{#set: Short name={{{short name|}}}, {{{initials|}}}| Short name regular={{{initials|}}} {{{short name|}}}}} {{#vardefine:short name|{{{short name|}}}, {{{initials|}}}}} {{#vardefine:short name regular|{{{initials|}}} {{{short name|}}}}} |
| + | | {{#set: Short name={{{short name|}}}}} {{#vardefine:short name SNM|{{{short 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: CTD term sortable={{{term|}}} | | -->{{#set: CTD term sortable={{{term|}}} |
Line 190: |
Line 204: |
| <div style="border: 1px grey solid; background:#f8f8ff; width: 100%; font-size: 90%; color: grey; margin-top: 2em; 2em; padding: 0 5px;"> | | <div style="border: 1px grey solid; background:#f8f8ff; width: 100%; font-size: 90%; color: grey; margin-top: 2em; 2em; padding: 0 5px;"> |
| <p style="text-indent: 5px; font-size: 80%;">'''{{tip|DATA|Some important data for semantic requests}}'''</p> | | <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>; short sortable: <b>{{{short name|}}}</b><br> | + | <p style="text-indent: 0px;">To show: <b>{{#var:term to show}}</b>; sortable: <b>{{{term|}}}</b> |
| + | {{#switch: {{#var:person}} |
| + | | yes =<nowiki>;</nowiki> short name: <b>{{#var:short name regular}}</b>; short name sortable: <b>{{#var:short name}}</b> |
| + | |}}<br> |
| Lifetime: <b>{{#var:lifetime}}</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> | | {{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> |