Template:ListChapters: Difference between revisions

From Bodhicitta
(VSCode edit)
(VSCode edit)
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="text-110 text-center font-weight-bold mt-2 mb-3">Chapters</div>
<div class="my-4 text-center">
<div>{{#arraymap:{{{ sections | }}}
<div class="text-110 text-center font-weight-bold mt-2 mb-3">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}}/@@@|@@@]]
|<div class="d-inline-block position-relative stretched-links border green-text px-2 py-1 rounded-xl offwhite-bg m-1">'''{{#ifexist:{{BASEPAGENAME}}/@@@
|[[{{#ask:[[Category:Bilingual Chapters]][[TransMemID::{{{ tmid | }}}]][[TranslationChapter::@@@]]
|[[{{BASEPAGENAME}}/@@@|@@@]]
|headers=hide
|[[{{#ask:[[Category:Bilingual Chapters]][[TransMemID::{{{ tmid | }}}]][[TranslationChapter::@@@]]
|link=none
|headers=hide
|limit=1
|link=none
|searchlabel=
|limit=1
|default={{BASEPAGENAME}}/@@@
|searchlabel=
}}|@@@]]
|default={{BASEPAGENAME}}/@@@
}}'''</div>
}}|@@@]]
|
}}'''</div>
}}</div>}}|}}</includeonly>
|
}}</div>
</div>}}|}}</includeonly>

Revision as of 14:47, 18 March 2026