Template:EditorialContent: Difference between revisions

From Bodhicitta
(VSCode edit)
(Topic facet categories for the site search)
 
(26 intermediate revisions by the same user not shown)
Line 3: Line 3:
{{#ifeq:{{{ firstHeading | }}}|none|{{RemoveFirstHeading}}|
{{#ifeq:{{{ firstHeading | }}}|none|{{RemoveFirstHeading}}|
{{RemoveFirstHeading
{{RemoveFirstHeading
|AltTitle={{#ifeq:{{{ subclass | }}}
|AltTitle={{#if:{{{ AltTitle | }}}
|བྱང་སེམས་ཆོས་མཛོད།
|{{{ AltTitle | }}}
|<span class="line17">{{{ title | {{SUBPAGENAME}} }}}</span>
|{{#ifeq:{{{ subclass | }}}
|{{{ title | {{SUBPAGENAME}} }}}
|བྱང་སེམས་ཆོས་མཛོད།
|<span class="line17">{{{ title | {{SUBPAGENAME}} }}}</span>
|{{{ title | {{SUBPAGENAME}} }}}
}}
}}
}}
|SubTitle={{{ SubTitle | }}}
|SubTitle={{{ SubTitle | }}}
Line 27: Line 30:
|{{GetSubThemes|{{{ subclass | }}}}}
|{{GetSubThemes|{{{ subclass | }}}}}
}}</div>
}}</div>
<div>{{#widget:ReadingTime}}{{#ifeq:{{{ subclass | }}}|BCA Chapter Summaries| {{!}} {{#switch:{{{ sub-theme | }}}
<div>{{ReadingTime}}{{#ifeq:{{{ subclass | }}}|BCA Chapter Summaries| {{!}} {{#switch:{{{ sub-theme | }}}
|Chapter 1=<span class="text-muted font-italic">First Chapter</span> {{!}} [[Explore/Chapter 2 - Confession of Negativity|Next Summary <i class="fa-sharp-duotone fa-solid fa-caret-right fa-sm"></i>]]
|Chapter 1=<span class="text-muted font-italic">First Chapter</span> {{!}} [[Explore/Chapter 2 - Confession of Negativity|Next Summary <i class="fa-sharp-duotone fa-solid fa-caret-right fa-sm"></i>]]
|Chapter 2=[[Explore/Chapter 1 - The Excellence and Benefits of Bodhicitta|<i class="fa-sharp-duotone fa-solid fa-caret-left fa-sm"></i> Previous Summary]] {{!}} [[Explore/Chapter 3 - Taking Hold of Bodhicitta|Next Summary <i class="fa-sharp-duotone fa-solid fa-caret-right fa-sm"></i>]]
|Chapter 2=[[Explore/Chapter 1 - The Excellence and Benefits of Bodhicitta|<i class="fa-sharp-duotone fa-solid fa-caret-left fa-sm"></i> Previous Summary]] {{!}} [[Explore/Chapter 3 - Taking Hold of Bodhicitta|Next Summary <i class="fa-sharp-duotone fa-solid fa-caret-right fa-sm"></i>]]
Line 59: Line 62:
<div class="mb-4">{{{ TopSidebarContent | }}}</div> }}{{#ifeq:{{{ subclass | }}}|BCA Chapter Summaries|
<div class="mb-4">{{{ TopSidebarContent | }}}</div> }}{{#ifeq:{{{ subclass | }}}|BCA Chapter Summaries|
<div class="mb-4">
<div class="mb-4">
<div class="text-110 text-center font-weight-bold mt-2 mb-2">More on this</div>
<div class="sidebar-section-heading">More on this</div>
* [[Texts/Bodhicaryāvatāra/{{{ sub-theme | }}}|Read Chapter Verses <i class="fa-sharp-duotone fa-solid fa-angles-right ml-1 fa-sm"></i>]]{{#if:{{{ TermTopics | }}}|{{#ask:[[Category:Articles]][[Editorial::true]][[TermTopics::{{{ TermTopics | }}}]][[BcaAuthor::People/Houlton, S.]]|format=template|template=DetailedIntroLink|link=none|limit=1}}|}}
* [[Texts/Bodhicaryāvatāra/{{{ sub-theme | }}}|Read Chapter Verses <i class="fa-sharp-duotone fa-solid fa-angles-right ml-1 fa-sm"></i>]]{{#if:{{{ TermTopics | }}}|{{#ask:[[Category:Articles]][[Editorial::true]][[TermTopics::{{{ TermTopics | }}}]][[BcaAuthor::People/Houlton, S.]]|format=template|template=DetailedIntroLink|link=none|limit=1}}|}}
</div>| }}
</div>| }}{{#switch:{{BASEPAGENAME}}
<div class="text-center mb-3">{{EditorialContentDisclaimer}}</div>
|བྱང་སེམས་ཆོས་མཛོད།
|Courses=
|#default=<div class="text-center mb-3">{{EditorialContentDisclaimer}}</div>
}}
{{SidebarPeople
{{SidebarPeople
|authors={{{ EditorialAuthor | }}}
|authors={{{ EditorialAuthor | }}}
Line 73: Line 79:
|people={{{ PeopleTopics | }}}
|people={{{ PeopleTopics | }}}
|drlTopics={{GetItemData|prop=DrlTopics}}
|drlTopics={{GetItemData|prop=DrlTopics}}
}} | }}
}} | }}{{#ifeq:{{BASEPAGENAME}}|བྱང་སེམས་ཆོས་མཛོད།|
<div>{{#Widget:filterInput|placeholder=Filter texts...}}</div>|}}
</div>
</div>
{{ScrollToTop}}{{#if:{{{ SidebarBottomContent | }}} |  
{{ScrollToTop}}{{#if:{{{ SidebarBottomContent | }}} |  
Line 83: Line 90:
{{Jumbo
{{Jumbo
|image={{{ jumbo-image | }}}
|image={{{ jumbo-image | }}}
|imageposition={{{ jumbo-image-position | 50% 50% }}}
|fixed-sized-image={{{ fixed-sized-image | }}}
|fixed-sized-image={{{ fixed-sized-image | }}}
|full-width=yes
|full-width=yes
Line 98: Line 106:
{{JumpToNavButton|check={{{ featured-media | }}}|hash=Featured multimedia|icon=video|label=Featured multimedia}}
{{JumpToNavButton|check={{{ featured-media | }}}|hash=Featured multimedia|icon=video|label=Featured multimedia}}
{{JumpToNavButton|check={{{ external-resources | }}}|hash=External Resources|icon=globe|label=External Resources}}
{{JumpToNavButton|check={{{ external-resources | }}}|hash=External Resources|icon=globe|label=External Resources}}
</div>|}}
</div>


{{VerticalSpacer|2}}  
{{VerticalSpacer|2}} | }}
<div class="time-to-read">
<div class="time-to-read">
{{{ main-text | }}}
{{{ main-text | }}}
<h2 class="ref-header mt-5" style="display:none;">Notes</h2>
<references/>
</div>{{#ifeq:{{{ subclass | }}}|BCA Chapter Summaries|
</div>{{#ifeq:{{{ subclass | }}}|BCA Chapter Summaries|
Line 158: Line 169:
}}{{#arraymap:{{{ StoriesPage | }}}|;|@@@|
}}{{#arraymap:{{{ StoriesPage | }}}|;|@@@|
                       {{NiceMiniTile|{{#explode:@@@|::|0}}|{{#if:{{#explode:@@@|::|1}}|
                       {{NiceMiniTile|{{#explode:@@@|::|0}}|{{#if:{{#explode:@@@|::|1}}|
                       {{#explode:@@@|::|1}}|{{SUBPAGENAME:{{#explode:@@@|::|0}}}}}}}}|}}
                       {{#explode:@@@|::|1}}|{{SUBPAGENAME:{{#explode:@@@|::|0}} }} }} }}|}}
</div>
</div>
</div> {{#if:{{{ add-resources-text | }}}{{{ add-resources-tiles | }}}{{{ add-resources-section | }}}|
</div> {{#if:{{{ add-resources-text | }}}{{{ add-resources-tiles | }}}{{{ add-resources-section | }}}|
Line 179: Line 190:
{{{ add-resources-section | }}} | }}
{{{ add-resources-section | }}} | }}


</div> | }} | }}{{#if:{{{ tibetan-texts | }}} |
</div> | }} | }}
 
{{TibetanTileQuery
{{TibetanTileQuery
|query=[[{{#arraymap:{{{ tibetan-texts | }}}
|query=[[BcaTibetanPage::{{SUBPAGENAME}}]]
|;
|intro=<div class="row filterableContent mt-4 sort-tibetan">
|@@@
|Texts/{{#urldecode:{{ucfirst:@@@}} }}
|{{!}}{{!}}
}}]]
|intro=<div class="row filterableContent mt-4">
|outro=</div>
|outro=</div>
|limit=1008
|limit=1008
|default=
|default={{#if:{{{ tibetan-texts | }}}
|<div class="row filterableContent mt-4">{{TibetanTileQuery
|query=[[{{#arraymap:{{{ tibetan-texts | }}}
|;
|@@@
|Texts/{{#urldecode:{{ucfirst:@@@}} }}
|{{!}}{{!}}
}}]]
|limit=1008
}}</div>
|
}}
|searchlabel=
|searchlabel=
}} | }}
}}
 
<h2 class="ref-header mt-5" style="display:none;">Notes</h2>
<references/>
</div>{{#if:{{{ media | }}}|
</div>{{#if:{{{ media | }}}|


Line 246: Line 261:


</div>
</div>
</div>{{Categories|{{{ EditorialAuthor | }}};{{{ ExtraCats | }}};{{{ subclass | }}};{{{ theme | }}};{{{sub-theme|}}};Editorial Content}}{{#set:
</div>{{Categories|{{{ EditorialAuthor | }}};{{{ ExtraCats | }}};{{{ subclass | }}};{{{ theme | }}};{{{sub-theme|}}};Editorial Content}}<!--
|BcaAuthor={{{ EditorialAuthor | }}}
Topic categories for the site search (hidden from the footer in CSS). See Module:FacetCategories.
-->{{#invoke:FacetCategories|main|topics={{{ TermTopics | }}}}}{{#set:
|BcaAuthor={{{ EditorialAuthor | }}}|+sep=;
|FrontCoverImg={{#if: {{{ image | }}}
|FrontCoverImg={{#if: {{{ image | }}}
|{{{ image | }}}
|{{{ image | }}}
Line 263: Line 280:
|#default={{#if: {{{ title | }}}
|#default={{#if: {{{ title | }}}
|{{{ title | }}}
|{{{ title | }}}
|{{#if: {{{ sub-theme | }}}
|{{#if: {{{ AltTitle | }}}
|{{{ sub-theme | }}}
|{{{ AltTitle | }}}
|{{SUBPAGENAME}}
|{{#if: {{{ sub-theme | }}}
|{{{ sub-theme | }}}
|{{SUBPAGENAME}}
}}
}}
}}
}}
}}
Line 279: Line 299:
}}
}}
}}
}}
|Description={{{ Description | }}}
|Classification=Editorial Content
|Classification=Editorial Content
|Class=Editorial Content
|Class=Editorial Content

Latest revision as of 11:55, 5 October 2026