Template:SidebarLinks: Difference between revisions
(External resources section for the sidebar) |
(VSCode edit) |
||
| Line 12: | Line 12: | ||
Half of Classical Works have no external links at all, so the whole section | Half of Classical Works have no external links at all, so the whole section | ||
including its heading renders only when at least one property is set. | including its heading renders only when at least one property is set. | ||
-->|<div class="sidebar-section"> | |||
Collapsed by default, like the rKTs block. The median work with links has | |||
three, but the tail runs to ten, and the sidebar already carries people | |||
above it — closed by default keeps the column scannable and puts people | |||
first, which is what most readers came for. | |||
-->|<div class="sidebar-section sidebar-links mw-collapsible mw-collapsed" data-expandtext="Show links" data-collapsetext="Hide links"> | |||
<div class="sidebar-section-heading">Find this text elsewhere</div> | <div class="sidebar-section-heading">Find this text elsewhere</div> | ||
<div class="mw-collapsible-content"> | |||
{{SidebarLinkBadge | {{SidebarLinkBadge | ||
|prop=ISTBLink | |prop=ISTBLink | ||
| Line 80: | Line 86: | ||
|label=Lotsawa House | |label=Lotsawa House | ||
}}</div> | }}</div> | ||
</div> | |||
| | | | ||
}}</includeonly><noinclude>{{TemplateTag}} | }}</includeonly><noinclude>{{TemplateTag}} | ||
Latest revision as of 14:12, 25 August 2026
The external-resource list in a library-item sidebar. Renders nothing when the
work has no links. See Template:SidebarLinkBadge for one row.