Template:DisplayTmSection: Difference between revisions
From Bodhicitta
(VSCode edit) |
(VSCode edit) |
||
| (39 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
{{RemoveFirstHeading | {{RemoveFirstHeading | ||
|AltTitle={{{ | |AltTitle={{{ Translation | }}} | ||
| {{{ DisplayChapterTitle | }}} | <div class="text-70 line15 pb-1">{{#show:{{{ Text | }}}|?FullTitleTib}}</div> | ||
| | |SubTitle= {{#if: {{{ DisplayChapterTitle | }}} | ||
}} | |{{#show:{{{ Translation | }}}|?BcaAuthor}} - {{{ DisplayChapterTitle | }}} | ||
|{{#show:{{{ Translation | }}}|?BcaAuthor}} - {{SUBPAGENAME}} | |||
}} | |||
|watermark=Bilingual | |||
}} | }} | ||
<div class="row ssb-content"> | <div class="row ssb-content"> | ||
| Line 28: | Line 17: | ||
{{{ SidebarTopContent | }}} | }} | {{{ SidebarTopContent | }}} | }} | ||
<div class="mb-2 mb-md-3"> | <div class="mb-2 mb-md-3"> | ||
<div class="my-4 text-center">{{ListChapters | |||
|query={{#ask:[[Translation Memory:{{{ TransMemID | }}}]]|?Sections=|mainlabel=-|link=none|valuesep=;}} | |||
|tmid={{{ TransMemID | }}} | |||
}}</div> | |||
<div class="text-110 text-center font-weight-bold mt-2 mb-3">Search</div> | |||
<div class="text-110 mb-4">{{#widget:filterInput | |||
|class=border border-carnelian | |||
|placeholder=Filter segments | |||
}}</div> | |||
<div class="text-110 text-center font-weight-bold mt-2 mb-3">Navigation</div> | <div class="text-110 text-center font-weight-bold mt-2 mb-3">Navigation</div> | ||
<div class=" | <div class="pl-4"> | ||
<div class="mt-4">{{#arraymap:{{#ask:[[{{{ Translation | }}}]] | {{SectionNavigation|{{#ask:[[Translation Memory:{{{ TransMemID | }}}]]|?Sections=|mainlabel=-|link=none|valuesep=;}} }} | ||
<div class="my-1 text-110">[[{{{ Translation | }}}|<i class="fa-sharp-duotone fa-solid fa-language fa-fw"></i> Translation]]</div> | |||
<div class="my-1 text-110">[[{{{ Text | }}}|<i class="fa-sharp-duotone fa-solid fa-scroll-old fa-fw"></i> Source Text]]</div>{{#ifeq:{{{ Text | }}}|Texts/Bodhicaryāvatāra| | |||
<div class="my-1 text-110">[[Texts/Bodhicaryāvatāra/Chapter_{{{ TranslationChapter | }}}|<i class="fa-sharp-duotone fa-solid fa-globe fa-fw"></i> English Translation (all lang.)]]</div> | |||
<div class="my-1 text-110">[[Books/Bodhicaryâvatâra:_La_marche_vers_l%27éveil_(2007)/Bilingual/Chapter_{{{ TranslationChapter | }}}|🇫🇷 Traduction Française]]</div> | |||
|? | <div class="my-1 text-110">[[Books/La_Práctica_del_Bodisatva/Bilingual/Chapter_{{{ TranslationChapter | }}}|🇪🇸 Traducción al español]]</div> | ||
}} | <div class="my-1 text-110">[[Topics/BCA Chapter {{{ TranslationChapter | }}}|<i class="fa-sharp-duotone fa-solid fa-message-quote fa-fw"></i> Works on this chapter]]</div>|}} | ||
{{{ TopLeftLink | }}} | |||
</div>{{#if:{{{ Translation | }}}| | |||
<div class="mt-4">{{#arraymap:{{Uniquify|{{#if:{{{ PeopleOverride | }}} | |||
|{{{ PeopleOverride | }}} | |||
|{{#ask:[[{{{ Translation | }}}]] | |||
|?SourceAuthor# |mainlabel=- |headers=hide |sep=; |valuesep=; |link=none | |||
}};{{#ask:[[{{{ Translation | }}}]] | |||
|?BcaAuthor# |mainlabel=- |headers=hide |sep=; |valuesep=; |link=none | |||
}};{{#ask:[[{{{ Translation | }}}]] | |||
|?Translator# |mainlabel=- |headers=hide |sep=; |valuesep=; |link=none | |||
}};{{#ask:[[{{{ Translation | }}}]] | |||
|?Editor# |mainlabel=- |headers=hide |sep=; |valuesep=; |link=none | |||
}} | |||
}}|;}} | |||
|; | |; | ||
|@@@ | |@@@ | ||
| Line 43: | Line 55: | ||
}}</div>|}}{{#if:{{#show:{{{ Translation | }}}|?Citation}} | }}</div>|}}{{#if:{{#show:{{{ Translation | }}}|?Citation}} | ||
|<div class="text-110 text-center font-weight-bold mt-2 mb-3">Source</div> | |<div class="text-110 text-center font-weight-bold mt-2 mb-3">Source</div> | ||
{{#show:{{{ Translation | }}}|?Citation}} | <div class="mb-4">{{#show:{{{ Translation | }}}|?Citation}}</div> | ||
| | | | ||
}} | }} | ||
{{TibFormattingLegend}} | {{TibFormattingLegend}} | ||
</div>{{#if:{{{ SidebarBottomContent | }}} | | </div>{{#if:{{{ SidebarBottomContent | }}} | | ||
{{{ SidebarBottomContent | }}} | }} | {{{ SidebarBottomContent | }}} | }} | ||
{{ScrollToTop}} | |||
</div> | </div> | ||
</div> | </div> | ||
| Line 56: | Line 67: | ||
<div id="bilingual-commentary" class="filterableContent">{{#ifeq:{{{ LanguagePicker | }}}|true| | <div id="bilingual-commentary" class="filterableContent">{{#ifeq:{{{ LanguagePicker | }}}|true| | ||
{{RootVerseToggles}} | }} | {{RootVerseToggles}} | }} | ||
{{#invoke:SegmentQuery|renderChunks|{{{ TranslationChapter | }}}|{{{ TransMemID | }}}}} | {{#invoke:SegmentQuery|renderChunks|{{#if:{{{ TranslationChapter | }}}|{{{ TranslationChapter | }}}|{{SUBPAGENAME}} }}|{{{ TransMemID | }}}}} | ||
</div> | </div> | ||
</div> | </div> | ||
</div>{{#set: | </div>{{#set: | ||
|TileDescription={{#show:{{BASEPAGENAME}}|?TileDescription#}} | |TileDescription={{#show:{{BASEPAGENAME}}|?TileDescription#}} | ||
|Sections={{#ask:[[Translation Memory:{{{ TransMemID | }}}]]|?Sections=|mainlabel=-|link=none|valuesep=;}} | |Sections={{#ask:[[Translation Memory:{{{ TransMemID | }}}]]|?Sections=|mainlabel=-|link=none|valuesep=;}}|+sep=; | ||
|TranslationChapter={{{ TranslationChapter | }}}|+sep=; | |||
|TransMemID={{{ TransMemID | }}} | |TransMemID={{{ TransMemID | }}} | ||
|FrontCoverImg={{#show:{{BASEPAGENAME}}|?FrontCoverImg#}} | |FrontCoverImg={{#show:{{BASEPAGENAME}}|?FrontCoverImg#}} | ||
| Line 68: | Line 80: | ||
|TileLabel=Bilingual | |TileLabel=Bilingual | ||
|BcaAuthor={{#ask:[[{{BASEPAGENAME}}]]|?BcaAuthor=|mainlabel=-|link=none|valuesep=;}}|+sep=; | |BcaAuthor={{#ask:[[{{BASEPAGENAME}}]]|?BcaAuthor=|mainlabel=-|link=none|valuesep=;}}|+sep=; | ||
}}[[Category:Bilingual Versions]]</includeonly> | }}[[Category:Bilingual Chapters]][[Category:Bilingual Versions]]</includeonly> | ||