Jump to content

Template:CTD periodical: Difference between revisions

Support the mentioned in field for reviewed CTD entries
mNo edit summary
(Support the mentioned in field for reviewed CTD entries)
Line 17: Line 17:
  | variations =  
  | variations =  
  | description =  
  | description =  
| mentioned in =
  | short description =  
  | short description =  
  | image =  
  | image =  
Line 42: Line 43:
''Description, relationship:''
''Description, relationship:''
* '''description''' -- description of a periodical, its history, editorial and so on; {{p|CTD term description}}
* '''description''' -- description of a periodical, its history, editorial and so on; {{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 version for footnotes, optional; if empty, set to first 100 chars from ''description''; {{p|CTD term short description}}
* '''short description''' -- short version for footnotes, optional; if empty, set to first 100 chars from ''description''; {{p|CTD term short description}}
* '''image''' -- title page or logo; filename of an image; {{p|CTD term image}}
* '''image''' -- title page or logo; filename of an image; {{p|CTD term image}}
Line 119: Line 121:
</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|}}}}}