Template:SidebarLinkBadge: Difference between revisions
(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. | ||
Shaped like a person row, but sans-serif, smaller and tighter: the block is | |||
collapsed by default, so it reads as a compact reference list rather than as | |||
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 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 | |<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. |