Template:Book: Difference between revisions

From Buddha-Nature
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
Line 1: Line 1:
<includeonly>{{DEFAULTSORT:{{SUBPAGENAME}}}}{{#ifsysop: {{#switch: {{{ PostStatus | }}}
<includeonly>{{HideFirstHeading}}{{DEFAULTSORT:{{SUBPAGENAME}}}}{{#ifsysop: {{#switch: {{{ PostStatus | }}}
|Needs Copy Editing={{#widget:BootstrapAlert|color=danger|title=Needs Copy Editing|text=This page needs copywriting work to be done. This page was last updated on {{REVISIONMONTH}}-{{REVISIONDAY2}}-{{REVISIONYEAR}}, by {{REVISIONUSER}} }}
|Needs Copy Editing={{#widget:BootstrapAlert|color=danger|title=Needs Copy Editing|text=This page needs copywriting work to be done. This page was last updated on {{REVISIONMONTH}}-{{REVISIONDAY2}}-{{REVISIONYEAR}}, by {{REVISIONUSER}} }}
|Needs Final Review={{#widget:BootstrapAlert|color=info|title=This page needs a FINAL REVIEW|text=This page was last updated on {{REVISIONMONTH}}-{{REVISIONDAY2}}-{{REVISIONYEAR}}, by {{REVISIONUSER}} }}
|Needs Final Review={{#widget:BootstrapAlert|color=info|title=This page needs a FINAL REVIEW|text=This page was last updated on {{REVISIONMONTH}}-{{REVISIONDAY2}}-{{REVISIONYEAR}}, by {{REVISIONUSER}} }}
Line 9: Line 9:
}}  
}}  
|  
|  
}} | }}{{DISPLAYTITLE:{{GetBookValue|BuNayTitle}}}}
}} | }}
<div class="bnw-book-page">
 
{{TopSysopLinks|research|Book}}<!--{{TopLevelModule|{{GetBookValue|BuNayGrade}}}}--><noglossary>
 
