Template:FullTextSubpage: Difference between revisions

From Bodhicitta
((by SublimeText.Mediawiker))
(Store Has parent page = the text, so full-text listings (Reading Room, GetTibetanTexts) find it; SemanticBreadcrumbLinks, which set it automatically, is disabled)
 
(304 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>__NOTOC____NOEDITSECTION__
<includeonly>__NOTOC____NOEDITSECTION____NOGLOSSARY__{{#Widget:NoFirstHeading}}{{#widget:ReadingRoomCovers}}{{DISPLAYTITLE:{{#show:{{BASEPAGENAME}}|?Display title of}}/Full text}}
<small>[[{{BASEPAGENAME}}|<i class="fa-duotone fa-angles-left"></i> {{#titleparts: {{FULLPAGENAME}} | 1 | 2 }}]]</small>


=== Full text information ===
<div class="h1 mb-1 mt-3 mt-lg-5 mx-0">
<div class="d-flex justify-content-between align-items-end">
<div>{{#if: {{{ AltTitle | }}}
| {{{ AltTitle | }}}
| {{#switch:{{#show:{{BASEPAGENAME}}|?Subclass}}
|Sanskrit Original Work=<div class="text-110 mb-2">{{#if:{{#show:{{BASEPAGENAME}}|?FullTitleDev#}}
|{{#show:{{BASEPAGENAME}}|?FullTitleDev#}}
<div class="text-muted font-italic text-60">{{#show:{{BASEPAGENAME}}|?Display title of}}</div>
|{{#show:{{BASEPAGENAME}}|?Display title of}}
}}</div>
<div class="text-60 my-2">{{#arraymap:{{#ifeq:{{ucfirst:{{#show:{{BASEPAGENAME}}|?FullTitleSkt}} }}
|{{#show:{{BASEPAGENAME}}|?Display title of}}
|
|FullTitleSkt
}};FullTitleTib;FullTitle
|;
|@@@
|<div class="d-inline-block">[[{{BASEPAGENAME}}|{{#show:{{BASEPAGENAME}}|?@@@}}]]</div>
|<i class="fa-light fa-pipe align-bottom mx-3 opac-50"></i>
}}</div>
<div class="text-muted font-italic text-60">{{#show:{{BASEPAGENAME}}|?Fulltitletrans#}}</div>
|Tibetan Original Work=<div class="text-110 mb-3">{{#if:{{#show:{{BASEPAGENAME}}|?FullTitleTib}}|{{#show:{{BASEPAGENAME}}|?FullTitleTib}}|{{#show:{{BASEPAGENAME}}|?Display title of}} }}</div>
<div class="text-60 my-2">{{#arraymap:{{#show:{{BASEPAGENAME}}|?FullTitle#}};{{#show:{{BASEPAGENAME}}|?FullTitleDev#}};{{#show:{{BASEPAGENAME}}|?FullTitleSkt#}}
|;
|@@@
|<div class="d-inline-block">[[{{BASEPAGENAME}}|@@@]]</div>
|<i class="fa-light fa-pipe align-bottom mx-3 opac-50"></i>
}}</div>
<div class="text-muted font-italic text-60">{{#show:{{BASEPAGENAME}}|?Fulltitletrans#}}</div>
|[[{{BASEPAGENAME}}|{{#show:{{BASEPAGENAME}}|?Display title of}}]]
}}
}}
</div>
<div class="d-none d-md-block">
<div class="header-watermark" style="white-space: nowrap;">FULL TEXT</div>
</div>
</div>
</div>


{| class="smwtable-clean th-top-right th-nowrap border"
|-
! Source
| {{{ FullTextSource | }}}
|-
! Published date
| {{{ FullTextDate | }}}
|}


= Tibetan unicode =
{{Jumbo
{{{ FullTextTibetan | }}}
|full-width=yes
|image={{#show:{{BASEPAGENAME}}|?FrontCoverImg#}}
|imageposition=50% 33%
|header={{I18n
|en=Description
|bo=ངོ་སྤྲོད།
}}
|header-classes=pb-2
|text={{#if:{{#show:{{BASEPAGENAME}}|?Description}}{{#show:{{BASEPAGENAME}}|?DescriptionTib}}
|{{I18n
|en={{#show:{{BASEPAGENAME}}|?Description}}
|bo={{#if:{{#show:{{BASEPAGENAME}}|?DescriptionTib}}
|{{#show:{{BASEPAGENAME}}|?DescriptionTib}}
|{{r|No Tibetan description!}}
}}
}}
|{{LoremTibDescription}} <br> {{FormEditOnDrlButton
|page={{BASEPAGENAME}}
|icon=file-circle-plus
|text=Add Tibetan Description to DRL
}}
}}
|below-text={{#ifingroup:staff|
<div class="text-right">[https://research.tsadra.org/index.php?title={{urlencode:{{#show:{{BASEPAGENAME}}|?DrlPageName#}}|WIKI}}&action=formedit Edit on DRL]</div>|}}{{#if:{{{ ExtraFullTextMiniTiles | }}}|
<div class="row my-3 justify-content-center">{{{ ExtraFullTextMiniTiles | }}}</div>|}}
<table class="smwtable-clean th-right mt-4">
<tr><th>Reference</th><td>{{#show:{{BASEPAGENAME}}|?Citation#}}</td></tr>
<tr><th>People</th><td>{{#arraymap:{{FirstValueOfArray|{{#ask:[[{{BASEPAGENAME}}]]
|?AllAuthors#- |?People#- |format=template|template=ListPropValues |limit=1 |link=none |searchlabel= |default= |valuesep=; |sep=; |import-annotation=yes
}}|;|3}}|;|@@@|[[@@@]]|,\s}}</td></tr>
</table>
|text-padding=p-3 p-md-4
}}


= Wylie =
{{#ask:{{#if:{{{ BilingualTMs | }}}
{{{ FullTextWylie | }}}
|{{#arraymap:{{{ BilingualTMs | }}}
|;
|@@@
|[[Translation Memory:@@@]]
|OR
}}
|[[Category:Translation Memory Basepages]][[SourceWikiPage::{{SUBPAGENAME:{{BASEPAGENAME}}}}]]OR[[Category:Translation Memory Basepages]][[RootTextWikiPage::{{SUBPAGENAME:{{BASEPAGENAME}}}}]]
}}
|?TranslationWikiPage
|intro=<div class="row justify-content-center">
|outro=</div>
|format=template
|template=GetBilingualTiles
|link=none
}}{{#if:{{#ifexist:{{PAGENAME}}/tib|1}}{{#ifexist:{{PAGENAME}}/wyl|1}}{{#ifexist:{{PAGENAME}}/skt|1}}|


= Sanskrit =
{{Callout
{{{ FullTextSkt | }}}
|id=largeContentWarning
    |icon=<i class="fa-sharp-duotone fa-solid fa-books" style="--fa-primary-color: #8e3c40; --fa-secondary-color: #8e3c40;"></i>
    |title=Large content warning
    |text=<div class="float-right" id="lazy-load-all-container"></div> Click the buttons below to load the different versions of the text.
}}|}}{{{ FullTextVersions | }}}
 
{{CheckForVersions|Tsadra}}
 
{{LazyTextSection
    |header=<h1> Tibetan </h1>
    |directContent={{{ FullTextTibetan | }}}
    |suffix=tib
    |buttonLabel=Load Tibetan Text (བོད་ཡིག་འཇུག)
|buttonClass=text-70
    |loadingLabel=Loading... (འཇུག་བཞིན་པ...)
|source={{{ FullTextSource | }}}
|sourceDate={{{ FullTextDate | }}}
|PdfLink={{{ PdfLink | }}}
|TsadraVersion={{{ TsadraVersion | }}}
}}
 
{{LazyTextSection
    |header=<h1> Wylie </h1>
    |directContent={{{ FullTextWylie | }}}
    |suffix=wyl
    |buttonLabel=Load Wylie
    |loadingLabel=Loading Wylie...
}}
 
{{LazyTextSection
    |header=<h1> Sanskrit </h1>
    |directContent={{{ FullTextSkt | }}}
    |suffix=skt
    |buttonLabel=Load Sanskrit
    |loadingLabel=Loading Sanskrit...
|source={{{ SktSource | }}}
|sourceDate={{{ SktPubDate | }}}
|PdfLink={{{ SktPdfLink | }}}
}}
 
{{CheckForVersions}}
 
{{#ifexpr:{{#ask:[[Is a commentary of::{{BASEPAGENAME}}]]OR[[TextClass::Commentary]][[TextTopics::{{SUBPAGENAME:{{BASEPAGENAME}}}}]]|format=count}}|
<h1>Commentaries</h1>|}}
{{TibetanTileQuery
|query=[[Is a commentary of::{{BASEPAGENAME}}]]OR[[TextClass::Commentary]][[TextTopics::{{SUBPAGENAME:{{BASEPAGENAME}}}}]]
|intro=<div class="row">
|outro=</div>
|prioritize-tibetan=true
}}
 
{{#widget:AddEditVersions}}


<headertabs/>
<headertabs/>
[[Category:{{BASEPAGENAME}}]][[Category:Full text subpages]]
 
[[Category:{{#titleparts: {{FULLPAGENAME}} | -1 | 2 }}]][[Category:Full text subpages]]
 
{{#set:
{{#set:
|Has parent page={{BASEPAGENAME}}
|TsadraVersion={{{ TsadraVersion | }}}
|FullTextSource={{{ FullTextSource | }}}
|FullTextSource={{{ FullTextSource | }}}
|FullTextDate={{{ FullTextDate | }}}
|FullTextDate={{{ FullTextDate | }}}
Line 33: Line 162:
|Title=Full text available
|Title=Full text available
|TileDescription=Read the full text of this work here on our website.
|TileDescription=Read the full text of this work here on our website.
|TileLabel=In unicode
|TileLabel={{#if:{{{ PdfLink | }}}
|PDF {{#if:{{{ FullTextTibetan | }}}
|· Unicode
|
}}
|{{#if:{{{ FullTextTibetan | }}}
|Unicode
|
}}
}}
|TileSize=short
|PdfLink={{{ PdfLink | }}}
|TileImageUrl={{#if:{{{ PdfLink | }}}
|https://bodhicitta.tsadra.org/thumb.php?f={{PAGENAMEE:{{{ PdfLink | }}}}}&width=800&page=1
|{{filepath:{{PAGENAME:{{#show:{{BASEPAGENAME}}|?FrontCoverImg#}} }}|500}}
}}
}}</includeonly>
}}</includeonly>

Latest revision as of 21:55, 29 September 2026