Template:ListChapters: Difference between revisions

From Bodhicitta
(VSCode edit)
(VSCode edit)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{ sections | }}}|{{#arraydefine:arr|{{{ sections | }}}|;}}{{#ifeq:{{#arraysize:arr}}|1||
<includeonly>{{#if:{{{ sections | }}}|{{#arraydefine:arr|{{{ sections | }}}|;}}{{#ifeq:{{#arraysize:arr}}|1||
<div class="my-4 text-center">
<div class="tm-sidebar-block text-center">
<div class="text-110 text-center font-weight-bold mt-2 mb-3">Chapters</div>
<div class="tm-sidebar-heading">Chapters</div>
<div>{{#arraymap:{{{ sections | }}}
<div>{{#arraymap:{{{ sections | }}}
|;
|;
|@@@
|@@@
|<div class="d-inline-block position-relative stretched-links border green-text px-2 py-1 rounded-xl offwhite-bg m-1">'''{{#ifexist:{{BASEPAGENAME}}/@@@
|<div class="d-inline-block position-relative stretched-links border green-text px-2 py-1 rounded-xl offwhite-bg m-1">'''{{#ifexist:{{{ base | }}}/@@@
|[[{{BASEPAGENAME}}/@@@|{{#if:{{#show:@@@|?ChapterTitle}}|{{#show:@@@|?ChapterTitle}}|@@@}}]]
|[[{{{ base | }}}/@@@|{{#if: {{#show:{{{ base | }}}/@@@|?ChapterTitle}}
|{{#show:{{{ base | }}}/@@@|?ChapterTitle}}
|@@@
}}]]
|[[{{#ask:[[Category:Bilingual Chapters]][[TransMemID::{{{ tmid | }}}]][[TranslationChapter::@@@]]
|[[{{#ask:[[Category:Bilingual Chapters]][[TransMemID::{{{ tmid | }}}]][[TranslationChapter::@@@]]
|headers=hide
|headers=hide
Line 12: Line 15:
|limit=1
|limit=1
|searchlabel=
|searchlabel=
|default={{BASEPAGENAME}}/@@@
|default={{{ base | }}}/@@@
}}|{{#if:{{#show:@@@|?ChapterTitle}}|{{#show:@@@|?ChapterTitle}}|@@@}}]]
}}|{{#if: {{#show:{{{ base | }}}/@@@|?ChapterTitle}}
|{{#show:{{{ base | }}}/@@@|?ChapterTitle}}
|@@@
}}]]
}}'''</div>
}}'''</div>
|
|
}}</div>
}}</div>
</div>}}|}}</includeonly>
</div>}}|}}</includeonly>

Latest revision as of 14:28, 19 August 2026