Template:TopicBiblioRow: Difference between revisions

From Bodhicitta
(VSCode edit)
(VSCode edit)
Line 15: Line 15:
inline, matching the Listening Room. The audio is found by reverse lookup on
inline, matching the Listening Room. The audio is found by reverse lookup on
AssociatedArticle, so nothing needs storing on the article itself.
AssociatedArticle, so nothing needs storing on the article itself.
The cover is requested at 260px, which is larger than the 42px slot it sits
in while collapsed. That is deliberate — opening the description grows the
cover to 120px, and on a 2x display that needs 240px of real pixels. Without
an explicit size MediaWiki would serve the original file instead, which on a
long list means megabytes of images scaled down by the browser.
-->{{#if: {{{ FrontCoverImg | }}}
-->{{#if: {{{ FrontCoverImg | }}}
|<div class="topic-biblio-thumb">[[File:{{PAGENAME:{{{ FrontCoverImg | }}}}}|100px|link={{{ 1 | }}}|class=object-fit-cover w-100 h-100]]</div>
|<div class="topic-biblio-thumb">[[File:{{PAGENAME:{{{ FrontCoverImg | }}}}}|260px|link={{{ 1 | }}}|class=object-fit-cover w-100 h-100]]</div>
|<div class="topic-biblio-thumb topic-biblio-thumb-empty"></div>
|<div class="topic-biblio-thumb topic-biblio-thumb-empty"></div>
}}
}}

Revision as of 20:10, 24 August 2026


Renders one row of the bibliographic list on a topic page.

Called by Template:TopicBiblioSection with named args=yes, so the printout names in that query must match the parameter names used here.