|
|
| Line 45: |
Line 45: |
| the page. | | the page. |
| -->{{#ask:[[{{SUBPAGENAME}}]] | | -->{{#ask:[[{{SUBPAGENAME}}]] |
| |?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 | | |?BdrcLink |?Bio |?BiographicalInfo |?BioTib |?BnwShortPersonBio |?FirstImage |?HarLinkRaw |?HasDnzPage |?HasRtzPage |?ImagesRaw |?MainNameChi |?MainNameDev |?MainNameJap |?MainNameKor |?MainNamePhon |?MainNameTib |?TolExcerpt |?TolLinkRaw |?Yearbirth |?Yeardeath |?Subclass |?GyatsaBioTib |?AltNamesTib |?AltNamesWylie |?AltNamesOther |?PersonType |?Languagetranslation |?EmanationOf |?Studentof |?Teacherof |
| |named args=true | | |named args=true |
| |link=none | | |link=none |
| Line 52: |
Line 52: |
| |template=PersonRemote | | |template=PersonRemote |
| }}<!-- | | }}<!-- |
| | | The Names and Connections band is rendered by the PersonRemote template on |
| === NAMES & CONNECTIONS === | | Commons, from the printouts requested above. It used to be six local ask |
| | | queries here, which both duplicated data that arrives in the remote fetch |
| Categories, translation languages, and lineage relationships, in one quiet
| | anyway and depended on SetRemoteValues having imported it. |
| band between the biography and the works. Deliberately understated, with 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
| |
| |format=template |template=DisplayPersonTypes |link=none |valuesep=;
| |
| |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::+]]
| |
| |?Languagetranslation
| |
| |link=none |valuesep=; |mainlabel=- |headers=hide |import-annotation=true
| |
| }}
| |
| |;
| |
| |@@@
| |
| |<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::+]]
| |
| |?EmanationOf
| |
| |format=template |template=DisplayRelPeople |link=none |valuesep=;
| |
| |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
| |
| |format=template |template=DisplayRelPeople |link=none |valuesep=;
| |
| |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></div>
| |
| }}{{#ask:[[{{PAGENAME}}]][[Teacherof::+]]
| |
| |?Teacherof
| |
| |format=template |template=DisplayRelPeople |link=none |valuesep=;
| |
| |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></div>
| |
| }}
| |
| </div>
| |
| |
| |
| }}
| |
| <div class="my-4"><!-- | | <div class="my-4"><!-- |
| One filter box for the whole page, sitting above every section. | | One filter box for the whole page, sitting above every section. |