Difference between revisions of "Template:Book"
From Buddha-Nature
((by SublimeText.Mediawiker)) |
((by SublimeText.Mediawiker)) |
||
(523 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{ | + | <includeonly>{{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 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}} }} | |
− | + | }}{{#if: {{GetBookValue|BuNayNotes}} | |
− | + | | {{#widget:BootstrapAlert | |
− | + | |color=warning | |
− | | | + | |title=Buddha-nature Notes |
− | + | |text={{GetBookValue|BuNayNotes}} | |
− | | | + | }} |
− | | | + | | |
− | | | + | }} | }}{{DISPLAYTITLE:{{GetBookValue|BuNayTitle}}}} |
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | |||
− | | | ||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
<div class="bnw-book-page"> | <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"> | |
− | < | + | <div>{{GetBookValue|BuNayTitle}} {{#if: {{{ TextTranslated | }}} |
− | + | |<div class="font-italic my-1" style="font-size: .4em;">Translation of {{#arraymap: {{{ TextTranslated | }}} | |
− | + | |; | |
− | <div class=" | + | |@@@ |
− | + | |[[@@@|{{#if:{{#show:@@@|?fulltitletrans}}|{{#show:@@@|?fulltitletrans}}|{{SUBPAGENAME:@@@}}}}]] | |
− | + | |, | |
− | + | }} | |
− | <div class=" | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</div> | </div> | ||
+ | | | ||
+ | }} | ||
+ | </div> | ||
+ | <div class="d-none d-md-block"> | ||
+ | <div class="bnw-text-watermark" style="white-space: nowrap;">{{#switch:{{GetBookValue|BuNayPageType}} | ||
+ | |Dissertation={{#switch:{{GetBookValue|subclass}} | ||
+ | |PhD diss.=Dissertation | ||
+ | |MA Theses=Thesis | ||
+ | }} | ||
+ | |Book={{#switch:{{GetBookValue|subclass}} | ||
+ | |Journal Issues=Journal Issue | ||
+ | |{{GetBookValue|BuNayPageType}} | ||
+ | }} | ||
+ | |{{GetBookValue|BuNayPageType}} | ||
+ | }} | ||
</div> | </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> | ||
+ | {{GooglePdfSearch | ||
+ | |{{#switch:{{GetBookValue|BuNayPageType}} | ||
+ | |Book={{FirstValueOfArray|{{GetBookValue|authorlibwiki}}|;}} | ||
+ | |Article={{{AuthorName|}}} | ||
+ | }} | ||
+ | }} | ||
+ | <div class="row sticky-container"> | ||
+ | <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="row">{{#if: {{GetBookValue|frontcoverimg}} | | ||
+ | <div class="col-md-3 book-cover-img mb-4">{{#widget:FancyboxImg | ||
+ | |src={{filepath:{{#titleparts:{{PAGENAME:{{GetBookValue|frontcoverimg}}}}}}}} | ||
+ | |src_reduced={{filepath:{{#titleparts:{{PAGENAME:{{GetBookValue|frontcoverimg}}}}}}|400}} | ||
+ | |class=depth-1 mt-2 mb-3 | ||
+ | |caption={{GetBookValue|citation}} | ||
+ | }}{{#if: {{GetBookValue|onlineeditionlink}}{{GetBookValue|Onlineeditionlinkraw}}{{GetBookValue|TsadraEpubLink}} | | ||
+ | <div class="plainlinks read-now-link text-center nowrap"> | ||
+ | [{{#if: {{GetBookValue|TsadraEpubLink}} | ||
+ | | {{GetBookValue|TsadraEpubLink}} | ||
+ | | {{#if: {{GetBookValue|Onlineeditionlinkraw}} | ||
+ | | {{GetBookValue|Onlineeditionlinkraw}} | ||
+ | | {{GetBookValue|onlineeditionlink}} | ||
+ | }} | ||
+ | }} <i class="fad fa-book-open"></i> Read Online <i class="fad fa-external-link-alt fa-xs"></i>] | ||
+ | </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>{{#if: {{{ VideoId | {{{ VideoService | }}} }}} | | ||
− | + | <hr class="my-4 my-lg-5"> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | < | ||
− | |||
− | |||
− | |||
− | |||
− | + | <center>{{#ev: {{{ VideoService | }}} | {{{ VideoId | }}} }}</center>| }} | |
− | |||
− | |||
− | |||
− | + | {| class="table bnw-book-citation mt-4 mb-0" | |
− | + | |- | |
− | + | ! class="nowrap" | Citation | |
− | + | | {{GetBookValue|citation}} | |
− | + | |- | |
− | + | ! | |
− | + | | | |
− | + | |} | |
− | + | <div class="d-flex justify-content-center flex-wrap">{{#if: {{{ SubPages | }}} | | |
− | + | {{{ SubPages | }}} | | |
− | + | {{#ask: [[Category:Book Excerpts]][[Category:{{SUBPAGENAME}}||{{PAGENAME}}]] | |
− | + | |?ExcerptImage | |
− | + | |format=template | |
− | + | |template=BookExcerptsList | |
− | + | |link=none | |
− | + | }} | |
− | + | }} | |
− | + | </div> | |
− | + | {{#widget:BookNavTabs | |
− | + | |essayTab={{#if: {{{ BookEssay | }}} | 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> | |
− | + | {{{ BookToc | }}}</noglossary></div> | |
− | + | <div class="tab-pane fade drop-cap" id="nav-about" role="tabpanel" aria-labelledby="nav-about-tab"> | |
− | + | {{{ 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" 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> | </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> | ||
− | </div>[[Category: | + | </div>{{#ifeq: {{{ StopPersonRedirects | }}} |
− | </includeonly><noinclude>{{TemplateTag}}</noinclude> | + | | Yes |
+ | | | ||
+ | |{{CreateRedirects | ||
+ | |{{#titleparts:{{SUBPAGENAME}}}};{{#titleparts:{{GetBookValue|BuNayTitle}}}};{{#titleparts:{{GetBookValue|fulltitle}}}} | ||
+ | }} | ||
+ | }}{{#arraymap:Library Items;Books;{{GetBookValue|authorlibwiki}};{{GetBookValue|translatorlibwiki}};{{GetBookValue|DrlPublisher}};{{{ PostStatus | }}};{{#ifeq: {{GetBookValue|tsadraitem}} | true | Tsadra Foundation Series; | }}{{{ ExtraCategories | }}} | ||
+ | |; | ||
+ | |@@@ | ||
+ | |[[Category:@@@]] | ||
+ | | | ||
+ | }}{{#set: | ||
+ | istranslation={{GetBookValue|istranslation}} | ||
+ | |subclass={{GetBookValue|subclass}} | ||
+ | |frontcoverimg={{GetBookValue|frontcoverimg}} | ||
+ | |citation={{GetBookValue|citation}} | ||
+ | |fulltitle={{GetBookValue|fulltitle}} | ||
+ | |BuNayAuthor={{GetBookValue|authorlibwiki}}|+sep=; | ||
+ | |AuthorRaw={{GetBookValue|authorlibwiki}} | ||
+ | |translator={{GetBookValue|translatorlibwiki}}|+sep=; | ||
+ | |publisherlink={{GetBookValue|publisherlink}} | ||
+ | |description={{#urldecode:{{GetBookValue|EncodedDescription}}}} | ||
+ | |tsadraitem={{GetBookValue|tsadraitem}} | ||
+ | |citationofsourcetexts={{GetBookValue|citationofsourcetexts}} | ||
+ | |BuNayFeatured={{GetBookValue|BuNayFeatured}} | ||
+ | |BuNayTitle={{GetBookValue|BuNayTitle}} | ||
+ | |BuNayPageType={{GetBookValue|BuNayPageType}} | ||
+ | |BuNayRelevance={{GetBookValue|BuNayRelevance}} | ||
+ | |BuNayLevel={{GetBookValue|BuNayLevel}}|+sep=, | ||
+ | |BuNayGrade={{GetBookValue|BuNayGrade}} | ||
+ | |BuNayApproach={{GetBookValue|BuNayApproach}}|+sep=, | ||
+ | |BuNayKarlDescription={{GetBookValue|BuNayKarlDescription}} | ||
+ | |BuNaySourceInfo={{GetBookValue|BuNaySourceInfo}} | ||
+ | |BuNayRating={{GetBookValue|BuNayRating}} | ||
+ | |BuNayMediaQual={{GetBookValue|BuNayMediaQual}} | ||
+ | |BuNayInteractive={{GetBookValue|BuNayInteractive}} | ||
+ | |BuNayCopyright={{GetBookValue|BuNayCopyright}} | ||
+ | |BuNayNotes={{GetBookValue|BuNayNotes}} | ||
+ | |BuNayKanoAvailable={{GetBookValue|BuNayKanoAvailable}} | ||
+ | |BuNayKanoCitation={{GetBookValue|BuNayKanoCitation}} | ||
+ | |PosBuNayDefProv={{GetBookValue|PosBuNayDefProv}} | ||
+ | |PosBuNayDefProvNotes={{GetBookValue|PosBuNayDefProvNotes}} | ||
+ | |PosDefProv={{GetBookValue|PosDefProv}} | ||
+ | |PosDefProvNotes={{GetBookValue|PosDefProvNotes}} | ||
+ | |PosAllBuddha={{GetBookValue|PosAllBuddha}} | ||
+ | |PosAllBuddhaNote={{GetBookValue|PosAllBuddhaNote}} | ||
+ | |PosAllBuddhaMoreNotes={{GetBookValue|PosAllBuddhaMoreNotes}} | ||
+ | |PosWheelTurn={{GetBookValue|PosWheelTurn}} | ||
+ | |PosWheelTurnNotes={{GetBookValue|PosWheelTurnNotes}} | ||
+ | |PosYogaMadhya={{GetBookValue|PosYogaMadhya}} | ||
+ | |PosYogaMadhyaNotes={{GetBookValue|PosYogaMadhyaNotes}} | ||
+ | |PosZhenRang={{GetBookValue|PosZhenRang}} | ||
+ | |PosZhenRangNotes={{GetBookValue|PosZhenRangNotes}} | ||
+ | |PosVehicles={{GetBookValue|PosVehicles}} | ||
+ | |PosVehiclesNotes={{GetBookValue|PosVehiclesNotes}} | ||
+ | |PosAnalyticMedit={{GetBookValue|PosAnalyticMedit}} | ||
+ | |PosAnalyticMeditNotes={{GetBookValue|PosAnalyticMeditNotes}} | ||
+ | |PosEmptyLumin={{GetBookValue|PosEmptyLumin}} | ||
+ | |PosEmptyLuminNotes={{GetBookValue|PosEmptyLuminNotes}} | ||
+ | |PosSvataPrasa={{GetBookValue|PosSvataPrasa}} | ||
+ | |PosSvataPrasaNotes={{GetBookValue|PosSvataPrasaNotes}} | ||
+ | |PosVajrapada={{GetBookValue|PosVajrapada}} | ||
+ | |Pubdate={{GetBookValue|pubdate}} | ||
+ | |BuNayPublisher={{GetBookValue|DrlPublisher}} | ||
+ | |FullTextRead={{{ FullTextRead | }}} | ||
+ | |FullTextLink={{{ FullTextLink | }}} | ||
+ | |FullTextLinkLabel={{{ FullTextLinkLabel | }}} | ||
+ | |VideoService={{{ VideoService | }}} | ||
+ | |VideoId={{{ VideoId | }}} | ||
+ | |BookEssay={{{ BookEssay | }}} | ||
+ | |BookToc={{{ BookToc | }}} | ||
+ | |BookPerson={{{ BookPerson | }}} | ||
+ | |PublisherLogo={{{ PublisherLogo | }}} | ||
+ | |PostStatus={{{ PostStatus | }}} | ||
+ | |BookParentPage={{{ BookParentPage | }}} | ||
+ | |Has parent page={{#switch: {{GetBookValue|BuNayPageType}} | ||
+ | |Book=Books | ||
+ | |Dissertation=Dissertations | ||
+ | }} | ||
+ | |QuotesTabContent={{{ QuotesTabContent | }}} | ||
+ | |AddRelatedTab={{{ AddRelatedTab | }}} | ||
+ | |ExtraCategories={{{ ExtraCategories | }}} | ||
+ | |ValuesToRedirect={{#ifeq: {{{ StopPersonRedirects | }}} | ||
+ | |Yes | ||
+ | | | ||
+ | |{{SUBPAGENAME}};{{GetBookValue|BuNayTitle}};{{GetBookValue|fulltitle}} | ||
+ | }} | ||
+ | |People={{#arraymap:{{GetBookValue|authorlibwiki}}; {{GetBookValue|translatorlibwiki}}; {{GetBookValue|Editorlibwiki}}; {{GetBookValue|contributorslibwiki}}; {{GetBookValue|Sourceauthorlibwiki}} | ||
+ | |; | ||
+ | |@@@ | ||
+ | |@@@ | ||
+ | |; | ||
+ | }};{{#arraymap:{{GetBookValue|authorlibwiki}} | ||
+ | |; | ||
+ | |@@@ | ||
+ | |{{#show: @@@|?Namefirst }} {{#show: @@@|?Namelast }} | ||
+ | |; | ||
+ | }}|+sep=; | ||
+ | |Titles={{SUBPAGENAME}};{{GetBookValue|BuNayTitle}};{{GetBookValue|fulltitle}} | ||
+ | |BuNayTopicTags={{GetBookValue|BuNayTopicTags}}|+sep=; | ||
+ | |TextTranslated={{{ TextTranslated | }}}|+sep=; | ||
+ | |OnlineEditionLink={{GetBookValue|onlineeditionlink}} | ||
+ | |TileDescription={{#if: {{{ TileDescription | }}} | ||
+ | | {{{ TileDescription | }}} | ||
+ | | {{#if: {{#urldecode:{{GetBookValue|EncodedDescription}}}} | ||
+ | | {{#urldecode:{{GetBookValue|EncodedDescription}}}} | ||
+ | | ''{{GetBookValue|citation}}'' | ||
+ | }} | ||
+ | }} | ||
+ | |PageTilePhoto={{#if: {{GetBookValue|frontcoverimg}} | ||
+ | | {{#titleparts:{{PAGENAME:{{GetBookValue|frontcoverimg}}}}}} | ||
+ | | {{#if: {{GetBookValue|authorlibwiki}} | ||
+ | | {{#titleparts:{{PAGENAME:{{#show:{{FirstValueOfArray|{{GetBookValue|authorlibwiki}}|;}}|?FirstImage#}}}}}} | ||
+ | | {{#if: {{GetBookValue|translatorlibwiki}} | ||
+ | | {{#titleparts:{{PAGENAME:{{#show:{{FirstValueOfArray|{{GetBookValue|translatorlibwiki}}|;}}|?FirstImage#}}}}}} | ||
+ | | {{#if: {{GetBookValue|Editorlibwiki}} | ||
+ | | {{#titleparts:{{PAGENAME:{{#show:{{FirstValueOfArray|{{GetBookValue|Editorlibwiki}}|;}}|?FirstImage#}}}}}} | ||
+ | | {{#if: {{GetBookValue|Sourceauthorlibwiki}} | ||
+ | | {{#titleparts:{{PAGENAME:{{#show:{{FirstValueOfArray|{{GetBookValue|Sourceauthorlibwiki}}|;}}|?FirstImage#}}}}}} | ||
+ | | | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
+ | |Editors={{GetBookValue|Editorlibwiki}} | ||
+ | |InvisibleFilterContent={{#arraymap:{{GetBookValue|citation}}; {{GetBookValue|BuNayTitle}}; {{GetBookValue|BuNayTopicTags}}; {{PeopleNames|{{GetBookValue|authorlibwiki}}; {{{ AuthorPage | }}}; {{GetBookValue|translatorlibwiki}}}}; {{PeopleTopicsOtherNames|{{GetBookValue|BuNayTopicTags}}}}; {{GetBookValue|fulltitle}}; {{GetBookValue|Sourceauthorlibwiki}} | ||
+ | |; | ||
+ | |@@@ | ||
+ | |@@@ | ||
+ | |; | ||
+ | }} | ||
+ | |TibetanTitle={{GetBookValue|TibetanTitle}} | ||
+ | |TibetanDescription={{GetBookValue|TibetanDescription}} | ||
+ | |DrlContributors={{GetBookValue|contributorslibwiki}} | ||
+ | }}</includeonly><noinclude>{{TemplateTag}}</noinclude> |