<div class="h1 d-flex justify-content-between align-items-end mb-1 mx-0">
{{TopSysopLinks|research|Book}}<!--{{TopLevelModule|{{GetBookValue|BuNayGrade}}}}--><noglossary>
<div>{{GetBookValue|BuNayTitle}} {{#if: {{{ TextTranslated | }}}  
<div class="h1 d-flex justify-content-between align-items-end mb-1 mx-0">
|<div class="font-italic my-1" style="font-size: .4em;">Translation of {{#arraymap: {{{ TextTranslated | }}}
<div>{{GetBookValue|BuNayTitle}} {{#if: {{{ TextTranslated | }}}  
|;
|<div class="font-italic my-1" style="font-size: .4em;">Translation of {{#arraymap: {{{ TextTranslated | }}}
|@@@
|;
|[[@@@|{{#if:{{#show:@@@|?fulltitletrans}}|{{#show:@@@|?fulltitletrans}}|{{SUBPAGENAME:@@@}}}}]]
|@@@
|,&nbsp;
|[[@@@|{{#if:{{#show:@@@|?fulltitletrans}}|{{#show:@@@|?fulltitletrans}}|{{SUBPAGENAME:@@@}}}}]]
}}
|,&nbsp;
</div>
}}
|  
</div>
}}
|  
</div>
}}
<div class="d-none d-md-block">
</div>
<div class="bnw-text-watermark" style="white-space: nowrap;">{{#switch:{{GetBookValue|BuNayPageType}}
<div class="d-none d-md-block">
|Dissertation={{#switch:{{GetBookValue|subclass}}
<div class="bnw-text-watermark" style="white-space: nowrap;">{{#switch:{{GetBookValue|BuNayPageType}}
|PhD diss.=Dissertation
|Dissertation={{#switch:{{GetBookValue|subclass}}
|MA Theses=Thesis
|PhD diss.=Dissertation
}}
|MA Theses=Thesis
|Book={{#switch:{{GetBookValue|subclass}}
}}
|Journal Issues=Journal Issue
|Book={{#switch:{{GetBookValue|subclass}}
|{{GetBookValue|BuNayPageType}}
|Journal Issues=Journal Issue
}}
|{{GetBookValue|BuNayPageType}}
|{{GetBookValue|BuNayPageType}}
}}
}}
</div>
</div>
</div></noglossary>
<div class="d-md-none bnw-text-watermark float-left" style="white-space: nowrap;">{{#switch:{{GetBookValue|BuNayPageType}}
|Dissertation={{#switch:{{GetBookValue|subclass}}
|PhD diss.=Dissertation
|MA Theses=Thesis
|Thesis
}}
|Book={{#switch:{{GetBookValue|subclass}}
|Journal Issues=Journal Issue
|{{GetBookValue|BuNayPageType}}
|{{GetBookValue|BuNayPageType}}
}}
}}
</div>
</div>
</div></noglossary>
<div class="d-md-none bnw-text-watermark float-left" style="white-space: nowrap;">{{#switch:{{GetBookValue|BuNayPageType}}
|Dissertation={{#switch:{{GetBookValue|subclass}}
|PhD diss.=Dissertation
|MA Theses=Thesis
|Thesis
}}
|Book={{#switch:{{GetBookValue|subclass}}
|Journal Issues=Journal Issue
|{{GetBookValue|BuNayPageType}}
|{{GetBookValue|BuNayPageType}}
}}
}}
</div>
|{{GetBookValue|BuNayPageType}}
{{GooglePdfSearch
}}
|{{#switch:{{GetBookValue|BuNayPageType}}
</div>
|Book={{FirstValueOfArray|{{GetBookValue|authorlibwiki}}|;}}
{{GooglePdfSearch
|Article={{{AuthorName|}}}
|{{#switch:{{GetBookValue|BuNayPageType}}
}}
|Book={{FirstValueOfArray|{{GetBookValue|authorlibwiki}}|;}}
|Article={{{AuthorName|}}}
}}
}}
}}


<div class="row sticky-container">
<div class="row sticky-container">
<div class="col-lg-9 mb-3 mb-sm-0 p-0">
<div class="col-lg-9 mb-3 mb-sm-0 p-0">
<div class="bnw-panel rounded depth-2 p-4 p-lg-5 mr-lg-4">
<div class="bnw-panel rounded depth-2 p-4 p-lg-5 mr-lg-4">
<div class="row">{{#if: {{GetBookValue|frontcoverimg}} |
<div class="row">{{#if: {{GetBookValue|frontcoverimg}} |
<div class="col-md-3 book-cover-img mb-4">{{#widget:FancyboxImg
<div class="col-md-3 book-cover-img mb-4">{{#widget:FancyboxImg
|src={{filepath:{{#titleparts:{{PAGENAME:{{GetBookValue|frontcoverimg}}}}}}}}
|src={{filepath:{{#titleparts:{{PAGENAME:{{GetBookValue|frontcoverimg}}}}}}}}
|src_reduced={{filepath:{{#titleparts:{{PAGENAME:{{GetBookValue|frontcoverimg}}}}}}|400}}
|src_reduced={{filepath:{{#titleparts:{{PAGENAME:{{GetBookValue|frontcoverimg}}}}}}|400}}
|class=depth-1 mt-2 mb-3
|class=depth-1 mt-2 mb-3
|caption={{GetBookValue|citation}}
|caption={{GetBookValue|citation}}
}}{{#if: {{GetBookValue|onlineeditionlink}}{{GetBookValue|Onlineeditionlinkraw}}{{GetBookValue|TsadraEpubLink}} |
}}{{#if: {{GetBookValue|onlineeditionlink}}{{GetBookValue|Onlineeditionlinkraw}}{{GetBookValue|TsadraEpubLink}} |
<div class="plainlinks read-now-link text-center nowrap">
<div class="plainlinks read-now-link text-center nowrap">
[{{#if: {{GetBookValue|TsadraEpubLink}}
[{{#if: {{GetBookValue|TsadraEpubLink}}
| {{GetBookValue|TsadraEpubLink}}
| {{GetBookValue|TsadraEpubLink}}
| {{#if: {{GetBookValue|Onlineeditionlinkraw}}  
| {{#if: {{GetBookValue|Onlineeditionlinkraw}}  
| {{GetBookValue|Onlineeditionlinkraw}}  
| {{GetBookValue|Onlineeditionlinkraw}}  
| {{GetBookValue|onlineeditionlink}}
| {{GetBookValue|onlineeditionlink}}
}}
}}
}} <i class="fad fa-book-open"></i> Read Online <i class="fad fa-external-link-alt fa-xs"></i>]
}} <i class="fad fa-book-open"></i> Read Online <i class="fad fa-external-link-alt fa-xs"></i>]
</div> | }}
</div> | }}
</div> | }}
<div class="{{#if: {{GetBookValue|frontcoverimg}} | col-md-9 | col-12 }}">
{{#urldecode:{{GetBookValue|EncodedDescription}}}}{{#ifeq: {{{ FullTextRead | }}} | Yes |
<div class="read-now-link">
[[{{{ FullTextLink | }}}|<i class="fas fa-book-open"></i> {{{ FullTextLinkLabel | }}} <i class="fas fa-angle-right"></i>]]
</div> | }}{{#if: {{{ PdfQRcode | }}} |
<div class="text-center mt-4">[[{{{ PdfQRcode | }}}|150px|class=border depth-1|link={{{ PdfQRcodeLink | }}}]]
<div class="text-80 mt-2">Scan to download PDF</div>
</div> | }}
</div> | }}
<div class="{{#if: {{GetBookValue|frontcoverimg}} | col-md-9 | col-12 }}">
</div>
{{#urldecode:{{GetBookValue|EncodedDescription}}}}{{#ifeq: {{{ FullTextRead | }}} | Yes |
</div>{{#if: {{{ VideoId | {{{ VideoService | }}} }}} |
<div class="read-now-link">
[[{{{ FullTextLink | }}}|<i class="fas fa-book-open"></i> {{{ FullTextLinkLabel | }}} <i class="fas fa-angle-right"></i>]]
</div> | }}{{#if: {{{ PdfQRcode | }}} |
<div class="text-center mt-4">[[{{{ PdfQRcode | }}}|150px|class=border depth-1|link={{{ PdfQRcodeLink | }}}]]
<div class="text-80 mt-2">Scan to download PDF</div>
</div> | }}
</div>
</div>{{#if: {{{ VideoId | {{{ VideoService | }}} }}} |


<hr class="my-4 my-lg-5">
<hr class="my-4 my-lg-5">


<center>{{#ev: {{{ VideoService | }}} | {{{ VideoId | }}} }}</center>| }}
<center>{{#ev: {{{ VideoService | }}} | {{{ VideoId | }}} }}</center>| }}


{| class="table bnw-book-citation mt-4 mb-0"
{| class="table bnw-book-citation mt-4 mb-0"
Line 102: Line 103:
|
|
|}
|}
<div class="d-flex justify-content-center flex-wrap">{{#if: {{{ SubPages | }}} |
<div class="d-flex justify-content-center flex-wrap">{{#if: {{{ SubPages | }}} |
{{{ SubPages | }}} |
{{{ SubPages | }}} |
{{#ask: [[Category:Book Excerpts]][[Category:{{SUBPAGENAME}}||{{PAGENAME}}]]
{{#ask: [[Category:Book Excerpts]][[Category:{{SUBPAGENAME}}||{{PAGENAME}}]]
|?ExcerptImage
|?ExcerptImage
|format=template  
|format=template  
|template=BookExcerptsList  
|template=BookExcerptsList  
|link=none  
|link=none  
}}
}}
}}
</div>
}}
{{#widget:BookNavTabs
</div>
|essayTab={{#if: {{{ BookEssay | }}} | d-block | d-none }}
{{#widget:BookNavTabs
|sourcesTab={{#if: {{GetBookValue|citationofsourcetexts}} | d-block | d-none }}
|essayTab={{#if: {{{ BookEssay | }}} | d-block | d-none }}
|quoteTab={{#if: {{{ QuotesTabContent | }}} | d-block | d-none }}
|sourcesTab={{#if: {{GetBookValue|citationofsourcetexts}} | d-block | d-none }}
}}
|quoteTab={{#if: {{{ QuotesTabContent | }}} | d-block | d-none }}
<div class="tab-content" id="nav-tabContent">
}}
  <div class="tab-pane fade book-toc show active first-ul-no-left-margin" id="nav-toc" role="tabpanel" aria-labelledby="nav-toc-tab"><noglossary>
<div class="tab-content" id="nav-tabContent">
  <div class="tab-pane fade book-toc show active first-ul-no-left-margin" id="nav-toc" role="tabpanel" aria-labelledby="nav-toc-tab"><noglossary>
{{{ BookToc | }}}</noglossary></div>
{{{ BookToc | }}}</noglossary></div>
  <div class="tab-pane fade drop-cap" id="nav-about" role="tabpanel" aria-labelledby="nav-about-tab">
  <div class="tab-pane fade drop-cap" id="nav-about" role="tabpanel" aria-labelledby="nav-about-tab">
  {{{ BookEssay | }}}</div>
  {{{ BookEssay | }}}</div>
  <div class="tab-pane fade disabled-red-links" id="nav-translated" role="tabpanel" aria-labelledby="nav-translated-tab">{{GetBookValue|citationofsourcetexts}}</div><!--{{#ifeq: {{{ AddRelatedTab | }}} | Yes |  
  <div class="tab-pane fade disabled-red-links" id="nav-translated" role="tabpanel" aria-labelledby="nav-translated-tab">{{GetBookValue|citationofsourcetexts}}</div><!--{{#ifeq: {{{ AddRelatedTab | }}} | Yes |  
  <div class="tab-pane fade" id="nav-related" role="tabpanel" aria-labelledby="nav-related-tab"></div> | }}-->{{#if: {{{ QuotesTabContent | }}} |
  <div class="tab-pane fade" id="nav-related" role="tabpanel" aria-labelledby="nav-related-tab"></div> | }}-->{{#if: {{{ QuotesTabContent | }}} |
  <div class="tab-pane fade" id="nav-quotes" role="tabpanel" aria-labelledby="nav-quotes-tab">{{{ QuotesTabContent | }}}</div> | }}
  <div class="tab-pane fade" id="nav-quotes" role="tabpanel" aria-labelledby="nav-quotes-tab">{{{ QuotesTabContent | }}}</div> | }}
</div>
</div>
</div>
</div>


</div>
{{StickySideBar
|columns=3
|BuNayPageType={{GetBookValue|BuNayPageType}}
|BookPerson={{{ BookPerson | }}}
|authorlibwiki={{GetBookValue|authorlibwiki}}
|translatorlibwiki={{GetBookValue|translatorlibwiki}}
|DrlContributors={{GetBookValue|contributorslibwiki}}
|topics={{GetBookValue|BuNayTopicTags}}
|TsadraItem={{GetBookValue|tsadraitem}}
|TsadraLogoLink=Category:Tsadra Foundation Series
|DrlPublisher={{GetBookValue|DrlPublisher}}
|PublisherLink={{GetBookValue|publisherlink}}
|PublisherLogo={{{ PublisherLogo | }}}
|RelatedContent=
{{SidebarTopicsList
|topics={{GetBookValue|BuNayTopicTags}}
}}
}}
</div>
</div>
{{StickySideBar
|columns=3
|BuNayPageType={{GetBookValue|BuNayPageType}}
|BookPerson={{{ BookPerson | }}}
|authorlibwiki={{GetBookValue|authorlibwiki}}
|translatorlibwiki={{GetBookValue|translatorlibwiki}}
|DrlContributors={{GetBookValue|contributorslibwiki}}
|topics={{GetBookValue|BuNayTopicTags}}
|TsadraItem={{GetBookValue|tsadraitem}}
|TsadraLogoLink=Category:Tsadra Foundation Series
|DrlPublisher={{GetBookValue|DrlPublisher}}
|PublisherLink={{GetBookValue|publisherlink}}
|PublisherLogo={{{ PublisherLogo | }}}
|RelatedContent=
{{SidebarTopicsList
|topics={{GetBookValue|BuNayTopicTags}}
}}
}}
</div>{{#ifeq: {{{ StopPersonRedirects | }}}
</div>{{#ifeq: {{{ StopPersonRedirects | }}}
| Yes
| Yes

Revision as of 17:56, 16 January 2025