Jump to content

Template:CTD article: Difference between revisions

m
Add 'works' parameter (parity with ru 'труды'): marks author as having works in the Library and links to the Category:<Short name> (works)
m (Move 'mentioned in' into a collapsible 'Mentions' block before DATA (parity with CTD literature / Литература БТС))
m (Add 'works' parameter (parity with ru 'труды'): marks author as having works in the Library and links to the Category:<Short name> (works))
 
Line 12: Line 12:
| <pre>
| <pre>
{{CTD article
{{CTD article
  | term =  
  | term =
  | term to show =  
  | term to show =
  | person =  
  | person =
  | short name =  
| works =
  | short name =
  | initials =  
  | initials =  
  | origin =
  | origin =
Line 46: Line 47:
* '''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}}, {{p|Short name}} and {{p|Short name regular}} 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}}, {{p|Short name}} and {{p|Short name regular}} are set; ''full name'' is a name set in ''term to show'' parameter or equals ''term'' otherwise
* '''works''' -- "yes" if this author has works in the Library; in this case the article is placed in category {{c|Authors}} and a link to the category with this author's works is added (f.e. {{c|Blavatsky H.P. (works)}})
* '''short name''' -- short version of name or family name (surname) for bibliography, i.e. ''Blavatsky'' or ''Avicenna''; {{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 three properties are set:
* '''initials''' -- initials to add to surname for bibliography and short references; if set, then '''short name''' is interpreted as surname and three properties are set:
Line 186: Line 188:
   Links to other pages and resources;
   Links to other pages and resources;
   see if there are any:
   see if there are any:
-->{{#ifeq: {{lc:{{{works|}}}}} | yes | {{#vardefine:link_exists|yes}} |}}<!--
-->{{#if: {{{library pages|}}}  | {{#vardefine:link_exists|yes}} |}}<!--
-->{{#if: {{{library pages|}}}  | {{#vardefine:link_exists|yes}} |}}<!--
-->{{#if: {{{library links|}}}  | {{#vardefine:link_exists|yes}} |}}<!--
-->{{#if: {{{library links|}}}  | {{#vardefine:link_exists|yes}} |}}<!--
Line 197: Line 200:
-->{{#varexists:link_exists|{{Style P-No indent|'''Some links:'''}}
-->{{#varexists:link_exists|{{Style P-No indent|'''Some links:'''}}
<ul>
<ul>
{{#if: {{{library links|}}}|<li>Related pages: {{#arraymap:{{{library links|}}}|;|@@|@@}}</li>|}}<!--
{{#ifeq: {{lc:{{{works|}}}}} | yes |<li>Works: [[:Category:{{#if:{{{short name|}}}|{{#var:short name for categories}}|{{{term|}}}}} (works)|{{#if:{{{short name|}}}|{{#var:short name for categories}}|{{{term|}}}}} (works)]]</li>[[Category: Authors]]|}}<!--
-->{{#if: {{{library links|}}}|<li>Related pages: {{#arraymap:{{{library links|}}}|;|@@|@@}}</li>|}}<!--
-->{{#if: {{{library pages|}}}|<li>Related pages: {{#arraymap:{{{library pages|}}}|;|@@|[[@@]]}}</li>|}}<!--
-->{{#if: {{{library pages|}}}|<li>Related pages: {{#arraymap:{{{library pages|}}}|;|@@|[[@@]]}}</li>|}}<!--
-->{{#if: {{{quotes|}}}|<li>Quotes: {{#arraymap:{{{quotes|}}}|;|@@|[[Quotes:{{FULLPAGENAME}}#@@|@@]]}}</li>|}}<!--
-->{{#if: {{{quotes|}}}|<li>Quotes: {{#arraymap:{{{quotes|}}}|;|@@|[[Quotes:{{FULLPAGENAME}}#@@|@@]]}}</li>|}}<!--