Template:DisplayTmSection: Difference between revisions

From Bodhicitta
(VSCode edit)
(VSCode edit)
 
(29 intermediate revisions by the same user not shown)
Line 2: Line 2:


{{RemoveFirstHeading
{{RemoveFirstHeading
|AltTitle={{{ Text | }}} - <span class="text-80 font-italic">{{#if: {{{ DisplayChapterTitle | }}}  
|AltTitle={{{ Translation | }}}
| {{{ DisplayChapterTitle | }}}
<div class="text-70 line15 pb-1">{{#show:{{{ Text | }}}|?FullTitleTib}}</div>
| Bilingual
|SubTitle= {{#if: {{{ DisplayChapterTitle | }}}  
}}</span>
|{{#show:{{{ Translation | }}}|?BcaAuthor}} - {{{ DisplayChapterTitle | }}}
|{{#show:{{{ Translation | }}}|?BcaAuthor}} - {{SUBPAGENAME}}
}}
|watermark=Bilingual
}}
}}


Line 14: 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|{{#ask:[[Translation Memory:{{{ TransMemID | }}}]]|?Sections=|mainlabel=-|link=none|valuesep=;}}|{{{ DisplayChapterTitle | }}}}}</div>
<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="pl-4">
<div class="pl-4">
{{SectionNavigation|{{#ask:[[Translation Memory:{{{ TransMemID | }}}]]|?Sections=|mainlabel=-|link=none|valuesep=;}}}}
{{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"></i> Translation]]</div>
<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"></i> Source Text]]</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 | }}}
{{{ TopLeftLink | }}}
</div>{{#if:{{{ Translation | }}}|
</div>{{#if:{{{ Translation | }}}|
<div class="mt-4">{{#arraymap:{{#if:{{{ PeopleOverride | }}}
<div class="mt-4">{{#arraymap:{{Uniquify|{{#if:{{{ PeopleOverride | }}}
|{{{ PeopleOverride | }}}
|{{{ PeopleOverride | }}}
|{{#ask:[[{{{ Translation | }}}]]
|{{#ask:[[{{{ Translation | }}}]]
Line 30: Line 45:
}};{{#ask:[[{{{ Translation | }}}]]
}};{{#ask:[[{{{ Translation | }}}]]
|?Translator# |mainlabel=- |headers=hide |sep=; |valuesep=; |link=none
|?Translator# |mainlabel=- |headers=hide |sep=; |valuesep=; |link=none
}};{{#ask:[[{{{ Translation | }}}]]
|?Editor# |mainlabel=- |headers=hide |sep=; |valuesep=; |link=none
}}
}}
}}
}}|;}}
|;
|;
|@@@
|@@@
Line 41: Line 58:
|
|
}}
}}
{{#widget:filterInput|placeholder=Filter segments}}
{{TibFormattingLegend}}
{{TibFormattingLegend}}
</div>{{#if:{{{ SidebarBottomContent | }}} |  
</div>{{#if:{{{ SidebarBottomContent | }}} |  
{{{ SidebarBottomContent | }}} | }}
{{{ SidebarBottomContent | }}} | }}
{{ScrollToTop}}
</div>
</div>
</div>
</div>
Line 50: 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 62: 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>

Latest revision as of 19:55, 6 March 2026