Bots, Editors (Semantic MediaWiki), trusted
5,627
edits
(Align literature card layout with BTS: compact author, metadata styling, DATA box and removal of empty paragraphs) |
(CTD literature: separate compiler from author) |
||
| Line 7: | Line 7: | ||
{{CTD literature | {{CTD literature | ||
| author = | | author = | ||
| compiler = | |||
| author page = | | author page = | ||
| title = | | title = | ||
| Line 54: | Line 55: | ||
== 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 105: | Line 107: | ||
-->{{#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: {{{compiler|}}}|{{#set:Compiler={{{compiler|}}}|+sep=;}}|}}<!-- | |||
-->{{#if: {{{author|}}}|{{#set:Author={{{author|}}}|+sep=;}}|}}<!-- | -->{{#if: {{{author|}}}|{{#set:Author={{{author|}}}|+sep=;}}|}}<!-- | ||
-->{{#if: {{{title|}}}|{{#set:CTD work title={{{title|}}}}}|}}<!-- | -->{{#if: {{{title|}}}|{{#set:CTD work title={{{title|}}}}}|}}<!-- | ||
| Line 139: | Line 142: | ||
--><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><!-- | --><div style="font-variant:small-caps;">{{{subtitle|}}}</div><!-- | ||
-->{{#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: {{{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: {{{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>|}}<!-- | ||
| Line 181: | Line 185: | ||
-->{{#if: {{{to do|}}}|<p style="text-indent:0;">To do: <b>{{{to do|}}}</b></p>|}}<!-- | -->{{#if: {{{to do|}}}|<p style="text-indent:0;">To do: <b>{{{to do|}}}</b></p>|}}<!-- | ||
--></div><!-- | --></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]]|}}}}|}}<!-- | -->{{#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>|}}{{#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>|}}<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:@@]]|}}<!-- | -->{{#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: {{{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]]|}}</includeonly> | {{#ifeq: {{lc:{{{has text|}}}}}|yes|[[Category:Texts]]|}}</includeonly> | ||