Template:EditorialContent: Difference between revisions

From Bodhicitta
(VSCode edit)
(Topic facet categories for the site search)
 
(47 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>__NOTOC____NOEDITSECTION__<!-- {{ReviewTemplate}}{{ReviewTools}} -->
<includeonly>__NOTOC____NOEDITSECTION__<!-- {{ReviewTemplate}}{{ReviewTools}} -->


{{#ifeq:{{{ firstHeading | }}}|none|{{RemoveFirstHeading}}|
{{RemoveFirstHeading
{{RemoveFirstHeading
|AltTitle={{#ifeq:{{{ theme | }}}
|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 | }}}
|watermark={{#ifeq:{{{ theme | }}}
|watermark={{#ifeq:{{{ subclass | }}}
|བྱང་སེམས་ཆོས་མཛོད།
|བྱང་སེམས་ཆོས་མཛོད།
|<span class="line17">{{#invoke:GetWatermark|main}}</span>
|<span class="line17">{{#invoke:GetWatermark|main}}</span>
|{{#invoke:GetWatermark|main}}
|{{#invoke:GetWatermark|main}}
}}
}}
}}
}} }}
<div class="d-flex justify-content-between">
<div class="d-flex justify-content-between">
<div>{{#if: {{{ parent | }}}
<div>{{#if: {{{ parent | }}}
Line 25: Line 29:
|{{{ subclass | }}}
|{{{ subclass | }}}
|{{GetSubThemes|{{{ subclass | }}}}}
|{{GetSubThemes|{{{ subclass | }}}}}
}}</div>{{#ifeq:{{{ subclass | }}}|BCA Chapter Summaries|
}}</div>
<div>{{#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 37: Line 41:
|Chapter 9=[[Explore/Chapter 8 - Meditative Concentration|<i class="fa-sharp-duotone fa-solid fa-caret-left fa-sm"></i> Previous Summary]] {{!}} [[Explore/Chapter 10 - Dedication|Next Summary <i class="fa-sharp-duotone fa-solid fa-caret-right fa-sm"></i>]]
|Chapter 9=[[Explore/Chapter 8 - Meditative Concentration|<i class="fa-sharp-duotone fa-solid fa-caret-left fa-sm"></i> Previous Summary]] {{!}} [[Explore/Chapter 10 - Dedication|Next Summary <i class="fa-sharp-duotone fa-solid fa-caret-right fa-sm"></i>]]
|Chapter 10=[[Explore/Chapter 9 - Wisdom|<i class="fa-sharp-duotone fa-solid fa-caret-left fa-sm"></i> Previous Summary]] {{!}} <span class="text-muted font-italic">Last Chapter</span>
|Chapter 10=[[Explore/Chapter 9 - Wisdom|<i class="fa-sharp-duotone fa-solid fa-caret-left fa-sm"></i> Previous Summary]] {{!}} <span class="text-muted font-italic">Last Chapter</span>
}}</div>
}} }}
}}
</div>
</div>{{#if:{{{ TopContent | }}}|
</div>{{#if:{{{ TopContent | }}}|


Line 46: Line 50:




<div class="row">
<div class="row ssb-content">
<div class="{{#switch:{{{ wideSidebar | }}}|true|Yes=col-md-4|#default=col-md-3}} order-md-last ssb-content sliding-drawer">
<div class="ssb {{#switch:{{{ wideSidebar | }}}|true|Yes=col-md-4|#default=col-md-3}} order-md-last sliding-drawer">
<div class="ssb">
<div class="sidebar ssb__inner mb-5">{{#switch:{{BASEPAGENAME}}
<div class="sidebar ssb__inner mb-5">{{#switch:{{BASEPAGENAME}}
|Discover={{DoorwayReturnTile|Discover}}
|Discover={{DoorwayReturnTile|Discover}}
|Explore={{DoorwayReturnTile|Explore}}
|Explore={{DoorwayReturnTile|Explore}}
|Study={{DoorwayReturnTile|Study}}
|Study={{DoorwayReturnTile|Study}}
|Practice={{DoorwayReturnTile|Practice}}
|Practice={{DoorwayReturnTile|Practice}}
}}{{#if: {{{ TopSidebarSection | }}} |
}}{{#if: {{{ TopSidebarSection | }}} |
{{{ TopSidebarSection | }}} | }}
{{{ TopSidebarSection | }}} | }}
<div>{{#if: {{{ TopSidebarContent | }}} |
<div>{{#if: {{{ TopSidebarContent | }}} |
<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="sidebar-section-heading">More on this</div>
<div class="text-110 text-center font-weight-bold mt-2 mb-2">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>
|བྱང་སེམས་ཆོས་མཛོད།
{{SidebarPeople
|Courses=
|authors={{{ EditorialAuthor | }}}
|#default=<div class="text-center mb-3">{{EditorialContentDisclaimer}}</div>
}}
}}
<div class="mb-3">__TOC__</div>{{#if:{{{ TermTopics | }}}{{{ TextTopics | }}}{{{ PeopleTopics | }}}|
{{SidebarPeople
<hr class="no-bg my-2 tsdwiki-border-t-redfade text-center">
|authors={{{ EditorialAuthor | }}}
{{SidebarTopics
}}
|terms={{{ TermTopics | }}}
<div class="mb-3">__TOC__</div>{{#if:{{{ TermTopics | }}}{{{ TextTopics | }}}{{{ PeopleTopics | }}}|
|texts={{{ TextTopics | }}}
<hr class="no-bg my-2 tsdwiki-border-t-redfade text-center">
|people={{{ PeopleTopics | }}}
{{SidebarTopics
|drlTopics={{GetItemData|prop=DrlTopics}}
|terms={{{ TermTopics | }}}
}} | }}
|texts={{{ TextTopics | }}}
</div>
|people={{{ PeopleTopics | }}}
{{ScrollToTop}}{{#if:{{{ SidebarBottomContent | }}} |  
|drlTopics={{GetItemData|prop=DrlTopics}}
{{{ SidebarBottomContent | }}} | }}
}} | }}{{#ifeq:{{BASEPAGENAME}}|བྱང་སེམས་ཆོས་མཛོད།|
<div>{{#Widget:filterInput|placeholder=Filter texts...}}</div>|}}
</div>
</div>
{{ScrollToTop}}{{#if:{{{ SidebarBottomContent | }}} |
{{{ SidebarBottomContent | }}} | }}
</div>
</div>
</div>
</div>
Line 84: 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
|imageSource={{{ jumbo-image-source | }}}
|imageSource={{{ jumbo-image-source | }}}
|text={{{ jumbo-text | }}}
|text={{{ jumbo-text | }}}
|text-padding=p-4
|text-classes={{#ifeq:{{{ subclass | }}}|བྱང་སེམས་ཆོས་མཛོད།|text-130 line16|}}
}} | }}{{#if:{{{ media | }}}{{{ featured-books | }}}{{{ featured-articles | }}}{{{ featured-dissertations | }}}{{{ featured-texts | }}}{{{ featured-media | }}}{{{ external-resources | }}}|
}} | }}{{#if:{{{ media | }}}{{{ featured-books | }}}{{{ featured-articles | }}}{{{ featured-dissertations | }}}{{{ featured-texts | }}}{{{ featured-media | }}}{{{ external-resources | }}}|
<div class="row mx-n2 mt-3 mb-4">
<div class="row mx-n2 mt-3 mb-4">
Line 97: 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">
{{{ main-text | }}}


{{{ main-text | }}}{{#ifeq:{{{ subclass | }}}|BCA Chapter Summaries|
<h2 class="ref-header mt-5" style="display:none;">Notes</h2>
<references/>
</div>{{#ifeq:{{{ subclass | }}}|BCA Chapter Summaries|
<div class="row justify-content-center my-5 py-4 tsdwiki-border-tb-redfade">
<div class="row justify-content-center my-5 py-4 tsdwiki-border-tb-redfade">
Line 120: Line 134:
{{NiceMiniTile|Texts/Bodhicaryāvatāra/{{{ sub-theme | }}}|Read {{{ sub-theme | }}} Verses}}
{{NiceMiniTile|Texts/Bodhicaryāvatāra/{{{ sub-theme | }}}|Read {{{ sub-theme | }}} Verses}}
{{#ask:[[Subclass::BCA Chapter Summaries ]][[SubTheme::{{#switch:{{{ sub-theme | }}}
{{#ask:[[Subclass::BCA Chapter Summaries ]][[SubTheme::{{#switch:{{{ sub-theme | }}}
|Chapter 1=Chapter 0
|Chapter 2=Chapter 1
|Chapter 2=Chapter 1
|Chapter 3=Chapter 2
|Chapter 3=Chapter 2
Line 145: Line 160:
|Chapter 8=Chapter 9
|Chapter 8=Chapter 9
|Chapter 9=Chapter 10
|Chapter 9=Chapter 10
|Chapter 10=Chapter 0
}}]]
}}]]
|?SubTheme
|?SubTheme
Line 151: Line 167:
|format=template
|format=template
|template=NextSummaryTile
|template=NextSummaryTile
}}{{#if:{{{ StoriesPage | }}}|
}}{{#arraymap:{{{ StoriesPage | }}}|;|@@@|
{{NiceMiniTile|{{{ StoriesPage | }}}|Traditional Stories on {{{ sub-theme | }}}}}|}}
                      {{NiceMiniTile|{{#explode:@@@|::|0}}|{{#if:{{#explode:@@@|::|1}}|
                      {{#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 | }}}|
<div class="offwhite-bg rounded-xl shadow px-5 py-4 text-article">
<div class="offwhite-bg rounded-xl shadow my-5 px-5 py-4 text-article">
<h3>Additional resources</h3>{{#if:{{{ add-resources-text | }}}|
<h3>Additional resources</h3>{{#if:{{{ add-resources-text | }}}|
Line 173: Line 190:
{{{ add-resources-section | }}} | }}
{{{ add-resources-section | }}} | }}


</div>
</div> | }} | }}
 
 
{{TibetanTileQuery
 
|query=[[BcaTibetanPage::{{SUBPAGENAME}}]]
{{PanelLargerText
|intro=<div class="row filterableContent mt-4 sort-tibetan">
|classes=shadow my-5 mx-0
|styles=background-position: 50% 50%;
|header=
|offset=col-md-3 p-0 order-md-last
|text-cols=col-md-9
|text=
}} | }} | }}{{#if:{{{ tibetan-texts | }}} |
 
{{TibetanTileQueryNoDef
|query=[[{{#arraymap:{{{ tibetan-texts | }}}
|;
|@@@
|Texts/{{#urldecode:{{ucfirst:@@@}} }}
|{{!}}{{!}}
}}]]
|intro=<div class="row filterableContent mt-4">
|outro=</div>
|outro=</div>
|limit={{{ limit | 100 }}}
|limit=1008
|offset={{{ offset | 0 }}}
|default={{#if:{{{ tibetan-texts | }}}  
|default=
|<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 232: Line 241:


{{#if:{{#ask: [[Category:Library Items]][[SubTheme::{{#arraymap:{{{ sub-theme | }}}|;|@@@|@@@|{{!}}{{!}}}}]][[Volumenumber::<1]]OR[[TermTopics::{{{ TermTopics | none }}}]][[Volumenumber::<1]]}}
{{#if:{{#ask: [[Category:Library Items]][[SubTheme::{{#arraymap:{{{ sub-theme | }}}|;|@@@|@@@|{{!}}{{!}}}}]][[Volumenumber::<1]]OR[[TermTopics::{{{ TermTopics | none }}}]][[Volumenumber::<1]]}}
|<h2>Bibliography: All works on this theme</h2>
|<h2>Bibliography: Works on ''{{SUBPAGENAME}}''</h2>
<div class="mx-3 mb-4">{{#widget:filterInput}}</div>
<div class="mx-3 mb-4">{{#widget:filterInput}}</div>
Line 252: 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 264: Line 275:
}}
}}
}}
}}
|Title={{#if: {{{ title | }}}
|Title={{#switch:{{FULLPAGENAME}}
|{{{ title | }}}
|Bodhicaryāvatāra=Bodhicaryāvatāra <br> <small>''The Way of the Bodhisattva''</small>
|{{#if: {{{ sub-theme | }}}
|Śikṣāsamuccaya=Śikṣāsamuccaya <br> <small>''The Compendium of Training''</small>
|{{{ sub-theme | }}}
|#default={{#if: {{{ title | }}}
|{{SUBPAGENAME}}
|{{{ title | }}}
|{{#if: {{{ AltTitle | }}}
|{{{ AltTitle | }}}
|{{#if: {{{ sub-theme | }}}
|{{{ sub-theme | }}}
|{{SUBPAGENAME}}
}}
}}
}}
}}
}}
}}
Line 281: 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