Template:SidebarLinkBadge: Difference between revisions

From Bodhicitta
(One external-resource row for the sidebar)
 
(VSCode edit)
Line 4: Line 4:


The sidebar is one list of rows now, so an external resource is shaped like a
The sidebar is one list of rows now, so an external resource is shaped like a
person rather than like a table cell. The logo keeps its own round frame so
person rather than like a table cell, in the same serif and the same round
it stays the recognisable part, at the same 48px as a portrait.
48px frame. Two typefaces in one short sidebar read as two systems rather
than one list. The name is a little smaller than a person's, since the logo
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 17: Line 19:
|;
|;
|@@@
|@@@
|<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 | }}}|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>
|
|
}}
}}

Revision as of 14:08, 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.