Template:SidebarLinkBadge: Difference between revisions

From Bodhicitta
(VSCode edit)
(VSCode edit)
Line 3: Line 3:
Template:SidebarPersonBadge — round avatar, then name and detail beside it.
Template:SidebarPersonBadge — round avatar, then name and detail beside it.


The sidebar is one list of rows now, so an external resource is shaped like a
Shaped like a person row, but sans-serif, smaller and tighter: the block is
person rather than like a table cell, in the same serif and the same round
collapsed by default, so it reads as a compact reference list rather than as
48px frame. Two typefaces in one short sidebar read as two systems rather
more people. The logo is used straight, with no round mask — at this size a
than one list. The name is a little smaller than a person's, since the logo
circular crop cuts the ends off a wordmark.
beside it already identifies the source.


`abbr` carries the short form (rKTs, BDRC, 84000) because the full titles run
`abbr` carries the short form (rKTs, BDRC, 84000) because the full titles run
Line 19: Line 18:
|;
|;
|@@@
|@@@
|<div class="sidebar-person sidebar-link position-relative rounded-xl"><div class="sidebar-person-avatar sidebar-link-logo">[[File:{{{ image | }}}|48x48px|link=@@@|{{{ label | }}}]]</div><div class="sidebar-person-text font-serif"><div class="w-100"><div class="sidebar-person-name sidebar-link-name line12">[@@@ {{{ abbr | {{{ label | }}} }}}]</div>{{#if: {{{ note | }}}|<div class="sidebar-person-roles opac-50 line11">{{{ note | }}}</div>|}}</div></div></div>
|<div class="sidebar-person sidebar-link position-relative rounded-xl"><div class="sidebar-person-avatar sidebar-link-logo">[[File:{{{ image | }}}|48x48px|link=@@@|{{{ label | }}}]]</div><div class="sidebar-person-text"><div class="w-100"><div class="sidebar-person-name sidebar-link-name line12">[@@@ {{{ abbr | {{{ label | }}} }}}]</div>{{#if: {{{ note | }}}|<div class="sidebar-person-roles opac-50 line11">{{{ note | }}}</div>|}}</div></div></div>
|
|
}}
}}

Revision as of 16:00, 25 August 2026


A single external-resource row for the library-item sidebar. Same shape as Template:SidebarPersonBadge so the sidebar reads as one list.

Parameters

Parameter Description
prop Property holding the URL. Required. Nothing renders when it is empty.
image Logo file name.
abbr Short name shown in the row, e.g. rKTs. Falls back to label.
label Full organisation name, used as the link's hover title.
note Optional second line under the name.