Template:TopicBiblioSection: Difference between revisions
(VSCode edit) |
(VSCode edit) |
||
| Line 4: | Line 4: | ||
}}<div class="topic-biblio-list">{{#ask:{{{ query | }}} | }}<div class="topic-biblio-list">{{#ask:{{{ query | }}} | ||
|?Citation | |?Citation | ||
|?BcaAuthor | |?BcaAuthor|+link=all<!-- | ||
link=none below keeps citations and titles as plain text, but the byline | |||
should be clickable and should read as a person's name. Without the per- | |||
printout override this prints the raw page title, "People/Houlton, S.", | |||
instead of the display title, "Simon Houlton". | |||
--> | |||
|?Class | |?Class | ||
|?Title | |?Title | ||
Revision as of 13:04, 25 August 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. |