Module:BookData and Template:Book: Difference between pages

From Buddha-Nature
(Difference between pages)
((by SublimeText.Mediawiker))
 
((by SublimeText.Mediawiker))
 
Line 1: Line 1:
return mw.ext.externalData.getExternalData{
<includeonly>{{HideFirstHeading}}{{DEFAULTSORT:{{SUBPAGENAME}}}}{{#ifsysop: {{#switch: {{{ PostStatus | }}}
url = 'https://research.tsadra.org/index.php?title=Special%3AAsk&q=%5B%5B' .. mw.uri.encode( mw.title.getCurrentTitle().subpageText ) .. '%5D%5D&po=authorlibwiki%0ABuNayApproach%0ABuNayCopyright%0ABuNayFeatured%0ABuNayGrade%0ABuNayInteractive%0ABuNayKanoAvailable%0ABuNayKanoCitation%0ABuNayKarlDescription%0ABuNayLevel%0ABuNayMediaQual%0ABuNayNotes%0ABuNayPageType%0ABuNayRating%0ABuNayRelevance%0ABuNaySourceInfo%0ABuNayTitle%0ABuNayTopicTags%0Acitation%0Acitationofsourcetexts%0Acontributorslibwiki%0ADrlPublisher%0AEditorlibwiki%0AEncodedDescription%0Afrontcoverimg%0Afulltitle%0Aistranslation%0Aonlineeditionlink%0AOnlineeditionlinkraw%0APosAllBuddha%0APosAllBuddhaMoreNotes%0APosAllBuddhaNote%0APosAnalyticMedit%0APosAnalyticMeditNotes%0APosBuNayDefProv%0APosBuNayDefProvNotes%0APosDefProv%0APosDefProvNotes%0APosEmptyLumin%0APosEmptyLuminNotes%0APosSvataPrasa%0APosSvataPrasaNotes%0APosVajrapada%0APosVehicles%0APosVehiclesNotes%0APosWheelTurn%0APosWheelTurnNotes%0APosYogaMadhya%0APosYogaMadhyaNotes%0APosZhenRang%0APosZhenRangNotes%0Apubdate%0Apublisherlink%0ASourceauthorlibwiki%0Asubclass%0ATibetanDescription%0ATibetanTitle%0ATranslatorlibwiki%0ATsadraEpubLink%0Atsadraitem&p%5Bformat%5D=csv',
|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}} }}
data = {
|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}} }}
authorlibwiki = 'authorlibwiki' ,
}}{{#if: {{GetBookValue|BuNayNotes}}
BuNayApproach = 'BuNayApproach' ,
| {{#widget:BootstrapAlert
BuNayCopyright = 'BuNayCopyright' ,
|color=warning
BuNayFeatured = 'BuNayFeatured' ,
|title=Buddha-nature Notes
BuNayGrade = 'BuNayGrade' ,
|text={{GetBookValue|BuNayNotes}}
BuNayInteractive = 'BuNayInteractive' ,
}}
BuNayKanoAvailable = 'BuNayKanoAvailable' ,
|
BuNayKanoCitation = 'BuNayKanoCitation' ,
}} | }}
BuNayKarlDescription = 'BuNayKarlDescription' ,
 
BuNayLevel = 'BuNayLevel' ,
 
BuNayMediaQual = 'BuNayMediaQual' ,
 
BuNayNotes = 'BuNayNotes' ,
 
