Template:PersonCall: Difference between revisions
From Bodhicitta
(VSCode edit) |
(VSCode edit) |
||
| Line 67: | Line 67: | ||
|template=PersonRemote | |template=PersonRemote | ||
}} | }} | ||
<div class="my-4">{{#if: {{{ overrideAuthoredWorks | }}}{{{ overrideTranslatoredWorks | }}} | <div class="my-4"><!-- | ||
One filter box for the whole page, sitting above every section. | |||
It is deliberately NOT per-section: the handler in tws.js binds to every | |||
.filter-input on the page, and an input with no contentId targets | |||
.filterableContent globally — so one box per section would have each box | |||
filtering all the other sections too. A single box matches that behaviour | |||
honestly, and for most people the combined list is short anyway. | |||
Shown only once the page total passes 7, so short pages stay uncluttered. | |||
-->{{#ifexpr:{{#ask:{{#if: {{{ overrideAuthoredWorks | }}}{{{ overrideTranslatoredWorks | }}} | |||
|[[{{#arraymap: {{{ overrideAuthoredWorks | }}};{{{ overrideTranslatoredWorks | }}} |;|@@@|@@@|{{!}}{{!}}}}]] | |||
|[[Category:Library Items||Editorial Content]][[Category:{{#titleparts:{{SUBPAGENAME}}}}]] | |||
OR[[Category:Library Items||Editorial Content]][[PeopleTopics::{{#titleparts:{{SUBPAGENAME}}}}]] | |||
OR[[Category:Library Items||Editorial Content]][[Performer::{{#titleparts:{{SUBPAGENAME}}}}]] | |||
OR[[-AssociatedArticle::<q>[[Category:Tsadra Bodhicitta Audio]][[AudioPerformerName::{{#titleparts:{{SUBPAGENAME}}}}]]</q>]] | |||
}}|format=count}}>7|<div class="row mb-4"> | |||
<div class="col-md-8 col-lg-6">{{#widget:filterInput|placeholder=Filter all contributions...}}</div> | |||
</div>|}}{{#if: {{{ overrideAuthoredWorks | }}}{{{ overrideTranslatoredWorks | }}} | |||
<!-- | <!-- | ||
OVERRIDE PATH — an explicit work list was passed in, so relationship | OVERRIDE PATH — an explicit work list was passed in, so relationship | ||
| Line 73: | Line 91: | ||
--> |{{PersonWorksSection | --> |{{PersonWorksSection | ||
|heading=Works & Contributions | |heading=Works & Contributions | ||
|query=[[{{#arraymap: {{{ overrideAuthoredWorks | }}};{{{ overrideTranslatoredWorks | }}} |;|@@@|@@@|{{!}}{{!}}}}]] | |query=[[{{#arraymap: {{{ overrideAuthoredWorks | }}};{{{ overrideTranslatoredWorks | }}} |;|@@@|@@@|{{!}}{{!}}}}]] | ||
}} | }} | ||
| Line 100: | Line 117: | ||
--> |{{PersonWorksSection | --> |{{PersonWorksSection | ||
|heading=Authored Works | |heading=Authored Works | ||
|query=[[Category:Library Items||Editorial Content]][[Category:{{#titleparts:{{SUBPAGENAME}}}}]][[Class::Books||Articles||Classical Works||Dissertations||Tibetan Publications||Sanskrit Publications||Other Classical Publications||Editorial Content]] | |query=[[Category:Library Items||Editorial Content]][[Category:{{#titleparts:{{SUBPAGENAME}}}}]][[Class::Books||Articles||Classical Works||Dissertations||Tibetan Publications||Sanskrit Publications||Other Classical Publications||Editorial Content]] | ||
}}{{PersonWorksSection | }}{{PersonWorksSection | ||
|heading=Performances & Recordings | |heading=Performances & Recordings | ||
|blurb=Media in which {{#show:{{PAGENAME}}|?MainNamePhon}} appears as performer or teacher. | |blurb=Media in which {{#show:{{PAGENAME}}|?MainNamePhon}} appears as performer or teacher. | ||
|query=[[Category:Library Items||Editorial Content]][[Performer::{{#titleparts:{{SUBPAGENAME}}}}]] | |query=[[Category:Library Items||Editorial Content]][[Performer::{{#titleparts:{{SUBPAGENAME}}}}]] | ||
}}{{PersonWorksSection | }}{{PersonWorksSection | ||
|heading=Narrated Audio | |heading=Narrated Audio | ||
|blurb=Audio recordings narrated by {{#show:{{PAGENAME}}|?MainNamePhon}}. | |blurb=Audio recordings narrated by {{#show:{{PAGENAME}}|?MainNamePhon}}. | ||
|query=[[-AssociatedArticle::<q>[[Category:Tsadra Bodhicitta Audio]][[AudioPerformerName::{{#titleparts:{{SUBPAGENAME}}}}]]</q>]] | |query=[[-AssociatedArticle::<q>[[Category:Tsadra Bodhicitta Audio]][[AudioPerformerName::{{#titleparts:{{SUBPAGENAME}}}}]]</q>]] | ||
}}{{PersonWorksSection | }}{{PersonWorksSection | ||
|heading=Works About {{#show:{{PAGENAME}}|?MainNamePhon}} | |heading=Works About {{#show:{{PAGENAME}}|?MainNamePhon}} | ||
|blurb=Scholarship and editorial content in which this person is a subject rather than an author. | |blurb=Scholarship and editorial content in which this person is a subject rather than an author. | ||
|query=[[Category:Library Items||Editorial Content]][[PeopleTopics::{{#titleparts:{{SUBPAGENAME}}}}]] | |query=[[Category:Library Items||Editorial Content]][[PeopleTopics::{{#titleparts:{{SUBPAGENAME}}}}]] | ||
}} | }} | ||