Template:PersonCall: Difference between revisions

From Bodhicitta
(VSCode edit)
(VSCode edit)
Line 21: Line 21:




<div class="row ssb-content">
<!--
<div class="ssb col-md-3 order-md-last sliding-drawer">
Full width, no sidebar.
<div class="sidebar ssb__inner my-5">
 
<div class="font-serif-alt text-110">{{#ask:[[{{PAGENAME}}]][[PersonType::+]]
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="mt-3 mb-2 text-center text-110 font-weight-bold">Categories</div>
|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="ml-3 my-1">[[:Category:Translators of @@@|Translator of @@@]]</div>
|<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="mt-3 mb-2 text-center text-110 font-weight-bold">Emanation of</div>
|intro=<div class="person-connections-row"><div class="person-connections-label">Emanation of</div><div class="person-connections-items">
}}<!--
|outro=</div></div>
Teacher/student lists are capped to the first 5 with a "+N more" toggle
}}{{#ask:[[{{PAGENAME}}]][[Studentof::+]]
(see .tws-capped in tws.js). Figures at the centre of a lineage carry a lot
of these — Jamgön Kongtrul has 8 teachers and 12 students, which rendered as
25 sidebar rows beside a single paragraph of biography. Capping keeps the
relations available without letting them outweigh the article.
 
Alternate names used to live here too and were removed for the same reason;
they now sit inline beneath the name in Template:PersonRemote, where they
belong to the identity rather than competing with it.
-->{{#ask:[[{{PAGENAME}}]][[Studentof::+]]
|?Studentof
|?Studentof
|format=template |template=DisplayRelPeople |link=none |valuesep=;
|format=template |template=DisplayRelPeople |link=none |valuesep=;
|intro=<div class="mt-3 mb-2 text-center text-110 font-weight-bold">Student of</div><div class="tws-capped" data-cap="5" data-noun="teachers">
|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="mt-3 mb-2 text-center text-110 font-weight-bold">Teacher of</div><div class="tws-capped" data-cap="5" data-noun="students">
|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>
|
</div>
<div class="col-md-9">{{#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
}}
}}
<div class="my-4"><!--
<div class="my-4"><!--
Line 155: Line 181:
}}
}}
</div>
</div>
</div>
</div>


{{#arraymap:{{#titleparts:{{SUBPAGENAME}} }};{{#arraymap:{{#ask:[[{{PAGENAME}}]][[Languagetranslation::+]]
{{#arraymap:{{#titleparts:{{SUBPAGENAME}} }};{{#arraymap:{{#ask:[[{{PAGENAME}}]][[Languagetranslation::+]]

Revision as of 21:00, 13 August 2026