Template:DisplayTmSection: Difference between revisions

From Bodhicitta
(VSCode edit)
(VSCode edit)
 
(34 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
}}
}}


<div class="d-flex justify-content-between align-item-center mb-5 line17">
<div>[[{{{ Translation | }}}|<i class="fa-sharp-duotone fa-solid fa-language"></i> Translation]] &nbsp;&nbsp;·&nbsp;&nbsp; [[{{{ Text | }}}|<i class="fa-sharp-duotone fa-solid fa-scroll-old"></i> Source Text]] {{ListChapters
|{{#ask:[[Translation Memory:{{{ TransMemID | }}}]]
|?Sections=
|mainlabel=-
|link=none
|valuesep=;
}}
|{{{ DisplayChapterTitle | }}}
|&nbsp;&nbsp;·&nbsp;&nbsp;
}}</div>
<div>{{SectionNavigation|{{#ask:[[Translation Memory:{{{ TransMemID | }}}]]|?Sections=|mainlabel=-|link=none|valuesep=;}}}}</div>
<div>{{{ TopLeftLink | }}}</div>
</div>


<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>
{{SectionNavigation|{{#ask:[[Translation Memory:{{{ TransMemID | }}}]]|?Sections=|mainlabel=-|link=none|valuesep=;}}}}
<div class="pl-4">
<div class="my-1 text-110">[[{{{ Translation | }}}|<i class="fa-sharp-duotone fa-solid fa-language"></i> Translation]]</div>
{{SectionNavigation|{{#ask:[[Translation Memory:{{{ TransMemID | }}}]]|?Sections=|mainlabel=-|link=none|valuesep=;}} }}
<div class="my-1 text-110">[[{{{ Text | }}}|<i class="fa-sharp-duotone fa-solid fa-scroll-old"></i> Source Text]]</div>{{#if:{{{ Translation | }}}|
<div class="my-1 text-110">[[{{{ Translation | }}}|<i class="fa-sharp-duotone fa-solid fa-language fa-fw"></i> Translation]]</div>
<div class="mt-4">{{#arraymap:{{#ask:[[{{{ Translation | }}}]]
<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|
|?SourceAuthor# |mainlabel=- |headers=hide |sep=; |valuesep=; |link=none
<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>
}};{{#ask:[[{{{ Translation | }}}]]
<div class="my-1 text-110">[[Books/Bodhicaryâvatâra:_La_marche_vers_l%27éveil_(2007)/Bilingual/Chapter_{{{ TranslationChapter | }}}|🇫🇷 Traduction Française]]</div>
|?BcaAuthor# |mainlabel=- |headers=hide |sep=; |valuesep=; |link=none
<div class="my-1 text-110">[[Books/La_Práctica_del_Bodisatva/Bilingual/Chapter_{{{ TranslationChapter | }}}|🇪🇸 Traducción al español]]</div>
}};{{#ask:[[{{{ Translation | }}}]]
<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>|}}
|?Translator# |mainlabel=- |headers=hide |sep=; |valuesep=; |link=none
{{{ 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 45: 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>
|
|
}}
}}
<div class="my-4 text-center">{{ListChapters|{{#ask:[[Translation Memory:{{{ TransMemID | }}}]]|?Sections=|mainlabel=-|link=none|valuesep=;}}|{{{ DisplayChapterTitle | }}}}}</div>
{{#widget:filterInput|placeholder=Filter segments}}
{{TibFormattingLegend}}
{{TibFormattingLegend}}
</div>{{#if:{{{ SidebarBottomContent | }}} |  
</div>{{#if:{{{ SidebarBottomContent | }}} |  
{{{ SidebarBottomContent | }}} | }}
{{{ SidebarBottomContent | }}} | }}
{{ScrollToTop}}
</div>
</div>
</div>
</div>
Line 58: 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 70: 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