Template:DisplayTmSection: Difference between revisions

From Bodhicitta
(VSCode edit)
(VSCode edit)
 
(83 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>__NOTOC____NOEDITSECTION__
<includeonly>__NOTOC____NOEDITSECTION__{{#widget:VisibilityToggleStyles}}
{{#ifeq:{{{ BaseJumbo | }}}|true|{{#ask:[[{{BASEPAGENAME}}]]
 
|?FrontCoverImg
{{RemoveFirstHeading
|?Title
|AltTitle={{#show:{{{ Text | }}}|?Title}}
|?TileDescription
<div class="text-70 line15 pb-1">{{#show:{{{ Text | }}}|?FullTitleTib}}</div>
|?Description
|SubTitle= {{#if: {{{ DisplayChapterTitle | }}}
|?BcaAuthor
|{{SUBPAGENAME:{{{ Translation | }}}}} - {{{ DisplayChapterTitle | }}}
|?Translator
|{{SUBPAGENAME:{{{ Translation | }}}}} - {{SUBPAGENAME}}
|?Classification
}}{{BcaRootChapterName
|link=none
|{{{ TransMemID | }}}
|format=template
|{{#if:{{{ TranslationChapter | }}}
|template=TmSectionHeader
|{{{ TranslationChapter | }}}
|valuesep=;
|{{SUBPAGENAME}}
}}|}}
}}
|&colon;&nbsp;
}}
|watermark=Bilingual
}}




Line 20: Line 24:
{{{ 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="m-2">[[{{{ Text | }}}|<i class="fa-sharp-duotone fa-solid fa-scroll-old fa-fw"></i> About the {{{ Text | }}}]]</div>
<div class="pl-4">
<div class="my-4 text-center">{{ListChapters|{{#ask:[[Translation Memory:{{{ TransMemID | }}}]]|?Sections=|mainlabel=-|link=none|valuesep=;}}|{{{ DisplayChapterTitle | }}}}}</div>
{{SectionNavigation|{{#ask:[[Translation Memory:{{{ TransMemID | }}}]]|?Sections=|mainlabel=-|link=none|valuesep=;}} }}
{{#widget:filterInput|placeholder=Filter segments}}
<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> Padmakara Translations]]</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-section 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
}}
}}|;}}
|;
|@@@
|{{PersonCard|@@@}}
|
}}</div>|}}{{#if:{{#show:{{{ Translation | }}}|?Citation}}
|<div class="text-110 text-center font-weight-bold mt-2 mb-3">Source</div>
<div class="mb-4">{{#show:{{{ Translation | }}}|?Citation}}</div>
|
}}
{{TibFormattingLegend}}
{{TibFormattingLegend}}
</div>{{#if:{{{ SidebarBottomContent | }}} |  
</div>{{#if:{{{ SidebarBottomContent | }}} |  
{{{ SidebarBottomContent | }}} | }}
{{{ SidebarBottomContent | }}} | }}
{{ScrollToTop}}
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div class="col-md-9">
<div id="bilingual-commentary" class="filterableContent">{{#ask:[[TransMemID::{{{ TransMemID | }}}]][[SegmentFormat::!Deprecated]]
<div id="bilingual-commentary" class="filterableContent">{{#ifeq:{{{ LanguagePicker | }}}|false||
|?SegmentSource
{{RootVerseToggles}} }}
|?SourceTranslit
{{#invoke:SegmentQuery|renderChunks|{{#if:{{{ TranslationChapter | }}}
|?SegmentTranslation
|{{#ifeq:{{{ TranslationChapter | }}}
|?SegmentFormat
|all
|?SegmentOrder
|
|?SourceSabcheNumber
|{{{ TranslationChapter | }}}
|?Flag
}}
|?RootTextVerseNumPadmaK
|{{SUBPAGENAME}}
|sort=SegmentOrder
}}|{{{ TransMemID | }}}}}
|order=asc
</div>
|format=template
|template=DisplayTransMemRow
|userparam={{#invoke:String|sub|{{urlencode:{{{ TransMemID | }}}|WIKI}}|1|3}}
|link=none
|limit=1008
|@deferred
}}</div>
</div>
</div>
</div>{{#set:
</div>{{#set:
|TileDescription={{#show:{{BASEPAGENAME}}|?TileDescription#}}
|TileDescription={{#show:{{{ Translation | }}}|?TileDescription#}}
|Sections={{#ask:[[Translation Memory:{{{ TransMemID | }}}]]|?Sections=|mainlabel=-|link=none|valuesep=;}}
|Sections={{#ask:[[Translation Memory:{{{ TransMemID | }}}]]|?Sections=|mainlabel=-|link=none|valuesep=;}}
|TranslationChapter={{{ TranslationChapter | }}}|+sep=;
|TransMemID={{{ TransMemID | }}}
|TransMemID={{{ TransMemID | }}}
|FrontCoverImg={{#show:{{BASEPAGENAME}}|?FrontCoverImg#}}
|FrontCoverImg={{#show:{{{ Translation | }}}|?FrontCoverImg#}}
|Title=Bilingual Presentation
|Title=Bilingual Presentation
|Description={{#show:{{BASEPAGENAME}}|?Description}}
|Description={{#show:{{{ Translation | }}}|?Description}}
|TileLabel=Bilingual
|TileLabel=Bilingual
|BcaAuthor={{#ask:[[{{BASEPAGENAME}}]]|?BcaAuthor=|mainlabel=-|link=none|valuesep=;}}|+sep=;
|BcaAuthor={{#ask:[[{{{ Translation | }}}]]|?BcaAuthor=|mainlabel=-|link=none|valuesep=;}}|+sep=;
}}[[Category:Bilingual Versions]]</includeonly>
|ChapterNumber={{#if:{{{ TranslationChapter | }}}
|{{{ TranslationChapter | }}}
|{{SUBPAGENAME}}
}}
|ChapterTitle={{{ DisplayChapterTitle | }}}
}}[[Category:Bilingual Chapters]][[Category:Bilingual Versions]]</includeonly>

Latest revision as of 12:29, 12 March 2026