Template:EditorialContent: Difference between revisions

From Bodhicitta
((by SublimeText.Mediawiker))
(Topic facet categories for the site search)
 
(197 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>__NOTOC____NOEDITSECTION__<!-- {{ReviewTemplate}}{{ReviewTools}} -->
<includeonly>__NOTOC____NOEDITSECTION__<!-- {{ReviewTemplate}}{{ReviewTools}} -->


{{#ifeq:{{{ firstHeading | }}}|none|{{RemoveFirstHeading}}|
{{RemoveFirstHeading
{{RemoveFirstHeading
|AltTitle={{SUBPAGENAME}}
|AltTitle={{#if:{{{ AltTitle | }}}
|{{{ AltTitle | }}}
|{{#ifeq:{{{ subclass | }}}
|བྱང་སེམས་ཆོས་མཛོད།
|<span class="line17">{{{ title | {{SUBPAGENAME}} }}}</span>
|{{{ title | {{SUBPAGENAME}} }}}
}}
}}
|SubTitle={{{ SubTitle | }}}
|SubTitle={{{ SubTitle | }}}
|watermark={{#invoke:GetWatermark|main}}
|watermark={{#ifeq:{{{ subclass | }}}
}}
|བྱང་སེམས་ཆོས་མཛོད།
|<span class="line17">{{#invoke:GetWatermark|main}}</span>
|{{#invoke:GetWatermark|main}}
}}
}} }}
<div class="d-flex justify-content-between">
<div class="d-flex justify-content-between">
<div>{{#if:{{#show:{{PAGENAME}}|?Has parent page#}}
<div>{{#if: {{{ parent | }}}
|[[{{#show:{{PAGENAME}}|?Has parent page#}}|<i class="fa-light fa-angle-left"></i> {{#show:{{PAGENAME}}|?Has parent page#}}]]
|<span class="{{{ parent-classes | }}}">[[{{{ parent | }}}|<i class="fa-light fa-angle-left"></i> {{{ parent | }}}]]</span>
|{{#if: {{{ parent | }}}
|{{#if:{{#show:{{PAGENAME}}|?Has parent page#}}
|[[{{{ parent | }}}|<i class="fa-light fa-angle-left"></i> {{{ parent | }}}]]
|[[{{#show:{{PAGENAME}}|?Has parent page#}}|<i class="fa-light fa-angle-left"></i> {{#show:{{PAGENAME}}|?Has parent page#}}]]
|
|
}}
}}
Line 18: Line 30:
|{{GetSubThemes|{{{ subclass | }}}}}
|{{GetSubThemes|{{{ subclass | }}}}}
}}</div>
}}</div>
</div>{{#if: {{{ jumbo-text | }}} |  
<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>]]
{{VerticalSpacer|4}}
|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 3=[[Explore/Chapter 2 - Confession of Negativity|<i class="fa-sharp-duotone fa-solid fa-caret-left fa-sm"></i> Previous Summary]] {{!}} [[Explore/Chapter 4 - Conscientiousness|Next Summary <i class="fa-sharp-duotone fa-solid fa-caret-right fa-sm"></i>]]
{{Jumbo
|Chapter 4=[[Explore/Chapter 3 - Taking Hold of Bodhicitta|<i class="fa-sharp-duotone fa-solid fa-caret-left fa-sm"></i> Previous Summary]] {{!}} [[Explore/Chapter 5 - Vigilant Introspection|Next Summary <i class="fa-sharp-duotone fa-solid fa-caret-right fa-sm"></i>]]
|image={{{ jumbo-image | }}}
|Chapter 5=[[Explore/Chapter 4 - Conscientiousness|<i class="fa-sharp-duotone fa-solid fa-caret-left fa-sm"></i> Previous Summary]] {{!}} [[Explore/Chapter 6 - Patience|Next Summary <i class="fa-sharp-duotone fa-solid fa-caret-right fa-sm"></i>]]
|fixed-sized-image={{{ fixed-sized-image | }}}
|Chapter 6=[[Explore/Chapter 5 - Vigilant Introspection|<i class="fa-sharp-duotone fa-solid fa-caret-left fa-sm"></i> Previous Summary]] {{!}} [[Explore/Chapter 7 - Diligence|Next Summary <i class="fa-sharp-duotone fa-solid fa-caret-right fa-sm"></i>]]
|imageSource={{{ jumbo-image-source | }}}
|Chapter 7=[[Explore/Chapter 6 - Patience|<i class="fa-sharp-duotone fa-solid fa-caret-left fa-sm"></i> Previous Summary]] {{!}} [[Explore/Chapter 8 - Meditative Concentration|Next Summary <i class="fa-sharp-duotone fa-solid fa-caret-right fa-sm"></i>]]
|text={{{ jumbo-text | }}}
|Chapter 8=[[Explore/Chapter 7 - Diligence|<i class="fa-sharp-duotone fa-solid fa-caret-left fa-sm"></i> Previous Summary]] {{!}} [[Explore/Chapter 9 - Wisdom|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>
{{VerticalSpacer|3}}
}} }}
 
</div>
|}}{{#if:{{{ TopContent | }}}|
</div>{{#if:{{{ TopContent | }}}|


{{{ TopContent | }}}
{{{ TopContent | }}}
Line 38: 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">
<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">{{#if: {{{ TopSidebarSection | }}} |
|Discover={{DoorwayReturnTile|Discover}}
{{{ TopSidebarSection | }}} | }}
|Explore={{DoorwayReturnTile|Explore}}
<div>{{#if: {{{ TopSidebarContent | }}} |
|Study={{DoorwayReturnTile|Study}}
<div class="mb-3">{{{ TopSidebarContent | }}}</div> | }}
|Practice={{DoorwayReturnTile|Practice}}
<div class="text-center mb-3">{{EditorialContentDisclaimer}}</div>
}}{{#if: {{{ TopSidebarSection | }}} |
<div class="mb-3">__TOC__</div>{{#if:{{{ TermTopics | }}}{{{ TextTopics | }}}{{{ PeopleTopics | }}}|
{{{ TopSidebarSection | }}} | }}
<hr class="no-bg my-2 tsdwiki-border-t-redfade text-center">
<div>{{#if: {{{ TopSidebarContent | }}} |
{{SidebarTopics
<div class="mb-4">{{{ TopSidebarContent | }}}</div> }}{{#ifeq:{{{ subclass | }}}|BCA Chapter Summaries|
|terms={{{ TermTopics | }}}
<div class="mb-4">
|texts={{{ TextTopics | }}}
<div class="sidebar-section-heading">More on this</div>
|people={{{ PeopleTopics | }}}
* [[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}}|}}
|drlTopics={{GetItemData|prop=DrlTopics}}
</div>| }}{{#switch:{{BASEPAGENAME}}
}} | }}
|བྱང་སེམས་ཆོས་མཛོད།
</div>
|Courses=
{{ScrollToTop}}{{#if:{{{ SidebarBottomContent | }}} |  
|#default=<div class="text-center mb-3">{{EditorialContentDisclaimer}}</div>
{{{ SidebarBottomContent | }}} | }}
}}
{{SidebarPeople
|authors={{{ EditorialAuthor | }}}
}}
<div class="mb-3">__TOC__</div>{{#if:{{{ TermTopics | }}}{{{ TextTopics | }}}{{{ PeopleTopics | }}}|
<hr class="no-bg my-2 tsdwiki-border-t-redfade text-center">
{{SidebarTopics
|terms={{{ TermTopics | }}}
|texts={{{ TextTopics | }}}
|people={{{ PeopleTopics | }}}
|drlTopics={{GetItemData|prop=DrlTopics}}
}} | }}{{#ifeq:{{BASEPAGENAME}}|བྱང་སེམས་ཆོས་མཛོད།|
<div>{{#Widget:filterInput|placeholder=Filter texts...}}</div>|}}
</div>
</div>
{{ScrollToTop}}{{#if:{{{ SidebarBottomContent | }}} |
{{{ SidebarBottomContent | }}} | }}
</div>
</div>
</div>
</div>
<div class="{{#switch:{{{ wideSidebar | }}}|true|Yes=col-md-8|#default=col-md-9}}">
<div class="{{#switch:{{{ wideSidebar | }}}|true|Yes=col-md-8|#default=col-md-9}}">
<div class="text-article text-break">
<div class="text-article text-break">{{#if: {{{ jumbo-text | }}} |
{{Jumbo
|image={{{ jumbo-image | }}}
|imageposition={{{ jumbo-image-position | 50% 50% }}}
|fixed-sized-image={{{ fixed-sized-image | }}}
|full-width=yes
|imageSource={{{ jumbo-image-source | }}}
|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 | }}}|
<div class="row mx-n2 mt-3 mb-4">
{{JumpToNavButton|check={{{ media | }}}|hash=Media|icon=video|label=Media}}
{{JumpToNavButton|check={{{ featured-books | }}}|hash=Featured books|icon=books|label=Featured books}}
{{JumpToNavButton|check={{{ featured-articles | }}}|hash=Featured articles|icon=newspaper|label=Featured articles}}
{{JumpToNavButton|check={{{ featured-dissertations | }}}|hash=Featured dissertations|icon=book|label=Featured dissertations}}
{{JumpToNavButton|check={{{ featured-texts | }}}|hash=Featured texts|icon=scroll|label=Featured source texts}}
{{JumpToNavButton|check={{{ featured-media | }}}|hash=Featured multimedia|icon=video|label=Featured multimedia}}
{{JumpToNavButton|check={{{ external-resources | }}}|hash=External Resources|icon=globe|label=External Resources}}
</div>


{{VerticalSpacer|2}} | }}
<div class="time-to-read">
{{{ main-text | }}}
{{{ main-text | }}}


<div class="h2 ref-header" style="display:none;">Notes</div>
<h2 class="ref-header mt-5" style="display:none;">Notes</h2>
<references/>
<references/>
</div>
</div>{{#ifeq:{{{ subclass | }}}|BCA Chapter Summaries|
<div class="row justify-content-center my-5 py-4 tsdwiki-border-tb-redfade">
{{HomeTile
|wrapperclasses=col-md-6 col-xl-5 text-90
|image={{PAGENAME:{{{ jumbo-image | }}}}}
|imgHeight=40%
|bgPosition={{{ jumbo-image-position | 50% 50% }}}
|header=More on this chapter
|header-classes=clipped-1-line
|description={{#show:{{{ ExtensiveSummaryPage | }}}|?Description#}}
|text-lines=6
|height=480px
|bottomrightlabel=Detailed Introduction <i class="fa-sharp-duotone fa-solid fa-angles-right fa-sm"></i>
|tilelink={{{ ExtensiveSummaryPage | }}}
}}
<div class="col-md-6 col-xl-5">
{{NiceMiniTile|Texts/Bodhicaryāvatāra/{{{ sub-theme | }}}|Read {{{ sub-theme | }}} Verses}}
{{#ask:[[Subclass::BCA Chapter Summaries ]][[SubTheme::{{#switch:{{{ sub-theme | }}}
|Chapter 1=Chapter 0
|Chapter 2=Chapter 1
|Chapter 3=Chapter 2
|Chapter 4=Chapter 3
|Chapter 5=Chapter 4
|Chapter 6=Chapter 5
|Chapter 7=Chapter 6
|Chapter 8=Chapter 7
|Chapter 9=Chapter 8
|Chapter 10=Chapter 9
}}]]
|?SubTheme
|link=none
|limit=1
|format=template
|template=PrevSummaryTile
}}{{#ask:[[Subclass::BCA Chapter Summaries ]][[SubTheme::{{#switch:{{{ sub-theme | }}}
|Chapter 1=Chapter 2
|Chapter 2=Chapter 3
|Chapter 3=Chapter 4
|Chapter 4=Chapter 5
|Chapter 5=Chapter 6
|Chapter 6=Chapter 7
|Chapter 7=Chapter 8
|Chapter 8=Chapter 9
|Chapter 9=Chapter 10
|Chapter 10=Chapter 0
}}]]
|?SubTheme
|link=none
|limit=1
|format=template
|template=NextSummaryTile
}}{{#arraymap:{{{ StoriesPage | }}}|;|@@@|
                      {{NiceMiniTile|{{#explode:@@@|::|0}}|{{#if:{{#explode:@@@|::|1}}|
                      {{#explode:@@@|::|1}}|{{SUBPAGENAME:{{#explode:@@@|::|0}} }} }} }}|}}
</div>
</div> {{#if:{{{ add-resources-text | }}}{{{ add-resources-tiles | }}}{{{ add-resources-section | }}}|
<div class="offwhite-bg rounded-xl shadow my-5 px-5 py-4 text-article">
<h3>Additional resources</h3>{{#if:{{{ add-resources-text | }}}|
{{{ add-resources-text | }}} | }}{{#if:{{{ add-resources-tiles | }}}|
<div class="row my-4">{{TileQueryNoDef
|query=[[{{#arraymap:{{{ add-resources-tiles | }}}
|;
|@@@
|@@@
|{{!}}{{!}}
}}]]
}}</div> | }}{{#if:{{{ add-resources-section | }}}|
{{{ add-resources-section | }}} | }}
 
</div> | }} | }}
{{TibetanTileQuery
|query=[[BcaTibetanPage::{{SUBPAGENAME}}]]
|intro=<div class="row filterableContent mt-4 sort-tibetan">
|outro=</div>
|limit=1008
|default={{#if:{{{ tibetan-texts | }}}
|<div class="row filterableContent mt-4">{{TibetanTileQuery
|query=[[{{#arraymap:{{{ tibetan-texts | }}}
|;
|@@@
|Texts/{{#urldecode:{{ucfirst:@@@}} }}
|{{!}}{{!}}
}}]]
|limit=1008
}}</div>
|
}}
|searchlabel=
}}
</div>{{#if:{{{ media | }}}|
 
<h2>Media</h2>
<div class="pt-3">
{{{ media | }}}
</div> | }}{{#if:{{{ featured-books | }}}|
 
<h2>Featured books</h2>
{{FeatureItems|items={{{ featured-books | }}}}}|}}{{#if:{{{ featured-articles | }}}|
 
<h2>Featured articles</h2>
{{FeatureItems|items={{{ featured-articles | }}}}}|}}{{#if:{{{ featured-dissertations | }}}|
 
<h2>Featured dissertations</h2>
{{FeatureItems|items={{{ featured-dissertations | }}}}}|}}{{#if:{{{ featured-texts | }}}|


<h2>Featured texts</h2>
{{FeatureTexts|items={{{ featured-texts | }}}}}|}}{{#if:{{{ featured-media | }}}|


{{FeatureItems
<h2>Featured media</h2>
|items={{{ featured-books | }}}
{{FeatureItems|items={{{ featured-media | }}}}}|}}{{#if:{{{ external-resources | }}}|
|header=Featured books
}}{{FeatureItems
|items={{{ featured-articles | }}}
|header=Featured articles
}}{{FeatureItems
|items={{{ featured-dissertations | }}}
|header=Featured dissertations
}}{{FeatureItems
|items={{{ featured-texts | }}}
|header=Featured source texts
}}{{FeatureItems
|items={{{ featured-media | }}}
|header=Featured multimedia
}}{{#if:{{{ external-resources | }}}|


<h2> External Resources </h2>
<h2> External Resources </h2>
Line 91: Line 238:
<div class="row mb-5">
<div class="row mb-5">
{{{ external-resources | }}}
{{{ external-resources | }}}
</div> | }}{{#if:{{{ sub-theme | }}}|
</div> | }}{{#if:{{{ sub-theme | }}}{{{ TermTopics | }}}|


{{TileQuery
{{#if:{{#ask: [[Category:Library Items]][[SubTheme::{{#arraymap:{{{ sub-theme | }}}|;|@@@|@@@|{{!}}{{!}}}}]][[Volumenumber::<1]]OR[[TermTopics::{{{ TermTopics | none }}}]][[Volumenumber::<1]]}}
|query=[[Category:Multimedia]][[TermTopics::{{{ sub-theme | }}}]][[Volumenumber::<1]]
|<h2>Bibliography: Works on ''{{SUBPAGENAME}}''</h2>
|limit=3
<div class="mx-3 mb-4">{{#widget:filterInput}}</div>
|intro=<h2>Multimedia</h2><div class="row">
|outro=</div>
}}
 
<h2>Bibliography: All works on this theme</h2>
 
<div class="mx-3">{{#widget:filterInput}}</div>
<ol class="text-article filterableContent my-4 ml-4">
{{#ask: [[Category:Library Items]][[SubTheme::{{#arraymap:{{{ sub-theme | }}}|;|@@@|@@@|{{!}}{{!}}}}]][[Volumenumber::<1]]
{{#ask: [[Category:Library Items]][[SubTheme::{{#arraymap:{{{ sub-theme | }}}|;|@@@|@@@|{{!}}{{!}}}}]][[Volumenumber::<1]]
OR[[TermTopics::{{{ sub-theme | }}}]][[Volumenumber::<1]]
OR[[TermTopics::{{{ TermTopics | none }}}]][[Volumenumber::<1]]
|?Class
|?Class
|?Citation
|?Citation
|?TileDescription
|format=template
|format=template
|template=ListCitations
|template=ListCitations
|limit=1000
|limit=1000
|link=none
|link=none
|intro=<ol class="text-article filterableContent mb-4 ml-3">
|outro=</ol>
|@deferred
}}
}}
</ol> | }}
|
}} | }}


</div>
</div>
</div>{{Categories|{{{ ExtraCats | }}};{{{ subclass | }}};Editorial Content}}{{#set:
</div>{{Categories|{{{ EditorialAuthor | }}};{{{ ExtraCats | }}};{{{ subclass | }}};{{{ theme | }}};{{{sub-theme|}}};Editorial Content}}<!--
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 | }}}
|{{#if: {{#show:{{PAGENAME}}|?FrontCoverImgJumbo}}
|{{#if: {{{ jumbo-image | }}}
|{{#show:{{PAGENAME}}|?FrontCoverImgJumbo#}}
|{{{ jumbo-image | }}}
|
|{{#if: {{#show:{{PAGENAME}}|?FrontCoverImgJumbo}}
|{{#show:{{PAGENAME}}|?FrontCoverImgJumbo#}}
|
}}
}}
}}
}}
}}
|Title={{#if: {{{ sub-theme | }}}
|Title={{#switch:{{FULLPAGENAME}}
|{{{ sub-theme | }}}
|Bodhicaryāvatāra=Bodhicaryāvatāra <br> <small>''The Way of the Bodhisattva''</small>
|{{#if: {{#show:{{PAGENAME}}|?Title}}
|Śikṣāsamuccaya=Śikṣāsamuccaya <br> <small>''The Compendium of Training''</small>
|{{#show:{{PAGENAME}}|?Title}}
|#default={{#if: {{{ title | }}}
|
|{{{ title | }}}
|{{#if: {{{ AltTitle | }}}
|{{{ AltTitle | }}}
|{{#if: {{{ sub-theme | }}}
|{{{ sub-theme | }}}
|{{SUBPAGENAME}}
}}
}}
}}
}}
}}
}}
Line 141: Line 299:
}}
}}
}}
}}
|Description={{{ Description | }}}
|Classification=Editorial Content
|Classification=Editorial Content
|Class=Editorial Content
|Class=Editorial Content
Line 149: Line 308:
|TextTopics={{{ TextTopics | }}}|+sep=;
|TextTopics={{{ TextTopics | }}}|+sep=;
|PeopleTopics={{{ PeopleTopics | }}}|+sep=;
|PeopleTopics={{{ PeopleTopics | }}}|+sep=;
|AllTopics={{#arraymap:{{{ subclass | }}};{{{ TermTopics | }}};{{{ sub-theme | }}};{{{ theme | }}};{{{ TextTopics | }}};{{{ PeopleTopics | }}}
|;
|@@@
|@@@
|;
}}|+sep=;
|ParentDoorway={{#switch:{{BASEPAGENAME}}
|ParentDoorway={{#switch:{{BASEPAGENAME}}
|Discover
|Discover

Latest revision as of 11:55, 5 October 2026