Bots, Editors (Semantic MediaWiki), trusted
5,627
edits
(Suppress blank lines from metadata setup; handle has text yes/no explicitly (case-insensitive)) |
(Align literature card layout with BTS: compact author, metadata styling, DATA box and removal of empty paragraphs) |
||
| Line 134: | Line 134: | ||
-->{{#if: {{{to do|}}}|{{#set:CTD work tasks={{{to do|}}}|+sep=;}}|}}<!-- | -->{{#if: {{{to do|}}}|{{#set:CTD work tasks={{{to do|}}}|+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|}}}}}}}<!-- | -->{{#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|}}}}}}}<!-- | ||
-->{{#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">|}} | -->{{#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">|}}<!-- | ||
{{CTD header}} | -->{{CTD header}}<!-- | ||
{{#if: {{{image|}}}|<div style="float:right;width:214px;margin:0 0 5px 5px;text-align:center;">[[File:{{{image|}}}|200x200px|center]]{{{image description|}}}</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 style="font-variant:small-caps;font-weight:bold;font-size:120%;">{{{title|}}}</div> | --><div style="font-variant:small-caps;font-weight:bold;font-size:120%;">{{{title|}}}</div><!-- | ||
--><div style="font-variant:small-caps;">{{{subtitle|}}}</div><!-- | |||
{{#if: {{{author|}}}|<p style="font- | -->{{#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:{{#var:ctdl-origin}}|<div style="font-size:90%;color:grey;">({{#var:ctdl-origin}})</div>|}}<!-- | |||
{{#if:{{#var:ctdl-origin}}|<div style="font-size:90%;color:grey;">({{#var:ctdl-origin}})</div>|}} | -->{{#if: {{{variations|}}}|<p style="font-size:90%;text-indent:0;">Also: • {{#arraymap:{{{variations|}}}|;|@@|@@| • }}</p>|}}<!-- | ||
{{#if: {{{variations|}}}|<p style="font- | -->{{#if: {{{publication date|}}}|<p style="font-size:90%;text-indent:0;">({{{publication date|}}})</p>|}}<!-- | ||
--><div style="white-space:pre-wrap;">{{{description|}}}</div><!-- | |||
{{#if: {{{publication date|}}}|<p>{{{publication date|}}}</p>|}} | -->{{#if: {{{mentioned in|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Mentioned in:</p><!-- | ||
<div style="white-space:pre-wrap;">{{{description|}}}</div> | --><ul>{{#arraymap:{{{mentioned in|}}}|;|@@|<li>@@</li>|}}</ul>|}}<!-- | ||
{{#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:{{{other resources|}}}|;|@@|<li>@@</li>|}}</ul>|}}<!-- | |||
{{#if: {{{other resources|}}}|<p style="font-weight: bold; text-indent: 0; margin-top: 1em;">Other resources:</p> | --><references/><!-- | ||
<ul>{{#arraymap:{{{other resources|}}}|;|@@|<li>@@</li>|}}</ul>|}} | --><div style="border:1px grey solid;background:#f8f8ff;font-size:90%;color:grey;margin-top:2em;padding:0 5px;"><!-- | ||
<references/> | --><p style="text-indent:0;font-size:80%;"><b><span title="Data used in semantic queries">DATA</span></b></p><!-- | ||
<div style="background:#f8f8ff; | --><p style="text-indent:0;">Title for references: <b>{{#var:ctdl-short}}</b><br><!-- | ||
<p | --><span title="Text for tooltips and footnotes">Short description</span>: <b>{{#invoke:CTD|shortly|short_text={{{short description|}}}|long_text={{{description|}}}}}</b></p><!-- | ||
<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>|}}<!-- | ||
{{#if: {{{ | --></div><!-- | ||
-->{{#ifeq: {{lc:{{{has text|}}}}}|yes|</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]]|}}}}|}}<!-- | |||
-->{{#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|}}})]]|}}|}}|}} | ||
{{#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|}}})]]|}}|}}|}} | |||
[[Category:CTD literature]] | [[Category:CTD literature]] | ||
{{#ifeq: {{lc:{{{has text|}}}}}|yes|[[Category:Texts]]|}} | {{#ifeq: {{lc:{{{has text|}}}}}|yes|[[Category:Texts]]|}}</includeonly> | ||
</includeonly> | |||