Template:DisplayTmSection: Difference between revisions

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


{{RemoveFirstHeading
{{RemoveFirstHeading
|AltTitle={{#show:{{{ Text | }}}|?Title}}
|AltTitle={{SUBPAGENAME:{{{ Translation | }}}}}
<div class="text-70 line15 pb-1">{{#show:{{{ Text | }}}|?FullTitleTib}}</div>
<div class="text-70 line15 pb-1">{{#show:{{{ Text | }}}|?FullTitleTib}}</div>
|SubTitle= {{#if: {{{ DisplayChapterTitle | }}}  
|SubTitle= {{#if: {{{ DisplayChapterTitle | }}}  
|{{SUBPAGENAME:{{{ Translation | }}}}} - {{{ DisplayChapterTitle | }}}
|{{{ DisplayChapterTitle | }}}
|{{SUBPAGENAME:{{{ Translation | }}}}} - {{SUBPAGENAME}}
|{{SUBPAGENAME}}
}}{{BcaRootChapterName
}}{{BcaRootChapterName
|{{{ TransMemID | }}}
|{{{ TransMemID | }}}
Line 25: Line 25:
<div class="mb-2 mb-md-3">
<div class="mb-2 mb-md-3">
<div class="my-4 text-center">{{ListChapters
<div class="my-4 text-center">{{ListChapters
|query={{#ask:[[Translation Memory:{{{ TransMemID | }}}]]|?Sections=|mainlabel=-|link=none|valuesep=;}}
|sections={{#ask:[[Translation Memory:{{{ TransMemID | }}}]]|?Sections=|mainlabel=-|link=none|valuesep=;}}
|tmid={{{ TransMemID | }}}
|tmid={{{ TransMemID | }}}
}}</div>
}}</div>
Line 34: Line 34:
}}</div>
}}</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">{{#ask:[[Translation Memory:{{{ TransMemID | }}}]]
{{SectionNavigation|{{#ask:[[Translation Memory:{{{ TransMemID | }}}]]|?Sections=|mainlabel=-|link=none|valuesep=;}} }}
|?Sections
|valuesep=;
|format=template
|template=SectionNavigation
}}
<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">[[{{{ 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">[[{{{ Text | }}}|<i class="fa-sharp-duotone fa-solid fa-scroll-old fa-fw"></i> Source Text]]</div>{{#ifeq:{{{ Text | }}}|Texts/Bodhicaryāvatāra|
Line 41: Line 45:
<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/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">[[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>|}}
<div class="my-1 text-110">[[Topics/BCA Chapter {{{ TranslationChapter | }}}|<i class="fa-sharp-duotone fa-solid fa-section fa-fw"></i> Works on this chapter]]</div>|}}
{{{ TopLeftLink | }}}
{{{ TopLeftLink | }}}
</div>{{#if:{{{ Translation | }}}|
</div>{{#if:{{{ Translation | }}}|
Line 95: Line 99:
|BcaAuthor={{#ask:[[{{{ Translation | }}}]]|?BcaAuthor=|mainlabel=-|link=none|valuesep=;}}|+sep=;
|BcaAuthor={{#ask:[[{{{ Translation | }}}]]|?BcaAuthor=|mainlabel=-|link=none|valuesep=;}}|+sep=;
|ChapterNumber={{#if:{{{ TranslationChapter | }}}
|ChapterNumber={{#if:{{{ TranslationChapter | }}}
|{{{ TranslationChapter | }}}
|{{#arraymap:{{{ TranslationChapter | }}}
|{{SUBPAGENAME}}
|;
|@@@
|{{#iferror:{{#expr:@@@}}||@@@}}
|;
}}
|{{#iferror:{{#expr:{{SUBPAGENAME}}}}||{{SUBPAGENAME}}}}
}}
}}
|ChapterTitle={{{ DisplayChapterTitle | }}}  
|ChapterTitle={{{ DisplayChapterTitle | }}}  
}}[[Category:Bilingual Chapters]][[Category:Bilingual Versions]]</includeonly>
}}[[Category:Bilingual Chapters]][[Category:Bilingual Versions]]</includeonly>

Latest revision as of 15:19, 13 March 2026