Template:LibraryItem: Difference between revisions
From Bodhicitta
(VSCode edit) |
(VSCode edit) |
||
| Line 355: | Line 355: | ||
<tabber> | <!-- | ||
|-| | |||
TABLE OF CONTENTS | |||
A collapsible band above the relationships, not a tab. Two thirds of works | |||
have a ToC and it runs to a median of about 1,100 characters — too much to | |||
sit open above the relationships, and too useful to bury. | |||
This was the last thing in the tabber besides the relationships themselves, | |||
so the tabber goes with it: a two-tab strip where one tab was often empty is | |||
more furniture than navigation. Links and rKTs data moved to the sidebar | |||
earlier for the same reason. | |||
Renders nothing when the work has no ToC, so nothing shows an empty band. | |||
-->{{#if: {{{ TableOfContents | }}} | |||
|<div class="work-toc mw-collapsible mw-collapsed" data-expandtext="Show table of contents" data-collapsetext="Hide table of contents"> | |||
<div class="work-toc-heading">Table of contents</div> | |||
<div class="mw-collapsible-content"><div class="formatted-toc offwhite-bg rounded tsdwiki-depth-0 mt-3 p-2 pr-3"> | |||
{{{ TableOfContents | }}} | |||
</div></div> | |||
</div> | |||
| | |||
}}{{#ifeq:{{SUBPAGENAME}} | |||
|Bodhicaryāvatāra | |Bodhicaryāvatāra | ||
|<table id="RelationshipsContent" class="smwtable-clean th-top-right th-nowrap border w-100 mw-collapsible"> | |<table id="RelationshipsContent" class="smwtable-clean th-top-right th-nowrap border w-100 mw-collapsible"> | ||
| Line 395: | Line 416: | ||
}}{{#invoke:GetRels|main}} | }}{{#invoke:GetRels|main}} | ||
}} | }} | ||