Template:SidebarTopics: Difference between revisions

From Bodhicitta
((by SublimeText.Mediawiker))
(Match the shared sidebar section heading)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="mb-3"><div class="font-sans-alt text-110 line18 text-center mt-4 mb-0">Topics</div>{{#if: {{{ terms | }}} |
<includeonly><div class="sidebar-section"><!--
'''Terms:'''
Topics for this work, in the library-item sidebar.
{{#invoke:DisplayTermTopics|main}}<!--  
 
<ul>{{#arraymap:{{#ask:[[{{PAGENAME}}]]|?TermTopics=|mainlabel=-|sort=TermTopics|sep=;|valuesep=;}}
Same .sidebar-section wrapper and heading as the people, links and rKTs
blocks, so the whole sidebar reads as one sequence of labelled blocks.
--><div class="sidebar-section-heading">Topics</div>{{#if: {{{ terms | }}} |
<div class="sidebar-topics-label">Terms</div>
<!-- {{#invoke:DisplayTermTopics|main}} -->
<ul>{{#arraymap:{{{ terms | }}}
|;
|;
|@@@@
|@@@@
|<li>[[Topics/@@@@|@@@@]]</li>
|{{#ifexist:Topics/{{lcfirst:@@@@}}
|<li>[[Topics/{{lcfirst:@@@@}}|@@@@]]</li>
|{{#ifexist:Topics/{{ucfirst:@@@@}}
|<li>[[Topics/{{ucfirst:@@@@}}|@@@@]]</li>
|
}}
}}
|
|
}}</ul> --> | }}{{#if: {{{ texts | }}} |
}}</ul> | }}{{#if: {{{ texts | }}} |
<div class="my-2">'''Texts:'''
<div class="my-2"><div class="sidebar-topics-label">Texts</div>
<ul class="mb-2 mb-lg-3">{{#arraymap:{{{ texts | }}}
<ul class="mb-2 mb-lg-3">{{#arraymap:{{{ texts | }}}
|;
|;
Line 15: Line 26:
|
|
}}</ul></div> | }}{{#if: {{{ people | }}} |
}}</ul></div> | }}{{#if: {{{ people | }}} |
<div class="my-2">'''People:'''
<div class="my-2"><div class="sidebar-topics-label">People</div>
<ul class="mb-2 mb-lg-3">{{#arraymap:{{{ people | }}}
<ul class="mb-2 mb-lg-3">{{#arraymap:{{{ people | }}}
|;
|;
Line 22: Line 33:
|
|
}}</ul></div> | }}{{#if: {{{ drlTopics | }}} |
}}</ul></div> | }}{{#if: {{{ drlTopics | }}} |
<div class="my-2">'''DRL Topics:'''
<div class="my-2"><div class="sidebar-topics-label">DRL topics</div>
<ul class="mb-2 mb-lg-3">{{#arraymap:{{{ drlTopics | }}}
<ul class="mb-2 mb-lg-3">{{#arraymap:{{{ drlTopics | }}}
|;
|;

Latest revision as of 14:19, 25 August 2026