Template:SidebarLinkBadge: Difference between revisions

From Bodhicitta
(One external-resource row for the sidebar)
 
(Logos at 76px for the 38px slot)
 
(4 intermediate revisions by the same user not shown)
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. The logo keeps its own round frame so
collapsed by default, so it reads as a compact reference list rather than as
it stays the recognisable part, at the same 48px as a portrait.
more people. The logo is used straight, with no round mask — at this size a
circular crop cuts the ends off a wordmark.


`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 17: 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"><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 | }}}|76x76px|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>
|
|
}}
}}

Latest revision as of 16:10, 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.