Jump to content

Template:CTD article: Difference between revisions

Support the mentioned in field for reviewed CTD entries
(Fix broken {{trim:@@}} call (undefined function) in "quotes" parameter link generation — use @@ directly, since #arraymap items need no extra trimming here)
(Support the mentioned in field for reviewed CTD entries)
Line 24: Line 24:
  | transliteration IAST =
  | transliteration IAST =
  | description =
  | description =
| mentioned in =
  | short description =
  | short description =
  | image =  
  | image =  
Line 60: Line 61:
''Description, relationship:''
''Description, relationship:''
* '''description''' -- description of a term, the article itself; {{p|CTD term description}}
* '''description''' -- description of a term, the article itself; {{p|CTD term description}}
* '''mentioned in''' – works in which this term, person, literary work or periodical is mentioned. Enter work titles as hyperlinks, separated by semicolons. Each item is stored as a separate value of the Text property {{p|CTD mentioned in}}
* '''short description''' -- short description, used in footnotes and popup information; optional; if empty, set to first 100 chars from ''description''; {{p|CTD term short description}}
* '''short description''' -- short description, used in footnotes and popup information; optional; if empty, set to first 100 chars from ''description''; {{p|CTD term short description}}
* '''image''' -- filename of an image; {{p|CTD term image}}
* '''image''' -- filename of an image; {{p|CTD term image}}
Line 173: Line 175:
</div>
</div>
<div style="white-space: pre-wrap;">{{{description|}}}</div>
<div style="white-space: pre-wrap;">{{{description|}}}</div>
{{#if: {{{mentioned in|}}}
|{{#set: CTD mentioned in={{{mentioned in|}}}|+sep=;}}
<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Mentioned in:</p>
<ul>{{#arraymap:{{{mentioned in|}}}|;|@@|<li>@@</li>|}}</ul>
|}}
{{#set: CTD term origin={{{origin|}}}|CTD term description={{{description|}}}}}
{{#set: CTD term origin={{{origin|}}}|CTD term description={{{description|}}}}}
{{#if: {{{related terms|}}}| <hr>
{{#if: {{{related terms|}}}| <hr>