Template:FullTextSubpage: Difference between revisions
From Bodhicitta
(VSCode edit) |
(Store Has parent page = the text, so full-text listings (Reading Room, GetTibetanTexts) find it; SemanticBreadcrumbLinks, which set it automatically, is disabled) |
||
| (41 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>__NOTOC____NOEDITSECTION____NOGLOSSARY__{{#Widget:NoFirstHeading}}{{#widget:ReadingRoomCovers}} | <includeonly>__NOTOC____NOEDITSECTION____NOGLOSSARY__{{#Widget:NoFirstHeading}}{{#widget:ReadingRoomCovers}}{{DISPLAYTITLE:{{#show:{{BASEPAGENAME}}|?Display title of}}/Full text}} | ||
<div class="h1 mb-1 mt-3 mt-lg-5 mx-0"> | <div class="h1 mb-1 mt-3 mt-lg-5 mx-0"> | ||
| Line 8: | Line 8: | ||
|Sanskrit Original Work=<div class="text-110 mb-2">{{#if:{{#show:{{BASEPAGENAME}}|?FullTitleDev#}} | |Sanskrit Original Work=<div class="text-110 mb-2">{{#if:{{#show:{{BASEPAGENAME}}|?FullTitleDev#}} | ||
|{{#show:{{BASEPAGENAME}}|?FullTitleDev#}} | |{{#show:{{BASEPAGENAME}}|?FullTitleDev#}} | ||
<div class="text-muted font-italic text-60">{{ | <div class="text-muted font-italic text-60">{{#show:{{BASEPAGENAME}}|?Display title of}}</div> | ||
|{{ | |{{#show:{{BASEPAGENAME}}|?Display title of}} | ||
}}</div> | }}</div> | ||
<div class="text-60 my-2">{{#arraymap:{{#ifeq:{{ucfirst:{{#show:{{BASEPAGENAME}}|?FullTitleSkt}} }} | <div class="text-60 my-2">{{#arraymap:{{#ifeq:{{ucfirst:{{#show:{{BASEPAGENAME}}|?FullTitleSkt}} }} | ||
|{{ | |{{#show:{{BASEPAGENAME}}|?Display title of}} | ||
| | | | ||
|FullTitleSkt | |FullTitleSkt | ||
| Line 22: | Line 22: | ||
}}</div> | }}</div> | ||
<div class="text-muted font-italic text-60">{{#show:{{BASEPAGENAME}}|?Fulltitletrans#}}</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}}|{{ | |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="text-60 my-2">{{#arraymap:{{#show:{{BASEPAGENAME}}|?FullTitle#}};{{#show:{{BASEPAGENAME}}|?FullTitleDev#}};{{#show:{{BASEPAGENAME}}|?FullTitleSkt#}} | ||
|; | |; | ||
| Line 30: | Line 30: | ||
}}</div> | }}</div> | ||
<div class="text-muted font-italic text-60">{{#show:{{BASEPAGENAME}}|?Fulltitletrans#}}</div> | <div class="text-muted font-italic text-60">{{#show:{{BASEPAGENAME}}|?Fulltitletrans#}}</div> | ||
|[[{{BASEPAGENAME}}|{{ | |[[{{BASEPAGENAME}}|{{#show:{{BASEPAGENAME}}|?Display title of}}]] | ||
}} | }} | ||
}} | }} | ||
| Line 45: | Line 45: | ||
|image={{#show:{{BASEPAGENAME}}|?FrontCoverImg#}} | |image={{#show:{{BASEPAGENAME}}|?FrontCoverImg#}} | ||
|imageposition=50% 33% | |imageposition=50% 33% | ||
|header=ངོ་སྤྲོད། | |header={{I18n | ||
|en=Description | |||
|bo=ངོ་སྤྲོད། | |||
}} | |||
|header-classes=pb-2 | |header-classes=pb-2 | ||
|text={{#if:{{#show:{{BASEPAGENAME}}|?Description}}{{#show:{{BASEPAGENAME}}|?DescriptionTib}} | |text={{#if:{{#show:{{BASEPAGENAME}}|?Description}}{{#show:{{BASEPAGENAME}}|?DescriptionTib}} | ||
|{{I18n | |{{I18n | ||
|en={{#show:{{BASEPAGENAME}}|?Description}} | |en={{#show:{{BASEPAGENAME}}|?Description}} | ||
|bo= | |bo={{#if:{{#show:{{BASEPAGENAME}}|?DescriptionTib}} | ||
|{{#show:{{BASEPAGENAME}}|?DescriptionTib}} | |||
|{{r|No Tibetan description!}} | |||
}} | |||
}} | |||
|{{LoremTibDescription}} <br> {{FormEditOnDrlButton | |{{LoremTibDescription}} <br> {{FormEditOnDrlButton | ||
|page={{BASEPAGENAME}} | |page={{BASEPAGENAME}} | ||
| Line 59: | Line 64: | ||
}} | }} | ||
}} | }} | ||
|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"> | <table class="smwtable-clean th-right mt-4"> | ||
<tr><th> | <tr><th>Reference</th><td>{{#show:{{BASEPAGENAME}}|?Citation#}}</td></tr> | ||
<tr><th> | <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> | </table> | ||
|text-padding=p-3 p-md-4 | |text-padding=p-3 p-md-4 | ||
}} | }} | ||
{{#ask:[[Category:Translation Memory Basepages]][[SourceWikiPage::{{SUBPAGENAME:{{BASEPAGENAME}}}}]]OR[[Category:Translation Memory Basepages]][[RootTextWikiPage::{{SUBPAGENAME:{{BASEPAGENAME}}}}]] | {{#ask:{{#if:{{{ BilingualTMs | }}} | ||
|{{#arraymap:{{{ BilingualTMs | }}} | |||
|; | |||
|@@@ | |||
|[[Translation Memory:@@@]] | |||
|OR | |||
}} | |||
|[[Category:Translation Memory Basepages]][[SourceWikiPage::{{SUBPAGENAME:{{BASEPAGENAME}}}}]]OR[[Category:Translation Memory Basepages]][[RootTextWikiPage::{{SUBPAGENAME:{{BASEPAGENAME}}}}]] | |||
}} | |||
|?TranslationWikiPage | |?TranslationWikiPage | ||
|intro=<div class="row justify-content-center"> | |intro=<div class="row justify-content-center"> | ||
| Line 89: | Line 107: | ||
|suffix=tib | |suffix=tib | ||
|buttonLabel=Load Tibetan Text (བོད་ཡིག་འཇུག) | |buttonLabel=Load Tibetan Text (བོད་ཡིག་འཇུག) | ||
|buttonClass=text-70 | |||
|loadingLabel=Loading... (འཇུག་བཞིན་པ...) | |loadingLabel=Loading... (འཇུག་བཞིན་པ...) | ||
|source={{{ FullTextSource | }}} | |source={{{ FullTextSource | }}} | ||
| Line 98: | Line 117: | ||
{{LazyTextSection | {{LazyTextSection | ||
|header=<h1> Wylie </h1> | |header=<h1> Wylie </h1> | ||
|directContent={{{FullTextWylie|}}} | |directContent={{{ FullTextWylie | }}} | ||
|suffix=wyl | |suffix=wyl | ||
|buttonLabel=Load Wylie | |buttonLabel=Load Wylie | ||
| Line 106: | Line 125: | ||
{{LazyTextSection | {{LazyTextSection | ||
|header=<h1> Sanskrit </h1> | |header=<h1> Sanskrit </h1> | ||
|directContent={{{FullTextSkt|}}} | |directContent={{{ FullTextSkt | }}} | ||
|suffix=skt | |suffix=skt | ||
|buttonLabel=Load Sanskrit | |buttonLabel=Load Sanskrit | ||
| Line 133: | Line 152: | ||
{{#set: | {{#set: | ||
|Has parent page={{BASEPAGENAME}} | |||
|TsadraVersion={{{ TsadraVersion | }}} | |TsadraVersion={{{ TsadraVersion | }}} | ||
|FullTextSource={{{ FullTextSource | }}} | |FullTextSource={{{ FullTextSource | }}} | ||