Template:CTD article: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 99: Line 99:
   set short name according to initials value
   set short name according to initials value
-->{{#if: {{{initials|}}}
-->{{#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|}}}}}
  | {{#vardefine:short name|{{{short name|}}}, {{{initials|}}}}} {{#vardefine:short name regular|{{{initials|}}} {{{short name|}}}}}
  | {{#set: Short name={{{short name|}}}}} {{#vardefine:short name SNM|{{{short name|}}}}}
  | {{#vardefine:short name|{{{short name|}}}}}
}}<!--  
}}<!--  


Line 138: Line 138:
-->{{#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|}}}|Short name={{{short name|}}}}} {{#if: {{{term to show|}}}| {{#set: Full name={{{term to show|}}}}} | {{#set: Full name={{{term|}}}}} }}[[Category: Persons]]
  | yes = {{#set: Name={{{term|}}} | Short name={{#var:short name}} | Short name regular={{#var:short name regular}}}} {{#if: {{{term to show|}}}| {{#set: Full name={{{term to show|}}}}} | {{#set: Full name={{{term|}}}}} }}[[Category: Persons]]
  | default = [[Category: CTD terms]]
  | default = [[Category: CTD terms]]
}}<!--  
}}<!--