Template:ListChapters: Difference between revisions
From Bodhicitta
(VSCode edit) |
(VSCode edit) |
||
| (One intermediate revision 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=" | <div class="tm-sidebar-block text-center"> | ||
<div class=" | <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:{{ | |<div class="d-inline-block position-relative stretched-links border green-text px-2 py-1 rounded-xl offwhite-bg m-1">'''{{#ifexist:{{{ base | }}}/@@@ | ||
|[[{{ | |[[{{{ base | }}}/@@@|{{#if: {{#show:{{{ base | }}}/@@@|?ChapterTitle}} | ||
|{{#show:{{ | |{{#show:{{{ base | }}}/@@@|?ChapterTitle}} | ||
|@@@ | |@@@ | ||
}}]] | }}]] | ||
| Line 15: | Line 15: | ||
|limit=1 | |limit=1 | ||
|searchlabel= | |searchlabel= | ||
|default={{ | |default={{{ base | }}}/@@@ | ||
}}|{{#if: {{#show:{{ | }}|{{#if: {{#show:{{{ base | }}}/@@@|?ChapterTitle}} | ||
|{{#show:{{ | |{{#show:{{{ base | }}}/@@@|?ChapterTitle}} | ||
|@@@ | |@@@ | ||
}}]] | }}]] | ||