Template:TopicBiblioSection: Difference between revisions

From Bodhicitta
(Keep the glossary out of the deferred rows (each chunk is its own parse))
(Comment wording)
Line 23: Line 23:
|sort={{{ sort | Class,Citation }}}
|sort={{{ sort | Class,Citation }}}
|order={{{ order | asc,asc }}}<!--
|order={{{ order | asc,asc }}}<!--
The deferred rows are parsed on their own, so the page's __NOGLOSSARY__
The deferred rows are parsed on their own, so the page-level no-glossary switch
does not reach them and the glossary marked up every chunk. A wrapper whose
does not reach them and the glossary marked up every chunk. A wrapper whose
class is exactly "noglossary" keeps it out: about 45% faster per chunk.
class is exactly "noglossary" keeps it out: about 45% faster per chunk.

Revision as of 19:15, 2 October 2026


One section of the bibliographic list on a topic page — an optional heading with a count, then the rows themselves.

Renders nothing when the query is empty, so a topic that has no Books (or no Multimedia, and so on) simply does not show that heading rather than leaving an empty section behind.

The query is @deferred, so the rows load after the page paints. On a topic with a few hundred entries that keeps the page responsive.

Parameters

Parameter Description
query SMW query for this section. Required.
heading Optional heading. Omit for a single flat list.
limit Max rows. Defaults to 500.
sort / order Passed to the query.