Template:CTD literature: Difference between revisions

m
Добавлен text-indent:0 параграфам author/subtitle/translator/note в шапке работы (has text=yes), чтобы они центрировались так же, как заголовок ({{Style P-Book}})
mNo edit summary
m (Добавлен text-indent:0 параграфам author/subtitle/translator/note в шапке работы (has text=yes), чтобы они центрировались так же, как заголовок ({{Style P-Book}}))
 
Line 234: Line 234:
-->{{#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><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]]|}}}}|}}<!--
-->{{#ifeq: {{lc:{{{has text|}}}}}|yes|</div></div><div style="margin-top:1em;"></div>{{#if:{{{hide heading|}}}||{{#if: {{{author|}}}|<p style="text-indent:0; 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-indent:0; text-align:center;">{{{subtitle|}}}</p>|}}{{#if: {{{translator|}}}|<p style="text-indent:0; text-align:center;">English translation by {{{translator|}}}</p>|}}{{#if: {{{note|}}}|<p style="text-indent:0; 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 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|}}})]]|}}|}}|}}
-->{{#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]]
{{#ifeq: {{lc:{{{has text|}}}}}|yes|[[Category:Texts]]|}}</includeonly>
{{#ifeq: {{lc:{{{has text|}}}}}|yes|[[Category:Texts]]|}}</includeonly>