Template:SidebarPersonBadge: Difference between revisions
From Bodhicitta
(VSCode edit) |
(VSCode edit) |
||
| Line 1: | Line 1: | ||
<includeonly>{{#ifeq:{{{ 1 | }}}|Anon||<div class="sidebar-person position-relative rounded-xl"><!-- | <includeonly>{{#ifeq:{{{ 1 | }}}|Anon||<div class="sidebar-person position-relative rounded-xl"><!-- | ||
Portrait, name and roles for one person in a library-item sidebar. | Portrait, name and roles for one person in a library-item sidebar. | ||
A horizontal row — small round avatar, then name and roles — rather than a | |||
portrait with the name centred underneath. The old layout sized the image at | |||
100% of the sidebar column with padding-top:100%, so every person cost about | |||
250px of height. Two thirds of library items have exactly one person, but the | |||
tail is long: "A Gathering of Brilliant Moons" has 26 (12 source authors, 13 | |||
translators, editors, a publisher), which ran to roughly 5,000px of sidebar. | |||
At 48px per avatar the same list is about a fifth of the height and scans as | |||
a list rather than a stack of posters. | |||
48px, not smaller: these are portraits of masters that readers recognise by | |||
face, so the avatar has to stay legible as a face. | |||
Roles are separated by a middot rather than <br>. The row is only two lines | |||
tall, and stacking three roles vertically would undo the saving. | |||
The image, phonetic name and Tibetan name arrive as parameters from | The image, phonetic name and Tibetan name arrive as parameters from | ||