Bots, Editors (Semantic MediaWiki), trusted
9,959
edits
m (Add mentioned people/places/events/organizations/literature/periodicals fields; combine with mentioned in into a single collapsible block before DATA (parity with ru Литература БТС)) |
(Use Short name for categories (no comma, no spaces) to build author category names) |
||
| Line 112: | 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 | 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:Шаблон:Литература БТС]] | ||
| Line 236: | Line 236: | ||
-->{{#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]]|}}}}|}}<!-- | -->{{#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 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> | ||