Template:EditorialContent: Difference between revisions

From Bodhicitta
((by SublimeText.Mediawiker))
(Topic facet categories for the site search)
 
(239 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>[[{{#show:{{PAGENAME}}|?Has parent page#}}|<i class="fa-light fa-angle-left"></i> {{#show:{{PAGENAME}}|?Has parent page#}}]] &nbsp;|&nbsp; {{SubThemesList
<div>{{#if: {{{ parent | }}}
|<span class="{{{ parent-classes | }}}">[[{{{ parent | }}}|<i class="fa-light fa-angle-left"></i> {{{ parent | }}}]]</span>
|{{#if:{{#show:{{PAGENAME}}|?Has parent page#}}
|[[{{#show:{{PAGENAME}}|?Has parent page#}}|<i class="fa-light fa-angle-left"></i> {{#show:{{PAGENAME}}|?Has parent page#}}]]
|
}}
}}{{SubThemesList
|{{BASEPAGENAME}}
|{{BASEPAGENAME}}
|{{{ subclass | }}}
|{{{ subclass | }}}
|{{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>]]
|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>]]
|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>]]
|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>]]
|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>]]
|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>]]
|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>
}} }}
</div>
</div>{{#if:{{{ TopContent | }}}|


{{{ TopContent | }}}


{{Jumbo
|}}
|image={{{ jumbo-image | }}}
|imageSource={{{ jumbo-image-source | }}}
|text={{{ jumbo-text | }}}
}} |}}




<div class="row">
<div class="row ssb-content">
<div class="col-md-3 order-md-last">
<div class="ssb {{#switch:{{{ wideSidebar | }}}|true|Yes=col-md-4|#default=col-md-3}} order-md-last sliding-drawer">
<div class="sidebar position-sticky" style="top: 100px;">{{#if: {{{ TopSidebarSection | }}} |
<div class="sidebar ssb__inner mb-5">{{#switch:{{BASEPAGENAME}}
|Discover={{DoorwayReturnTile|Discover}}
|Explore={{DoorwayReturnTile|Explore}}
|Study={{DoorwayReturnTile|Study}}
|Practice={{DoorwayReturnTile|Practice}}
}}{{#if: {{{ TopSidebarSection | }}} |
{{{ TopSidebarSection | }}} | }}
{{{ TopSidebarSection | }}} | }}
<div>{{#if: {{{ TopSidebarContent | }}} |
<div>{{#if: {{{ TopSidebarContent | }}} |
<div class="mb-3">{{{ TopSidebarContent | }}}</div> | }}
<div class="mb-4">{{{ TopSidebarContent | }}}</div> }}{{#ifeq:{{{ subclass | }}}|BCA Chapter Summaries|
<div class="text-center mb-3">{{EditorialContentDisclaimer}}</div>
<div class="mb-4">
<div class="mb-3" style="max-height: 500px; overflow: auto; scrollbar-width: thin;">__TOC__</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}}|}}
</div>| }}{{#switch:{{BASEPAGENAME}}
|བྱང་སེམས་ཆོས་མཛོད།
|Courses=
|#default=<div class="text-center mb-3">{{EditorialContentDisclaimer}}</div>
}}
{{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}}
{{ScrollToTop}}{{#if:{{{ SidebarBottomContent | }}} |
{{{ SidebarBottomContent | }}} | }}
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div class="{{#switch:{{{ wideSidebar | }}}|true|Yes=col-md-8|#default=col-md-9}}">
<div class="text-article">
<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 | }}}


<h2 class="ref-header" style="display:none;">Notes</h2>
<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 65: Line 238:
<div class="row mb-5">
<div class="row mb-5">
{{{ external-resources | }}}
{{{ external-resources | }}}
</div> | }}{{#if: {{#ask:[[Category:Library Items]][[SubTheme::{{#arraymap:{{{ sub-theme | }}}
</div> | }}{{#if:{{{ sub-theme | }}}{{{ TermTopics | }}}|
|;
|@@@
|@@@
|{{!}}{{!}}
}}]]}} | <h2 class="hide-header">Bibliography</h2>


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


</div>
</div>
</div>{{Categories|{{{ extra-cats | }}};{{{ 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}}|?FrontCoverImg}}
|{{#if: {{{ jumbo-image | }}}
|{{#show:{{PAGENAME}}|?FrontCoverImg#}}
|{{{ 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}}
}}
}}
}}
}}
}}
}}
|TileDescription={{#if: {{{ jumbo-text | }}}
|TileDescription={{#if: {{{ jumbo-text | }}}
|{{{ jumbo-text | }}}
|{{{ jumbo-text | }}}
|{{#if: {{#show:{{PAGENAME}}|?TileDescription}}
|{{#if: {{{ TileDescription | }}}
|{{#show:{{PAGENAME}}|?TileDescription}}
|{{{ TileDescription | }}}
|
|{{#if: {{#show:{{PAGENAME}}|?TileDescriptionJumbo}}
|{{#show:{{PAGENAME}}|?TileDescriptionJumbo}}
|
}}
}}
}}
}}
}}
|Description={{{ Description | }}}
|Classification=Editorial Content
|Classification=Editorial Content
|Class=Editorial Content
|Subclass={{{ subclass | }}}|+sep=;
|Subclass={{{ subclass | }}}|+sep=;
|Theme={{{ theme | }}}|+sep=;
|Theme={{{ theme | }}}|+sep=;
Line 126: 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}}
|Discover
|Explore
|Study
|Practice={{BASEPAGENAME}}
}}
}}</includeonly>
}}</includeonly>

Latest revision as of 11:55, 5 October 2026