Template:ListChapters: Difference between revisions

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

Latest revision as of 14:28, 19 August 2026