Template:TopicPage: Difference between revisions

From Bodhicitta
(VSCode edit)
(VSCode edit)
 
(One intermediate revision by the same user not shown)
Line 45: Line 45:
<div class="col-12">{{#if:{{#ask:[[TermTopics::{{#titleparts:{{SUBPAGENAME}}}}||{{ucfirst:{{#titleparts:{{SUBPAGENAME}}}}}}]]}}
<div class="col-12">{{#if:{{#ask:[[TermTopics::{{#titleparts:{{SUBPAGENAME}}}}||{{ucfirst:{{#titleparts:{{SUBPAGENAME}}}}}}]]}}
|<div class="topic-biblio-controls">
|<div class="topic-biblio-controls">
<div class="row">
<div class="topic-biblio-filter">{{#widget:filterInput|placeholder=Filter {{#ask:[[TermTopics::{{#titleparts:{{SUBPAGENAME}}}}||{{ucfirst:{{#titleparts:{{SUBPAGENAME}}}}}}]]|format=count}} entries...}}</div><!--
<div class="col-md-7 col-lg-5">{{#widget:filterInput|placeholder=Filter {{#ask:[[TermTopics::{{#titleparts:{{SUBPAGENAME}}}}||{{ucfirst:{{#titleparts:{{SUBPAGENAME}}}}}}]]|format=count}} entries...}}</div>
</div><!--
Class pills. Each is a plain filter link handled by tws.js, keyed on the
Class pills. Each is a plain filter link handled by tws.js, keyed on the
data-class attribute the rows carry. Only classes that actually occur on this
data-class attribute the rows carry. Only classes that actually occur on this
Line 80: Line 78:
<!--
<!--
SMALL TOPIC — one flat list, sorted so classes still cluster together.
SMALL TOPIC — one flat list, sorted so classes still cluster together.
Editorial Content is pulled out ahead of it rather than left to the sort.
SMW sorts Class alphabetically, which would bury our own writing between
Dissertations and Multimedia; it belongs first on a topic page. Both parts
render headless, so they still read as a single list.
--> |<div class="filterableContent">{{TopicBiblioSection
--> |<div class="filterableContent">{{TopicBiblioSection
|query=[[TermTopics::{{#titleparts:{{SUBPAGENAME}}}}||{{ucfirst:{{#titleparts:{{SUBPAGENAME}}}}}}]]
|query=[[Class::Editorial Content]][[TermTopics::{{#titleparts:{{SUBPAGENAME}}}}||{{ucfirst:{{#titleparts:{{SUBPAGENAME}}}}}}]]
|sort=Citation
|order=asc
}}{{TopicBiblioSection
|query=[[Class::!Editorial Content]][[TermTopics::{{#titleparts:{{SUBPAGENAME}}}}||{{ucfirst:{{#titleparts:{{SUBPAGENAME}}}}}}]]
}}</div>
}}</div>
}}
}}

Latest revision as of 13:31, 25 August 2026


Topic pages present a bibliography, so entries are listed as citations rather than tiles. Citation is set on 99% of tagged items and already carries author, title, publisher and year in one formatted line.

There is no sidebar. Measured across the 1,108 topics in use, the median topic carries seven items and 96% carry fifteen or fewer, so the table-of-contents rail that used to sit here helped a reader scroll past a single screen — and on the 39% of topics with five items or fewer it listed headings for empty sections.

Parameters

Parameter Description
description Intro text, shown when the topic has no matching Key Terms entry.
groupThreshold Item count above which the list splits into per-class sections. Defaults to 25.