Template:TopicBiblioRow: Difference between revisions
(VSCode edit) |
(VSCode edit) |
||
| Line 28: | Line 28: | ||
If covers ever render as links again, probe a few widths before suspecting | If covers ever render as links again, probe a few widths before suspecting | ||
the file, the ForeignFileRepo, or this template. | the file, the ForeignFileRepo, or this template. | ||
The cover deliberately has no link= parameter, so its anchor points at the | |||
file page with class="image". That is the hook MultimediaViewer binds to; | |||
pointing link= at the item page suppresses the viewer, because MMV only | |||
upgrades images that link to their own file description page. The citation | |||
beside it already links to the item, so no navigation is lost. | |||
-->{{#if: {{{ FrontCoverImg | }}} | -->{{#if: {{{ FrontCoverImg | }}} | ||
|<div class="topic-biblio-thumb">[[File:{{PAGENAME:{{{ FrontCoverImg | }}}}}|200px|class=object-fit-cover w-100 h-100]]</div> | |<div class="topic-biblio-thumb">[[File:{{PAGENAME:{{{ FrontCoverImg | }}}}}|200px|class=object-fit-cover w-100 h-100]]</div> | ||
Revision as of 21:45, 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.