Template:CTD literature: Difference between revisions

From Teopedia
(Add mentioned-in references and literary-work template semantics)
 
(Add 1em spacing after the work title)
 
(6 intermediate revisions by 2 users not shown)
Line 7: Line 7:
{{CTD literature
{{CTD literature
  | author =
  | author =
| compiler =
  | author page =
  | author page =
  | title =
  | title =
Line 29: Line 30:
  | short description =
  | short description =
  | mentioned in =
  | mentioned in =
| mentioned people =
| mentioned places =
| mentioned events =
| mentioned organizations =
| mentioned literature =
| mentioned periodicals =
  | image =
  | image =
  | image description =
  | image description =
Line 54: Line 61:
== Parameters ==
== Parameters ==
* '''author''' — Author page names, separated by semicolons. Names are resolved through the existing Full name and Short name properties. {{p|Author}}
* '''author''' — Author page names, separated by semicolons. Names are resolved through the existing Full name and Short name properties. {{p|Author}}
* '''compiler''' — Compiler page names, separated by semicolons. Distinct from authors; does not create author categories. {{p|Compiler}}
* '''author page''' — Optional library page for the author link in the work heading.
* '''author page''' — Optional library page for the author link in the work heading.
* '''title''' — Full work title, preserving its punctuation. {{p|CTD work title}}
* '''title''' — Full work title, preserving its punctuation. {{p|CTD work title}}
Line 76: Line 84:
* '''short description''' — Plain-text description for popup hints and footnotes; defaults to an abbreviated description. {{p|CTD term short description}}
* '''short description''' — Plain-text description for popup hints and footnotes; defaults to an abbreviated description. {{p|CTD term short description}}
* '''mentioned in''' — Works in which this work is mentioned. Enter titles as hyperlinks, separated by semicolons; each item is a separate Text value. {{p|CTD mentioned in}}
* '''mentioned in''' — Works in which this work is mentioned. Enter titles as hyperlinks, separated by semicolons; each item is a separate Text value. {{p|CTD mentioned in}}
* '''mentioned people''' — People and characters mentioned in this work, separated by semicolons.
* '''mentioned places''' — Places mentioned in this work, separated by semicolons.
* '''mentioned events''' — Events mentioned in this work, separated by semicolons.
* '''mentioned organizations''' — Organizations mentioned in this work, separated by semicolons.
* '''mentioned literature''' — Other literary works mentioned in this work, separated by semicolons.
* '''mentioned periodicals''' — Periodicals mentioned in this work, separated by semicolons.
* '''image''' — Image filename for the cover or illustration. {{p|CTD term image}}
* '''image''' — Image filename for the cover or illustration. {{p|CTD term image}}
* '''image description''' — Caption for the image. {{p|CTD image description}}
* '''image description''' — Caption for the image. {{p|CTD image description}}
Line 98: Line 112:
* '''to do''' — Editorial tasks, separated by semicolons. {{p|CTD work tasks}}
* '''to do''' — Editorial tasks, separated by semicolons. {{p|CTD work tasks}}


Each author gets a works category using the existing Short name property, with the supplied author page name as a fallback. The work is placed in Category:CTD literature and, when has text is set, Category:Texts. Literary entries are not mixed into the alphabetical CTD term categories.
Each author gets a works category using the Short name for categories property (compact format: no comma, no spaces between initials), with the supplied author page name as a fallback. The work is placed in Category:CTD literature and, when has text is set, Category:Texts. Literary entries are not mixed into the alphabetical CTD term categories.
[[Category:Templates for CTD]]
[[Category:Templates for CTD]]
[[t-ru-lib:Шаблон:Литература БТС]]
[[t-ru-lib:Шаблон:Литература БТС]]
</noinclude><includeonly>
</noinclude><includeonly><!--
{{#vardefine:ctdl-sort|{{#if:{{{title sortable|}}}|{{{title sortable|}}}|{{{title|}}}}}}}
-->{{#vardefine:ctdl-sort|{{#if:{{{title sortable|}}}|{{{title sortable|}}}|{{{title|}}}}}}}<!--
{{#vardefine:ctdl-short|{{#if:{{{short title|}}}|{{{short title|}}}|{{PAGENAME}}}}}}
-->{{#vardefine:ctdl-short|{{#if:{{{short title|}}}|{{{short title|}}}|{{PAGENAME}}}}}}<!--
{{#vardefine:ctdl-origin|{{#if:{{{origin|}}}|{{{origin|}}}|{{{original language|}}}{{#if: {{{original author name|}}}| {{{original author name|}}}|}}{{#if: {{{original title|}}}| ''{{{original title|}}}''|}}}}}}
-->{{#vardefine:ctdl-origin|{{#if:{{{origin|}}}|{{{origin|}}}|{{{original language|}}}{{#if: {{{original author name|}}}| {{{original author name|}}}|}}{{#if: {{{original title|}}}| ''{{{original title|}}}''|}}}}}}<!--
{{#if: {{{author|}}}|{{#set:Author={{{author|}}}|+sep=;}}|}}
-->{{#if: {{{compiler|}}}|{{#set:Compiler={{{compiler|}}}|+sep=;}}|}}<!--
{{#if: {{{title|}}}|{{#set:CTD work title={{{title|}}}}}|}}
-->{{#if: {{{author|}}}|{{#set:Author={{{author|}}}|+sep=;}}|}}<!--
{{#if: {{{subtitle|}}}|{{#set:CTD subtitle={{{subtitle|}}}}}|}}
-->{{#if: {{{title|}}}|{{#set:CTD work title={{{title|}}}}}|}}<!--
{{#if: {{{variations|}}}|{{#set:CTD term variations={{{variations|}}}|+sep=;}}|}}
-->{{#if: {{{subtitle|}}}|{{#set:CTD subtitle={{{subtitle|}}}}}|}}<!--
{{#if: {{{work type|}}}|{{#set:CTD work type={{{work type|}}}}}|}}
-->{{#if: {{{variations|}}}|{{#set:CTD term variations={{{variations|}}}|+sep=;}}|}}<!--
{{#if: {{{note|}}}|{{#set:CTD work note={{{note|}}}}}|}}
-->{{#if: {{{work type|}}}|{{#set:CTD work type={{{work type|}}}}}|}}<!--
{{#if: {{{original publication details|}}}|{{#set:CTD original publication details={{{original publication details|}}}}}|}}
-->{{#if: {{{note|}}}|{{#set:CTD work note={{{note|}}}}}|}}<!--
{{#if: {{{original language|}}}|{{#set:Used language={{{original language|}}}}}|}}
-->{{#if: {{{original publication details|}}}|{{#set:CTD original publication details={{{original publication details|}}}}}|}}<!--
{{#if: {{{original author name|}}}|{{#set:CTD original author name={{{original author name|}}}|+sep=;}}|}}
-->{{#if: {{{original language|}}}|{{#set:Used language={{{original language|}}}}}|}}<!--
{{#if: {{{original title|}}}|{{#set:CTD original title={{{original title|}}}}}|}}
-->{{#if: {{{original author name|}}}|{{#set:CTD original author name={{{original author name|}}}|+sep=;}}|}}<!--
{{#if: {{{original subtitle|}}}|{{#set:CTD original subtitle={{{original subtitle|}}}}}|}}
-->{{#if: {{{original title|}}}|{{#set:CTD original title={{{original title|}}}}}|}}<!--
{{#if: {{{read original|}}}|{{#set:CTD original text links={{{read original|}}}|+sep=;}}|}}
-->{{#if: {{{original subtitle|}}}|{{#set:CTD original subtitle={{{original subtitle|}}}}}|}}<!--
{{#if: {{{download original|}}}|{{#set:Files of original={{{download original|}}}|+sep=;}}|}}
-->{{#if: {{{read original|}}}|{{#set:CTD original text links={{{read original|}}}|+sep=;}}|}}<!--
{{#if: {{{translator|}}}|{{#set:Translator={{{translator|}}}|+sep=;}}|}}
-->{{#if: {{{download original|}}}|{{#set:Files of original={{{download original|}}}|+sep=;}}|}}<!--
{{#if: {{{translations|}}}|{{#set:CTD work translations={{{translations|}}}|+sep=;}}|}}
-->{{#if: {{{translator|}}}|{{#set:Translator={{{translator|}}}|+sep=;}}|}}<!--
{{#if: {{{description|}}}|{{#set:CTD term description={{{description|}}}}}|}}
-->{{#if: {{{translations|}}}|{{#set:CTD work translations={{{translations|}}}|+sep=;}}|}}<!--
{{#if: {{{mentioned in|}}}|{{#set:CTD mentioned in={{{mentioned in|}}}|+sep=;}}|}}
-->{{#if: {{{description|}}}|{{#set:CTD term description={{{description|}}}}}|}}<!--
{{#if: {{{image|}}}|{{#set:CTD term image={{{image|}}}}}|}}
-->{{#if: {{{mentioned in|}}}|{{#set:CTD mentioned in={{{mentioned in|}}}|+sep=;}}|}}<!--
{{#if: {{{image description|}}}|{{#set:CTD image description={{{image description|}}}}}|}}
-->{{#if: {{{image|}}}|{{#set:CTD term image={{{image|}}}}}|}}<!--
{{#if: {{{publication date|}}}|{{#set:CTD publication date display={{{publication date|}}}}}|}}
-->{{#if: {{{image description|}}}|{{#set:CTD image description={{{image description|}}}}}|}}<!--
{{#if: {{{publication date sortable|}}}|{{#set:CTD publication date={{{publication date sortable|}}}}}|}}
-->{{#if: {{{publication date|}}}|{{#set:CTD publication date display={{{publication date|}}}}}|}}<!--
{{#if: {{{publication place|}}}|{{#set:CTD publication place={{{publication place|}}}}}|}}
-->{{#if: {{{publication date sortable|}}}|{{#set:CTD publication date={{{publication date sortable|}}}}}|}}<!--
{{#if: {{{publications|}}}|{{#set:CTD work publications={{{publications|}}}|+sep=;}}|}}
-->{{#if: {{{publication place|}}}|{{#set:CTD publication place={{{publication place|}}}}}|}}<!--
{{#if: {{{related works|}}}|{{#set:CTD related works={{{related works|}}}|+sep=;}}|}}
-->{{#if: {{{publications|}}}|{{#set:CTD work publications={{{publications|}}}|+sep=;}}|}}<!--
{{#if: {{{read links|}}}|{{#set:CTD text links={{{read links|}}}|+sep=;}}|}}
-->{{#if: {{{related works|}}}|{{#set:CTD related works={{{related works|}}}|+sep=;}}|}}<!--
{{#if: {{{download links|}}}|{{#set:CTD download links={{{download links|}}}|+sep=;}}|}}
-->{{#if: {{{read links|}}}|{{#set:CTD text links={{{read links|}}}|+sep=;}}|}}<!--
{{#if: {{{audio links|}}}|{{#set:CTD audio links={{{audio links|}}}|+sep=;}}|}}
-->{{#if: {{{download links|}}}|{{#set:CTD download links={{{download links|}}}|+sep=;}}|}}<!--
{{#if: {{{to do|}}}|{{#set:CTD work tasks={{{to do|}}}|+sep=;}}|}}
-->{{#if: {{{audio links|}}}|{{#set:CTD audio links={{{audio links|}}}|+sep=;}}|}}<!--
{{#set:CTD term={{{title|}}};{{#var:ctdl-sort}};{{{variations|}}};{{#var:ctdl-short}}|+sep=;|CTD term sortable={{#var:ctdl-sort}}|CTD term to show={{{title|}}}|CTD work title sortable={{#var:ctdl-sort}}|CTD work short title={{#var:ctdl-short}}|CTD term origin={{#var:ctdl-origin}}|CTD work full reference={{#if: {{{author|}}}|{{#arraymap:{{{author|}}}|;|@@|{{#if:{{#show:@@|?Short name|link=none}}|{{#show:@@|?Short name|link=none}}|@@}}|, }}. |}}''{{{title|}}}''|CTD term short description={{#invoke:CTD|shortly|short_text={{{short description|}}}|long_text={{{description|}}}}}}}
-->{{#if: {{{to do|}}}|{{#set:CTD work tasks={{{to do|}}}|+sep=;}}|}}<!--
{{#if: {{{has text|}}}|<div class="mw-collapsible mw-collapsed" style="background:#f8f9fa;border:1px solid #aaa;padding:0.6em;"><div>Information about the work</div><div class="mw-collapsible-content">|}}
-->{{#set:CTD term={{{title|}}};{{#var:ctdl-sort}};{{{variations|}}};{{#var:ctdl-short}}|+sep=;|CTD term sortable={{#var:ctdl-sort}}|CTD term to show={{{title|}}}|CTD work title sortable={{#var:ctdl-sort}}|CTD work short title={{#var:ctdl-short}}|CTD term origin={{#var:ctdl-origin}}|CTD work full reference={{#if: {{{author|}}}|{{#arraymap:{{{author|}}}|;|@@|{{#if:{{#show:@@|?Short name|link=none}}|{{#show:@@|?Short name|link=none}}|@@}}|, }}. |}}''{{{title|}}}''|CTD term short description={{#invoke:CTD|shortly|short_text={{{short description|}}}|long_text={{{description|}}}}}}}<!--
{{CTD header}}
-->{{#ifeq: {{lc:{{{has text|}}}}}|yes|<div class="mw-collapsible mw-collapsed" style="background:#f8f9fa;border:1px solid #aaa;padding:0.6em;"><div>Information about the work</div><div class="mw-collapsible-content">|}}<!--
{{#if: {{{image|}}}|<div style="float:right;width:214px;margin:0 0 5px 5px;text-align:center;">[[File:{{{image|}}}|200x200px|center]]{{{image description|}}}</div>|}}
-->{{CTD header}}<!--
<div style="font-variant:small-caps;font-weight:bold;font-size:120%;">{{{title|}}}</div>
-->{{#if: {{{image|}}}|<div style="float:right;width:214px;margin:0 0 5px 5px;text-align:center;">[[File:{{{image|}}}|200x200px|center]]{{{image description|}}}</div>|}}<!--
<div>{{{subtitle|}}}</div>
--><div style="font-variant:small-caps;font-weight:bold;font-size:120%;">{{{title|}}}</div><!--
{{#if: {{{author|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Author:</p>
--><div style="font-variant:small-caps;">{{{subtitle|}}}</div><!--
<ul>{{#arraymap:{{{author|}}}|;|@@|<li>[[@@|{{#if:{{#show:@@|?Full name|link=none}}|{{#show:@@|?Full name|link=none}}|@@}}]]</li>|}}</ul>|}}
-->{{#if: {{{compiler|}}}|<p style="font-size:90%;text-indent:0;">Compiled by: {{#arraymap:{{{compiler|}}}|;|@@|[[@@|{{#if:{{#show:@@|?Full name|link=none}}|{{#show:@@|?Full name|link=none}}|@@}}]]|, }}</p>|}}<!--
{{#if:{{#var:ctdl-origin}}|<div style="font-size:90%;color:grey;">({{#var:ctdl-origin}})</div>|}}
-->{{#if: {{{author|}}}|<p style="font-size:90%;text-indent:0;font-style:italic;">{{#arraymap:{{{author|}}}|;|@@|[[@@|{{#if:{{#show:@@|?Full name|link=none}}|{{#show:@@|?Full name|link=none}}|@@}}]]|, }}</p>|}}<!--
{{#if: {{{variations|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Also:</p>
-->{{#if:{{#var:ctdl-origin}}|<div style="font-size:90%;color:grey;">({{#var:ctdl-origin}})</div>|}}<!--
<ul>{{#arraymap:{{{variations|}}}|;|@@|<li>@@</li>|}}</ul>|}}
-->{{#if: {{{variations|}}}|<p style="font-size:90%;text-indent:0;">Also: • {{#arraymap:{{{variations|}}}|;|@@|@@|&#32;•&#32;}}</p>|}}<!--
{{#if: {{{publication date|}}}|<p>{{{publication date|}}}</p>|}}
-->{{#if: {{{publication date|}}}|<p style="font-size:90%;text-indent:0;">({{{publication date|}}})</p>|}}<!--
<div style="white-space:pre-wrap;">{{{description|}}}</div>
--><div style="white-space:pre-wrap;">{{{description|}}}</div><!--
{{#if: {{{mentioned in|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Mentioned in:</p>
-->{{#if: {{{publications|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Publications:</p><!--
<ul>{{#arraymap:{{{mentioned in|}}}|;|@@|<li>@@</li>|}}</ul>|}}
--><ul>{{#arraymap:{{{publications|}}}|;|@@|<li>@@</li>|}}</ul>|}}<!--
{{#if: {{{publications|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Publications:</p>
-->{{#if: {{{translations|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Known translations:</p><!--
<ul>{{#arraymap:{{{publications|}}}|;|@@|<li>@@</li>|}}</ul>|}}
--><ul>{{#arraymap:{{{translations|}}}|;|@@|<li>@@</li>|}}</ul>|}}<!--
{{#if: {{{translations|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Known translations:</p>
-->{{#if: {{{read links|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Read:</p><!--
<ul>{{#arraymap:{{{translations|}}}|;|@@|<li>@@</li>|}}</ul>|}}
--><ul>{{#arraymap:{{{read links|}}}|;|@@|<li>@@</li>|}}</ul>|}}<!--
{{#if: {{{read links|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Read:</p>
-->{{#if: {{{read original|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Read the original:</p><!--
<ul>{{#arraymap:{{{read links|}}}|;|@@|<li>@@</li>|}}</ul>|}}
--><ul>{{#arraymap:{{{read original|}}}|;|@@|<li>@@</li>|}}</ul>|}}<!--
{{#if: {{{read original|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Read the original:</p>
-->{{#if: {{{download links|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Download:</p><!--
<ul>{{#arraymap:{{{read original|}}}|;|@@|<li>@@</li>|}}</ul>|}}
--><ul>{{#arraymap:{{{download links|}}}|;|@@|<li>@@</li>|}}</ul>|}}<!--
{{#if: {{{download links|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Download:</p>
-->{{#if: {{{download original|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Download the original:</p><!--
<ul>{{#arraymap:{{{download links|}}}|;|@@|<li>@@</li>|}}</ul>|}}
--><ul>{{#arraymap:{{{download original|}}}|;|@@|<li>@@</li>|}}</ul>|}}<!--
{{#if: {{{download original|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Download the original:</p>
-->{{#if: {{{audio links|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Listen:</p><!--
<ul>{{#arraymap:{{{download original|}}}|;|@@|<li>@@</li>|}}</ul>|}}
--><ul>{{#arraymap:{{{audio links|}}}|;|@@|<li>@@</li>|}}</ul>|}}<!--
{{#if: {{{audio links|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Listen:</p>
-->{{#if: {{{related works|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Related works:</p><!--
<ul>{{#arraymap:{{{audio links|}}}|;|@@|<li>@@</li>|}}</ul>|}}
--><ul>{{#arraymap:{{{related works|}}}|;|@@|<li>@@</li>|}}</ul>|}}<!--
{{#if: {{{related works|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Related works:</p>
-->{{#if: {{{quotes|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Quotes:</p><!--
<ul>{{#arraymap:{{{related works|}}}|;|@@|<li>@@</li>|}}</ul>|}}
--><ul>{{#arraymap:{{{quotes|}}}|;|@@|<li>[[Quotes:{{FULLPAGENAME}}#@@|@@]]</li>|}}</ul>|}}<!--
{{#if: {{{quotes|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Quotes:</p>
-->{{#if: {{{ctd rus|}}}|<p style="font-size:90%;text-indent:0;">CTD entry in Russian: [[:t-ru-lib:{{{ctd rus|}}}|{{{ctd rus|}}}]] [[t-ru-lib:{{{ctd rus|}}}]]</p>|}}<!--
<ul>{{#arraymap:{{{quotes|}}}|;|@@|<li>[[Quotes:{{FULLPAGENAME}}#@@|@@]]</li>|}}</ul>|}}
-->{{#if: {{{wikipedia|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Wikipedia:</p><!--
{{#if: {{{ctd rus|}}}|<p>CTD entry in Russian: [[:t-ru-lib:{{{ctd rus|}}}|{{{ctd rus|}}}]] [[t-ru-lib:{{{ctd rus|}}}]]</p>|}}
--><ul>{{#arraymap:{{{wikipedia|}}}|;|@@|<li>[[:wp:@@|@@]]</li>|}}</ul>|}}<!--
{{#if: {{{wikipedia|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Wikipedia:</p>
-->{{#if: {{{wikipedia rus|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Wikipedia in Russian:</p><!--
<ul>{{#arraymap:{{{wikipedia|}}}|;|@@|<li>[[:wp:@@|@@]]</li>|}}</ul>|}}
--><ul>{{#arraymap:{{{wikipedia rus|}}}|;|@@|<li>[https://ru.wikipedia.org/wiki/{{urlencode:@@|WIKI}} @@]</li>|}}</ul>|}}<!--
{{#if: {{{wikipedia rus|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Wikipedia in Russian:</p>
-->{{#if: {{{tsw en|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Theosophy Wiki:</p><!--
<ul>{{#arraymap:{{{wikipedia rus|}}}|;|@@|<li>[https://ru.wikipedia.org/wiki/{{urlencode:@@|WIKI}} @@]</li>|}}</ul>|}}
--><ul>{{#arraymap:{{{tsw en|}}}|;|@@|<li>[[:tsw-en:@@|@@]]</li>|}}</ul>|}}<!--
{{#if: {{{tsw en|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Theosophy Wiki:</p>
-->{{#if: {{{other resources|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Other resources:</p><!--
<ul>{{#arraymap:{{{tsw en|}}}|;|@@|<li>[[:tsw-en:@@|@@]]</li>|}}</ul>|}}
--><ul>{{#arraymap:{{{other resources|}}}|;|@@|<li>@@</li>|}}</ul>|}}<!--
{{#if: {{{other resources|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Other resources:</p>
  MENTIONS: a single collapsible block for all "mentioned ..." fields —
<ul>{{#arraymap:{{{other resources|}}}|;|@@|<li>@@</li>|}}</ul>|}}
  both who/what this article mentions, where this article is mentioned.
<references/>
  Collapsed by default; shown only if at least one field is filled.
<div style="background:#f8f8ff;color:grey;font-size:90%;padding:5px;">
  Placed before the DATA block.
<p>Title for references: {{#var:ctdl-short}}</p>
-->{{#if: {{{mentioned in|}}}{{{mentioned people|}}}{{{mentioned places|}}}{{{mentioned events|}}}{{{mentioned organizations|}}}{{{mentioned literature|}}}{{{mentioned periodicals|}}}
<p>Short description: {{#invoke:CTD|shortly|short_text={{{short description|}}}|long_text={{{description|}}}}}</p>
| <table class="mw-collapsible mw-collapsed" style="background:#f8f9fa;border:1px solid grey;width:100%;margin-top:1em;">
{{#if: {{{original publication details|}}}|<p>Original publication: {{{original publication details|}}}</p>|}}
<tr><td style="font-weight:bold;padding:3px 5px;">Mentions</td></tr>
{{#if: {{{to do|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">To do:</p>
<tr><td style="padding:0 8px 8px 8px;"><!--
<ul>{{#arraymap:{{{to do|}}}|;|@@|<li>@@</li>|}}</ul>|}}
-->{{#if: {{{mentioned in|}}}
</div>
| <p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Mentioned in:</p>
{{#if: {{{has text|}}}|</div></div>{{#if:{{{hide heading|}}}||{{#if: {{{author|}}}|<p style="text-align:center;">{{#arraymap:{{{author|}}}|;|@@|{{#if:{{{author page|}}}|[[{{{author page|}}}|{{#if:{{#show:@@|?Full name|link=none}}|{{#show:@@|?Full name|link=none}}|@@}}]]|[[@@|{{#if:{{#show:@@|?Full name|link=none}}|{{#show:@@|?Full name|link=none}}|@@}}]]}}|, }}{{#if: {{{author footnote|}}}|{{#tag:ref|{{{author footnote|}}}}}|}}</p>|}}<h2 style="text-align:center;">{{{title|}}}{{#if: {{{title footnote|}}}|{{#tag:ref|{{{title footnote|}}}}}|}}</h2>{{#if: {{{subtitle|}}}|<p style="text-align:center;">{{{subtitle|}}}</p>|}}{{#if: {{{translator|}}}|<p style="text-align:center;">English translation by {{{translator|}}}</p>|}}{{#if: {{{note|}}}|<p style="text-align:center;">{{{note|}}}</p>|}}{{#if: {{{image|}}}|[[File:{{{image|}}}|x200px|center]]|}}}}|}}
<ul>{{#arraymap:{{{mentioned in|}}}|;|@@|<li>@@</li>|}}</ul>
{{#arraymap:{{{categories|}}}|;|@@|[[Category:@@]]|}}
|}}<!--
{{#if: {{{author|}}}|{{#arraymap:{{{author|}}}|;|@@|[[Category:{{#if:{{#show:@@|?Short name|link=none}}|{{#show:@@|?Short name|link=none}}|@@}} (works)]]{{#if: {{{work type|}}}|[[Category:{{#if:{{#show:@@|?Short name|link=none}}|{{#show:@@|?Short name|link=none}}|@@}} ({{{work type|}}})]]|}}|}}|}}
-->{{#if: {{{mentioned people|}}}
| <p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Mentioned people:</p>
<ul>{{#arraymap:{{{mentioned people|}}}|;|@@|<li>@@</li>|}}</ul>
|}}<!--
-->{{#if: {{{mentioned places|}}}
| <p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Mentioned places:</p>
<ul>{{#arraymap:{{{mentioned places|}}}|;|@@|<li>@@</li>|}}</ul>
|}}<!--
-->{{#if: {{{mentioned events|}}}
| <p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Mentioned events:</p>
<ul>{{#arraymap:{{{mentioned events|}}}|;|@@|<li>@@</li>|}}</ul>
|}}<!--
-->{{#if: {{{mentioned organizations|}}}
| <p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Mentioned organizations:</p>
<ul>{{#arraymap:{{{mentioned organizations|}}}|;|@@|<li>@@</li>|}}</ul>
|}}<!--
-->{{#if: {{{mentioned literature|}}}
| <p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Mentioned literature:</p>
<ul>{{#arraymap:{{{mentioned literature|}}}|;|@@|<li>@@</li>|}}</ul>
|}}<!--
-->{{#if: {{{mentioned periodicals|}}}
| <p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Mentioned periodicals:</p>
<ul>{{#arraymap:{{{mentioned periodicals|}}}|;|@@|<li>@@</li>|}}</ul>
|}}
</td></tr>
</table>
}}<!--
--><references/><!--
--><div style="border:1px grey solid;background:#f8f8ff;font-size:90%;color:grey;margin-top:2em;padding:0 5px;"><!--
--><p style="text-indent:0;font-size:80%;"><b><span title="Data used in semantic queries">DATA</span></b></p><!--
--><p style="text-indent:0;">Title for references: <b>{{#var:ctdl-short}}</b><br><!--
--><span title="Text for tooltips and footnotes">Short description</span>: <b>{{#invoke:CTD|shortly|short_text={{{short description|}}}|long_text={{{description|}}}}}</b></p><!--
-->{{#if: {{{original publication details|}}}|<p style="text-indent:0;">Original publication: <b>{{{original publication details|}}}</b></p>|}}<!--
-->{{#if: {{{to do|}}}|<p style="text-indent:0;">To do: <b>{{{to do|}}}</b></p>|}}<!--
--></div><!--
-->{{#ifeq: {{lc:{{{has text|}}}}}|yes|</div></div><div style="margin-top:1em;"></div>{{#if:{{{hide heading|}}}||{{#if: {{{author|}}}|<p style="text-align:center;">{{#arraymap:{{{author|}}}|;|@@|{{#if:{{{author page|}}}|[[{{{author page|}}}|{{#if:{{#show:@@|?Full name|link=none}}|{{#show:@@|?Full name|link=none}}|@@}}]]|[[@@|{{#if:{{#show:@@|?Full name|link=none}}|{{#show:@@|?Full name|link=none}}|@@}}]]}}|, }}{{#if: {{{author footnote|}}}|{{#tag:ref|{{{author footnote|}}}}}|}}</p>|}}{{#if: {{{compiler|}}}|<p style="font-size:90%;text-indent:0;">Compiled by: {{#arraymap:{{{compiler|}}}|;|@@|[[@@|{{#if:{{#show:@@|?Full name|link=none}}|{{#show:@@|?Full name|link=none}}|@@}}]]|, }}</p>|}}{{Style P-Book|{{{title|}}}{{#if: {{{title footnote|}}}|{{#tag:ref|{{{title footnote|}}}}}|}}}}<div style="margin-top:1em;"></div>{{#if: {{{subtitle|}}}|<p style="text-align:center;">{{{subtitle|}}}</p>|}}{{#if: {{{translator|}}}|<p style="text-align:center;">English translation by {{{translator|}}}</p>|}}{{#if: {{{note|}}}|<p style="text-align:center;">{{{note|}}}</p>|}}{{#if: {{{image|}}}|[[File:{{{image|}}}|x200px|center]]|}}}}|}}<!--
-->{{#arraymap:{{{categories|}}}|;|@@|[[Category:@@]]|}}<!--
-->{{#if: {{{author|}}}|{{#arraymap:{{{author|}}}|;|@@|[[Category:{{#if:{{#show:@@|?Short name for categories|link=none}}|{{#show:@@|?Short name for categories|link=none}}|@@}} (works)]]{{#if: {{{work type|}}}|[[Category:{{#if:{{#show:@@|?Short name for categories|link=none}}|{{#show:@@|?Short name for categories|link=none}}|@@}} ({{{work type|}}})]]|}}|}}|}}
[[Category:CTD literature]]
[[Category:CTD literature]]
{{#if: {{{has text|}}}|[[Category:Texts]]|}}
{{#ifeq: {{lc:{{{has text|}}}}}|yes|[[Category:Texts]]|}}</includeonly>
</includeonly>

Latest revision as of 07:35, 27 October 2026

This template creates a literary-work entry in the Comprehensive Theosophical Dictionary, corresponding to Литература БТС. Use CTD periodical for periodicals and a letter template for individual letters.

Lists use semicolons. Link fields accept [[Page|Title]] or [https://example.org Title].

To copy

{{CTD literature
 | author =
 | compiler =
 | author page =
 | title =
 | subtitle =
 | title sortable =
 | short title =
 | variations =
 | work type =
 | has text =
 | note =
 | original publication details =
 | original language =
 | original author name =
 | original title =
 | original subtitle =
 | origin =
 | read original =
 | download original =
 | translator =
 | translations =
 | description =
 | short description =
 | mentioned in =
 | mentioned people =
 | mentioned places =
 | mentioned events =
 | mentioned organizations =
 | mentioned literature =
 | mentioned periodicals =
 | image =
 | image description =
 | publication date =
 | publication date sortable =
 | publication place =
 | publications =
 | categories =
 | related works =
 | read links =
 | download links =
 | audio links =
 | quotes =
 | ctd rus =
 | wikipedia =
 | wikipedia rus =
 | tsw en =
 | other resources =
 | author footnote =
 | title footnote =
 | hide heading =
 | to do =
}}

Parameters

  • author — Author page names, separated by semicolons. Names are resolved through the existing Full name and Short name properties. [[Author]]
  • compiler — Compiler page names, separated by semicolons. Distinct from authors; does not create author categories. [[Compiler]]
  • author page — Optional library page for the author link in the work heading.
  • title — Full work title, preserving its punctuation. [[CTD work title]]
  • subtitle — Subtitle or extended title. [[CTD subtitle]]
  • title sortable — Title for sorting; defaults to title. [[CTD work title sortable]]
  • short title — Unique short title for references; defaults to the page name. [[CTD work short title]]
  • variations — Independent alternative titles, separated by semicolons. [[CTD term variations]]
  • work type — Plural lower-case work type, such as books or articles; also used for author categories. [[CTD work type]]
  • has text — Any nonempty value collapses the dictionary entry and displays a heading for the text below it.
  • note — Historical or editorial note displayed below the work heading. [[CTD work note]]
  • original publication details — Full original bibliographic details, including publisher and ISBN when known. [[CTD original publication details]]
  • original language — Language of the original. [[Used language]]
  • original author name — Author name as printed in the original; separate multiple names with semicolons. [[CTD original author name]]
  • original title — Title in the original language. [[CTD original title]]
  • original subtitle — Subtitle in the original language. [[CTD original subtitle]]
  • origin — Optional manually formatted origin; otherwise constructed from original language, author and title. [[CTD term origin]]
  • read original — Hyperlinks to online original texts, separated by semicolons. [[CTD original text links]]
  • download original — Hyperlinks to downloadable original texts, separated by semicolons. [[Files of original]]
  • translator — Translator(s) of this English text, separated by semicolons. [[Translator]]
  • translations — Known translations with hyperlinks when available, separated by semicolons. [[CTD work translations]]
  • description — Independent dictionary description of the work. [[CTD term description]]
  • short description — Plain-text description for popup hints and footnotes; defaults to an abbreviated description. [[CTD term short description]]
  • mentioned in — Works in which this work is mentioned. Enter titles as hyperlinks, separated by semicolons; each item is a separate Text value. [[CTD mentioned in]]
  • mentioned people — People and characters mentioned in this work, separated by semicolons.
  • mentioned places — Places mentioned in this work, separated by semicolons.
  • mentioned events — Events mentioned in this work, separated by semicolons.
  • mentioned organizations — Organizations mentioned in this work, separated by semicolons.
  • mentioned literature — Other literary works mentioned in this work, separated by semicolons.
  • mentioned periodicals — Periodicals mentioned in this work, separated by semicolons.
  • image — Image filename for the cover or illustration. [[CTD term image]]
  • image description — Caption for the image. [[CTD image description]]
  • publication date — Publication date or period in a readable form. [[CTD publication date display]]
  • publication date sortable — Machine-readable date, such as 1888-10-01. Use only a known date; a free-text period belongs in publication date. [[CTD publication date]]
  • publication place — Place of publication, publisher or periodical as appropriate to the bibliographic entry. [[CTD publication place]]
  • publications — Original and translated editions with brief bibliographic details and hyperlinks, separated by semicolons. [[CTD work publications]]
  • categories — Additional category names, separated by semicolons.
  • related works — Related works as internal or external hyperlinks, separated by semicolons. [[CTD related works]]
  • read links — Hyperlinks for reading the text, separated by semicolons. [[CTD text links]]
  • download links — Hyperlinks for downloading the text, separated by semicolons. [[CTD download links]]
  • audio links — Hyperlinks to audio recordings, separated by semicolons. [[CTD audio links]]
  • quotes — Quote-source section names on Quotes:<this page>, separated by semicolons; follows CTD article.
  • ctd rus — Corresponding Russian entry page name.
  • wikipedia — English Wikipedia page names, separated by semicolons.
  • wikipedia rus — Russian Wikipedia page names, separated by semicolons.
  • tsw en — English Theosophy.wiki page names, separated by semicolons.
  • other resources — Other hyperlinks, separated by semicolons.
  • author footnote — Footnote appended to the author in the work heading.
  • title footnote — Footnote appended to the work title in the heading.
  • hide heading — Any nonempty value suppresses the work heading when has text is set.
  • to do — Editorial tasks, separated by semicolons. [[CTD work tasks]]

Each author gets a works category using the Short name for categories property (compact format: no comma, no spaces between initials), with the supplied author page name as a fallback. The work is placed in Category:CTD literature and, when has text is set, Category:Texts. Literary entries are not mixed into the alphabetical CTD term categories.