Template:DisplayTmSection: Difference between revisions
From Bodhicitta
(VSCode edit) |
(VSCode edit) |
||
| (9 intermediate revisions by the same user not shown) | |||
| Line 6: | Line 6: | ||
|SubTitle= {{#if: {{{ DisplayChapterTitle | }}} | |SubTitle= {{#if: {{{ DisplayChapterTitle | }}} | ||
|{{#show:{{{ Translation | }}}|?BcaAuthor}} - {{{ DisplayChapterTitle | }}} | |{{#show:{{{ Translation | }}}|?BcaAuthor}} - {{{ DisplayChapterTitle | }}} | ||
| | |{{#show:{{{ Translation | }}}|?BcaAuthor}} - {{SUBPAGENAME}} | ||
}} | }} | ||
|watermark=Bilingual | |watermark=Bilingual | ||
| Line 17: | 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=;}}|{{{ | <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 text-center font-weight-bold mt-2 mb-3">Search</div> | ||
<div class="text-110 mb-4">{{#widget:filterInput | <div class="text-110 mb-4">{{#widget:filterInput | ||
| Line 25: | Line 28: | ||
<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 | }}}| | ||
| Line 38: | 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 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> | ||