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}}/@@@|@@@]] | |||
|[[{{#ask:[[Category:Bilingual Chapters]][[TransMemID::{{{ tmid | }}}]][[TranslationChapter::@@@]] | |||
|headers=hide | |||
|link=none | |||
|limit=1 | |||
|searchlabel= | |||
|default={{BASEPAGENAME}}/@@@ | |||
}}|@@@]] | |||
}}'''</div> | |||
}}</div>}}|}}</includeonly> | | | ||
}}</div> | |||
</div>}}|}}</includeonly> | |||