Template:PersonCall: Difference between revisions
From Bodhicitta
(VSCode edit) |
(VSCode edit) |
||
| Line 21: | Line 21: | ||
< | <!-- | ||
Full width, no sidebar. | |||
< | |||
<div class=" | The page used to run a 3/9 split with relations and categories in a sticky | ||
rail. Measured across all 1,695 person pages, that rail held a median of TWO | |||
items: 82% of pages carried 1-3, and only 1.2% carried 15 or more. Four out of | |||
five pages were paying for a sticky-sidebar instance, a mobile drawer, and a | |||
narrowed article column in order to show about two links. | |||
A sidebar also earns its keep elsewhere on this wiki by holding things a | |||
reader returns to while moving through long content — a TOC, chapter | |||
navigation. Person pages have no such content: a short biography, then tiles. | |||
Names and relationships are attributes OF the subject, so they now read in | |||
sequence with it rather than in a parallel column. | |||
Reading order is deliberate: who they are, what they looked like and their | |||
life, who they were connected to, then what they made. The works queries come | |||
last because they run deep on well-covered figures — and they are the point of | |||
the page. | |||
-->{{#ask:[[{{SUBPAGENAME}}]] | |||
<!-- | |||
A remote (source=) #ask with format=template silently drops printouts past | |||
the 25th: they never reach the template, with no warning and no error. | |||
Measured on this exact query — 25 printouts render, 26 do not. | |||
This list sits AT that limit. To add a property here, remove one first, or | |||
the addition will appear to do nothing. |?AltNamesOther was the casualty when | |||
the alternate-name display was added; it is nearly always empty anyway. | |||
--> |?BdrcLink |?Bio |?BiographicalInfo |?BioTib |?BnwShortPersonBio |?Description |?FirstImage |?HarLinkRaw |?HasDnzPage |?HasRtzPage |?ImagesRaw |?MainNameChi |?MainNameDev |?MainNameJap |?MainNameKor |?MainNamePhon |?MainNameTib |?TolExcerpt |?TolLinkRaw |?Yearbirth |?Yeardeath |?Subclass |?GyatsaBioTib |?AltNamesTib |?AltNamesWylie | |||
|named args=true | |||
|link=none | |||
|source=commons | |||
|format=template | |||
|template=PersonRemote | |||
}}<!-- | |||
=== NAMES & CONNECTIONS === | |||
Categories, translation languages, and lineage relationships, in one quiet | |||
band between the biography and the works. Deliberately understated: small | |||
sans type, muted labels, no border and no carnelian — this is reference | |||
material a reader consults, not something competing with the biography above | |||
or the works below. | |||
Each row renders only when it has content, so Laura Swan gets one short line | |||
and Jamgön Kongtrul gets a full researched-looking block, from the same | |||
markup. The whole band disappears for the 3.5% of people with no relations | |||
at all, rather than leaving an empty frame. | |||
Long relation lists cap at 8 with a "+N more" toggle (see .tws-capped in | |||
tws.js). Full width means these lay out as multi-column runs rather than the | |||
long vertical stack the old sidebar forced. | |||
-->{{#if:{{#ask:[[{{PAGENAME}}]][[PersonType::+]]OR[[{{PAGENAME}}]][[Languagetranslation::+]]OR[[{{PAGENAME}}]][[EmanationOf::+]]OR[[{{PAGENAME}}]][[Studentof::+]]OR[[{{PAGENAME}}]][[Teacherof::+]]|format=count}} | |||
|<div class="person-connections my-5">{{#ask:[[{{PAGENAME}}]][[PersonType::+]] | |||
|?PersonType | |?PersonType | ||
|format=template |template=DisplayPersonTypes |link=none |valuesep=; | |format=template |template=DisplayPersonTypes |link=none |valuesep=; | ||
|intro=<div class=" | |intro=<div class="person-connections-row"><div class="person-connections-label">Categories</div><div class="person-connections-items"> | ||
|outro=</div></div> | |||
}}{{#arraymap:{{#ask:[[{{PAGENAME}}]][[Languagetranslation::+]] | }}{{#arraymap:{{#ask:[[{{PAGENAME}}]][[Languagetranslation::+]] | ||
|?Languagetranslation | |?Languagetranslation | ||
| Line 34: | Line 85: | ||
|; | |; | ||
|@@@ | |@@@ | ||
|<div class=" | |<div class="person-connections-row"><div class="person-connections-label">Translates from</div><div class="person-connections-items"><span class="person-connections-item">[[:Category:Translators of @@@|@@@]]</span></div></div> | ||
| | | | ||
}}{{#ask:[[{{PAGENAME}}]][[EmanationOf::+]] | }}{{#ask:[[{{PAGENAME}}]][[EmanationOf::+]] | ||
|?EmanationOf | |?EmanationOf | ||
|format=template |template=DisplayRelPeople |link=none |valuesep=; | |format=template |template=DisplayRelPeople |link=none |valuesep=; | ||
|intro=<div class=" | |intro=<div class="person-connections-row"><div class="person-connections-label">Emanation of</div><div class="person-connections-items"> | ||
|outro=</div></div> | |||
}}{{#ask:[[{{PAGENAME}}]][[Studentof::+]] | |||
|?Studentof | |?Studentof | ||
|format=template |template=DisplayRelPeople |link=none |valuesep=; | |format=template |template=DisplayRelPeople |link=none |valuesep=; | ||
|intro=<div class=" | |intro=<div class="person-connections-row"><div class="person-connections-label">Student of</div><div class="person-connections-items tws-capped" data-cap="8" data-items=".person-connections-item" data-noun="teachers"> | ||
|outro=</div> | |outro=</div></div> | ||
}}{{#ask:[[{{PAGENAME}}]][[Teacherof::+]] | }}{{#ask:[[{{PAGENAME}}]][[Teacherof::+]] | ||
|?Teacherof | |?Teacherof | ||
|format=template |template=DisplayRelPeople |link=none |valuesep=; | |format=template |template=DisplayRelPeople |link=none |valuesep=; | ||
|intro=<div class=" | |intro=<div class="person-connections-row"><div class="person-connections-label">Teacher of</div><div class="person-connections-items tws-capped" data-cap="8" data-items=".person-connections-item" data-noun="students"> | ||
|outro=</div> | |outro=</div></div> | ||
}} | }} | ||
</div> | </div> | ||
| | |||
| | |||
}} | }} | ||
<div class="my-4"><!-- | <div class="my-4"><!-- | ||
| Line 155: | Line 181: | ||
}} | }} | ||
</div> | </div> | ||
{{#arraymap:{{#titleparts:{{SUBPAGENAME}} }};{{#arraymap:{{#ask:[[{{PAGENAME}}]][[Languagetranslation::+]] | {{#arraymap:{{#titleparts:{{SUBPAGENAME}} }};{{#arraymap:{{#ask:[[{{PAGENAME}}]][[Languagetranslation::+]] | ||