BuNayPageType = 'BuNayPageType' ,
{{TopSysopLinks|research|Book}}<!--{{TopLevelModule|{{GetBookValue|BuNayGrade}}}}--><noglossary>
BuNayRating = 'BuNayRating' ,
<div class="h2 mb-1 pb-1">
BuNayRelevance = 'BuNayRelevance' ,
<div class="d-flex justify-content-between align-items-end">
BuNaySourceInfo = 'BuNaySourceInfo' ,
<div>{{GetBookValue|BuNayTitle}} {{#if: {{{ TextTranslated | }}}
BuNayTitle = 'BuNayTitle' ,
|<div class="font-italic my-1 text-60">Translation of {{#arraymap: {{{ TextTranslated | }}}
BuNayTopicTags = 'BuNayTopicTags' ,
|;
citation = 'citation' ,
|@@@
citationofsourcetexts = 'citationofsourcetexts' ,
|[[@@@|{{#if:{{#show:@@@|?fulltitletrans}}|{{#show:@@@|?fulltitletrans}}|{{SUBPAGENAME:@@@}}}}]]
contributorslibwiki = 'contributorslibwiki' ,
|,&nbsp;
DrlPublisher = 'DrlPublisher' ,
}}
Editorlibwiki = 'Editorlibwiki' ,
</div>
EncodedDescription = 'EncodedDescription' ,
|
frontcoverimg = 'frontcoverimg' ,
}}
fulltitle = 'fulltitle' ,
</div>
istranslation = 'istranslation' ,
<div class="d-none d-md-block">
onlineeditionlink = 'onlineeditionlink' ,
<div class="header-watermark" style="white-space: nowrap;">{{#switch:{{GetBookValue|BuNayPageType}}
Onlineeditionlinkraw = 'Onlineeditionlinkraw' ,
|Dissertation={{#switch:{{GetBookValue|subclass}}
PosAllBuddha = 'PosAllBuddha' ,
|PhD diss.=Dissertation
PosAllBuddhaMoreNotes = 'PosAllBuddhaMoreNotes' ,
|MA Theses=Thesis
PosAllBuddhaNote = 'PosAllBuddhaNote' ,
}}
PosAnalyticMedit = 'PosAnalyticMedit' ,
|Book={{#switch:{{GetBookValue|subclass}}
PosAnalyticMeditNotes = 'PosAnalyticMeditNotes' ,
|Journal Issues=Journal Issue
PosBuNayDefProv = 'PosBuNayDefProv' ,
|{{GetBookValue|BuNayPageType}}
PosBuNayDefProvNotes = 'PosBuNayDefProvNotes' ,
}}
PosDefProv = 'PosDefProv' ,
|{{GetBookValue|BuNayPageType}}
PosDefProvNotes = 'PosDefProvNotes' ,
}}
PosEmptyLumin = 'PosEmptyLumin' ,
</div>
PosEmptyLuminNotes = 'PosEmptyLuminNotes' ,
</div>
PosSvataPrasa = 'PosSvataPrasa' ,
</div>
PosSvataPrasaNotes = 'PosSvataPrasaNotes' ,
</div></noglossary>
PosVajrapada = 'PosVajrapada' ,
<div class="d-md-none header-watermark float-left" style="white-space: nowrap;">{{#switch:{{GetBookValue|BuNayPageType}}
PosVehicles = 'PosVehicles' ,
|Dissertation={{#switch:{{GetBookValue|subclass}}
PosVehiclesNotes = 'PosVehiclesNotes' ,
|PhD diss.=Dissertation
PosWheelTurn = 'PosWheelTurn' ,
|MA Theses=Thesis
PosWheelTurnNotes = 'PosWheelTurnNotes' ,
|Thesis
PosYogaMadhya = 'PosYogaMadhya' ,
}}
PosYogaMadhyaNotes = 'PosYogaMadhyaNotes' ,
|Book={{#switch:{{GetBookValue|subclass}}
PosZhenRang = 'PosZhenRang' ,
|Journal Issues=Journal Issue
PosZhenRangNotes = 'PosZhenRangNotes' ,
|{{GetBookValue|BuNayPageType}}
pubdate = 'pubdate' ,
}}
publisherlink = 'publisherlink' ,
|{{GetBookValue|BuNayPageType}}
Sourceauthorlibwiki = 'Sourceauthorlibwiki' ,
}}
subclass = 'subclass' ,
</div>
TibetanDescription = 'TibetanDescription' ,
{{GooglePdfSearch
TibetanTitle = 'TibetanTitle' ,
|{{#switch:{{GetBookValue|BuNayPageType}}
Translatorlibwiki = 'Translatorlibwiki' ,
|Book={{FirstValueOfArray|{{GetBookValue|authorlibwiki}}|;}}
TsadraEpubLink = 'TsadraEpubLink' ,
|Article={{{AuthorName|}}}
tsadraitem = 'tsadraitem'
}}
},
}}
format = 'CSV with header'
 
}
<div class="row">
<div class="col-lg-9 mb-3 mb-sm-0 text-article">
<div class="offwhite-bg rounded tsdwiki-depth-2 p-4 p-lg-5">
<div class="row">{{#if: {{GetBookValue|frontcoverimg}} |
<div class="col-md-3 mb-4">{{#widget:FancyboxImg
|src={{filepath:{{#titleparts:{{PAGENAME:{{GetBookValue|frontcoverimg}}}}}}}}
|src_reduced={{filepath:{{#titleparts:{{PAGENAME:{{GetBookValue|frontcoverimg}}}}}}|400}}
|class=tsdwiki-depth-1 mt-2 mb-3 w-100 h-auto
|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="fa-sharp-duotone 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 text-80 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>
 
 
{{#tag:tabber
| Contents = <noglossary><div class="bnw-book-toc first-ul-no-left-margin">
{{{ BookToc | }}}
</div></noglossary> {{#if: {{{ BookEssay | }}} |
{{!}}-{{!}} About the Book =
{{{ BookEssay | }}} | }}{{#if: {{GetBookValue|citationofsourcetexts}} |
{{!}}-{{!}} Sources =
{{GetBookValue|citationofsourcetexts}} | }}{{#if: {{{ QuotesTabContent | }}} |
{{!}}-{{!}} Quotes =  
{{{ QuotesTabContent | }}} | }}
}}
 
</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}}}}
|customTOC=none
}}
</div>{{#ifeq: {{{ StopPersonRedirects | }}}
| 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>

Latest revision as of 06:27, 25 July 2025