Difference between revisions of "Template:TextSubpage"

From Buddha-Nature
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
 
(41 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>{{RootTitleArea}}
 
<includeonly>{{RootTitleArea}}
<div class="read-versions text-right" style="margin-top: -15px;">
+
<div class="read-versions text-right mt-1">
[[{{#titleparts: {{FULLPAGENAME}} | -1 }}|<i class="fas fa-caret-left"></i> Back to text page]]&nbsp;·&nbsp;&nbsp;&nbsp;Switch to: {{#ifexist: {{#titleparts: {{FULLPAGENAME}} | -1 }}/English |
+
[[{{#titleparts: {{FULLPAGENAME}} | -1 }}|<i class="fas fa-caret-left"></i> Back to text page]]&nbsp;·&nbsp;&nbsp;&nbsp;Switch to: {{#ifexist: {{#titleparts: {{FULLPAGENAME}} | -1 }}/Root Verses |
[[{{#titleparts: {{FULLPAGENAME}} | -1 }}/English|English]] | }}{{#ifexist: {{#titleparts: {{FULLPAGENAME}} | -1 }}/Sanskrit |
+
[[{{#titleparts: {{FULLPAGENAME}} | -1 }}/Root Verses|Root Verses]] | }}{{#ifexist: {{#titleparts: {{FULLPAGENAME}} | -1 }}/English |
[[{{#titleparts: {{FULLPAGENAME}} | -1 }}/Sanskrit|Sanskrit]] | }}{{#ifexist: {{#titleparts: {{FULLPAGENAME}} | -1 }}/Tibetan |
+
[[{{#titleparts: {{FULLPAGENAME}} | -1 }}/English|English]] | }}{{#ifexist: {{#titleparts: {{FULLPAGENAME}} | -1 }}/French |
[[{{#titleparts: {{FULLPAGENAME}} | -1 }}/Tibetan|Tibetan]] | }}{{#ifexist: {{#titleparts: {{FULLPAGENAME}} | -1 }}/Chinese |
+
[[{{#titleparts: {{FULLPAGENAME}} | -1 }}/French|French]] | }}{{#ifexist: {{#titleparts: {{FULLPAGENAME}} | -1 }}/Sanskrit |
[[{{#titleparts: {{FULLPAGENAME}} | -1 }}/Chinese|Chinese]] | }}{{#ifexist: {{#titleparts: {{FULLPAGENAME}} | -1 }}/Pali |
+
[[{{#titleparts: {{FULLPAGENAME}} | -1 }}/Sanskrit|Sanskrit]] | }}{{#ifexist: {{#titleparts: {{FULLPAGENAME}} | -1 }}/Sanskrit_Romanized |
[[{{#titleparts: {{FULLPAGENAME}} | -1 }}/Pali|Pali]] | }}
+
[[{{#titleparts: {{FULLPAGENAME}} | -1 }}/Sanskrit_Romanized|Skt. Romanized]] | }}{{#ifexist: {{#titleparts: {{FULLPAGENAME}} | -1 }}/Tibetan |
 +
[[{{#titleparts: {{FULLPAGENAME}} | -1 }}/Tibetan|Tibetan]] | }}{{#ifexist: {{#titleparts: {{FULLPAGENAME}} | -1 }}/Chinese |
 +
[[{{#titleparts: {{FULLPAGENAME}} | -1 }}/Chinese|Chinese]] | }}{{#ifexist: {{#titleparts: {{FULLPAGENAME}} | -1 }}/Pali |
 +
[[{{#titleparts: {{FULLPAGENAME}} | -1 }}/Pali|Pali]] | }}
 
</div>
 
</div>
  
  
<div class="row mt-3">
+
<div class="row mt-3 sticky-container">
<div class="col-lg-9">
+
<div class="col-lg-9">{{#if: {{{ textSubIntro | }}} |
 +
 
 +
<div class="bnw-jumbotron depth-1 mr-4 mb-5">{{{ textSubIntro | }}}</div> | }}
 +
 
 +
<div class="text-sub-content depth-1 mr-4" {{#ifeq: {{{ textSubLanguage | }}} | Tibetan | style="line-height: 1.7;" | }}>
  
 
{{{ textSubContent | }}}
 
{{{ textSubContent | }}}
 +
 +
</div>
 +
 +
{{References}}
  
 
</div>
 
</div>
<div class="right-side-bar noprint col-lg-3 mt-0 p-0 mb-2">
+
<div class="right-side-bar noprint col-lg-3 mt-0 p-0 mb-2 sticky-sidemenu" id="sticky-sidemenu">
<div id="sticky-sidemenu">
+
<div class="sticky-sidemenu-inner p-0 text-sub-sidebar" id="sticky-sidemenu-inner">
<div id="sticky-sidemenu-inner" class="text-sub-sidebar">
+
+
<div class="text-sub-data mb-0">
<div class="text-sub-data mb-0">
 
  
{| class="table th-right table-hover m-0" {{#if: {{{ textSubLanguage | }}} | <br>
+
{| class="table th-right table-hover m-0" {{#if: {{{ textSubLanguage | }}} | <br>
{{!}}-
+
{{!}}-
! Language
+
! class="nowrap" {{!}} Language
{{!}} {{{ textSubLanguage | }}} | }}{{#if: {{{ textSubCollection | }}} | <br>
+
{{!}} {{{ textSubLanguage | }}} | }}{{#if: {{{ textSubCollection | }}} | <br>
{{!}}-
+
{{!}}-
! Collection title
+
! class="nowrap" {{!}} Collection
{{!}} {{{ textSubCollection | }}} | }}{{#if: {{{ textSubNumber | }}} | <br>
+
{{!}} {{{ textSubCollection | }}} | }}{{#if: {{{ textSubNumber | }}} | <br>
{{!}}-
+
{{!}}-
! Text Number
+
! class="nowrap" {{!}} Text Number
{{!}} {{{ textSubNumber | }}} | }}{{#if: {{{ textSubVolume | }}} | <br>
+
{{!}} {{{ textSubNumber | }}} | }}{{#if: {{{ textSubVolume | }}} | <br>
{{!}}-
+
{{!}}-
! Volume number
+
! class="nowrap" {{!}} Volume number
{{!}} {{{ textSubVolume | }}} | }}{{#if: {{{ textSubVolumeScript | }}} | <br>
+
{{!}} {{{ textSubVolume | }}} | }}{{#if: {{{ textSubVolumeScript | }}} | <br>
{{!}}-
+
{{!}}-
! Volume name
+
! class="nowrap" {{!}} Volume name
{{!}} {{{ textSubVolumeScript | }}} | }}{{#if: {{{ textSubPages | }}} | <br>
+
{{!}} {{{ textSubVolumeScript | }}} | }}{{#if: {{{ textSubPages | }}} | <br>
{{!}}-
+
{{!}}-
! Page numbers
+
! class="nowrap" {{!}} Page numbers
{{!}} {{{ textSubPages | }}} | }}{{#if: {{{ textSubMessage | }}} | <br>
+
{{!}} {{{ textSubPages | }}} | }}{{#if: {{{ textSubMessage | }}} | <br>
{{!}}-
+
{{!}}-
! Notes
+
! class="nowrap" {{!}} Notes
{{!}} colspan="3" {{!}} {{{ textSubMessage | }}} | }}{{#if: {{{ textSubSourcelink | }}} | <br>
+
{{!}} colspan="3" {{!}}  
{{!}}-
+
{{{ textSubMessage | }}} | }}{{#if: {{{ textSubSourcelink | }}} | <br>
! Source link
+
{{!}}-
{{!}} colspan="3" {{!}} {{#show:{{#titleparts: {{PAGENAME}} | -1 }}|?{{{ textSubSourcelink | }}}}} | }}
+
! class="nowrap" {{!}} Source link
|}
+
{{!}} colspan="3" {{!}} Go to source: {{#show:{{#titleparts: {{PAGENAME}} | -1 }}|?{{{ textSubSourcelink | }}}}} | }}
 +
|}
  
{{#show:{{#titleparts: {{PAGENAME}} | -1 }}|?{{{ textSubSourcelink | }}}}}
+
</div>
 
 
</div>
 
  
__TOC__
+
__TOC__
  
{{#widget:ScrollToTop}}
 
  
 +
<div class="scrollToTop d-lg-block">
 +
<div id="scrollToTop">
 +
<i class="fas fa-angle-up fa-2x"></i>
 +
<p style="margin-top: -7px;">to top</p>
 +
</div>
 
</div>
 
</div>
 
</div>
 
</div>
 
</div>
 
</div>
 
</div>{{#set:
 
</div>{{#set:
textSubLanguage={{{ textSubLanguage | }}}
+
textSubIntro={{{ textSubIntro | }}}
 +
|textSubLanguage={{{ textSubLanguage | }}}
 
|textSubCollection={{{ textSubCollection | }}}
 
|textSubCollection={{{ textSubCollection | }}}
 
|textSubVolume={{{ textSubVolume | }}}
 
|textSubVolume={{{ textSubVolume | }}}
Line 68: Line 82:
 
|textSubMessage={{{ textSubMessage | }}}
 
|textSubMessage={{{ textSubMessage | }}}
 
|textSubNumber={{{ textSubNumber | }}}
 
|textSubNumber={{{ textSubNumber | }}}
|textSubSourcelink={{#show:{{#titleparts: {{PAGENAME}} | -1 }}|?{{{ textSubSourcelink | }}}#}}
+
|textSubSourcelink={{#if:{{{ textSubSourcelink | }}}|{{#show:{{#titleparts: {{PAGENAME}} | -1 }}|?{{{ textSubSourcelink | }}}#}}|}}
 +
|Has parent page={{BASEPAGENAME}}
 
}}[[Category: Source Text Subpages]]
 
}}[[Category: Source Text Subpages]]
 
</includeonly><noinclude>{{TemplateTag}}</noinclude>
 
</includeonly><noinclude>{{TemplateTag}}</noinclude>

Latest revision as of 17:04, 10 November 2022