Template:ListChapters: Difference between revisions

From Bodhicitta
(VSCode edit)
(VSCode edit)
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{ 1 | }}}|{{{ 3 | }}}{{SmwTooltip|
<includeonly>{{#if:{{{ sections | }}}|{{#arraydefine:arr|{{{ sections | }}}|;}}{{#ifeq:{{#arraysize:arr}}|1||
|title=Go to chapter:
<div class="tm-sidebar-block text-center">
|show=<span style="text-decoration-line: underline; text-decoration-style: dashed;">{{#if:{{{ 2 | }}}
<div class="tm-sidebar-heading">Chapters</div>
|{{{ 2 | }}}
<div>{{#arraymap:{{{ sections | }}}
|{{SUBPAGENAME}}
|;
}}</span>
|@@@
|content={{#arraymap:{{{ 1 | }}}
|<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:{{{ base | }}}/@@@|?ChapterTitle}}
|<div class="d-inline-block border green-text px-2 py-1 rounded-xl offwhite-bg m-1">'''[[{{BASEPAGENAME}}/@@@|@@@]]'''</div>
|@@@
|
}}]]
}}
|[[{{#ask:[[Category:Bilingual Chapters]][[TransMemID::{{{ tmid | }}}]][[TranslationChapter::@@@]]
}} | }}</includeonly><noinclude>{{TemplateTag}}</noinclude>
|headers=hide
|link=none
|limit=1
|searchlabel=
|default={{{ base | }}}/@@@
}}|{{#if: {{#show:{{{ base | }}}/@@@|?ChapterTitle}}
|{{#show:{{{ base | }}}/@@@|?ChapterTitle}}
|@@@
}}]]
}}'''</div>
|
}}</div>
</div>}}|}}</includeonly>

Latest revision as of 14:28, 19 August 2026