Template:ListChapters: Difference between revisions
From Bodhicitta
(VSCode edit) |
(VSCode edit) |
||
| (7 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#if:{{{ | <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="text-110 text-center font-weight-bold mt-2 mb-3">Chapters</div> | ||
<div>{{#arraymap:{{{ | <div>{{#arraymap:{{{ sections | }}} | ||
|; | |; | ||
|@@@ | |@@@ | ||
|<div class="d-inline-block border green-text px-2 py-1 rounded-xl offwhite-bg m-1">''' | |<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}}/@@@ | |[[{{BASEPAGENAME}}/@@@|@@@]] | ||
|{{#ask:[[Category:Bilingual Chapters]][[TransMemID::{{{ tmid | }}}]][[TranslationChapter::@@@]]|headers=hide|link=none|limit=1|searchlabel=}} | |[[{{#ask:[[Category:Bilingual Chapters]][[TransMemID::{{{ tmid | }}}]][[TranslationChapter::@@@]] | ||
|headers=hide | |||
|link=none | |||
|limit=1 | |||
|searchlabel= | |||
|default={{BASEPAGENAME}}/@@@ | |||
}}|@@@]] | |||
}}'''</div> | |||
| | | | ||
}}</div>|}}</includeonly> | }}</div>}}|}}</includeonly> | ||