Template:TopicBiblioRow: Difference between revisions
(VSCode edit) |
(Optional title line above the citation (userparam=title; library hub rows only)) |
||
| Line 1: | Line 1: | ||
<includeonly><div class="topic-biblio-row filterable" data-class="{{{ Class | }}}"><!-- | <includeonly><div class="topic-biblio-row filterable{{#ifeq:{{{#userparam|}}}|title| topic-biblio-row--titled|}}" data-class="{{{ Class | }}}"><!-- | ||
One bibliographic entry on a topic page. | One bibliographic entry on a topic page. | ||
| Line 38: | Line 38: | ||
|<div class="topic-biblio-thumb topic-biblio-thumb-empty"></div> | |<div class="topic-biblio-thumb topic-biblio-thumb-empty"></div> | ||
}} | }} | ||
<div class="topic-biblio-body"> | <div class="topic-biblio-body"><!-- | ||
TITLE LINE (library hub pages only) | |||
Module:LibraryRows passes userparam=title, so its rows lead with the work's | |||
title, larger, above the citation: a list sorted by citation reads author | |||
first, and the title line keeps it scannable by work. Topic pages and the | |||
Bibliography pass nothing and are unchanged. The userparam arrives as a | |||
parameter named #userparam, with the hash. | |||
-->{{#ifeq:{{{#userparam|}}}|title | |||
|<div class="topic-biblio-title">[[{{{ 1 | }}}|{{#if: {{{ Title | }}}|{{{ Title | }}}|{{SUBPAGENAME:{{{ 1 | }}}}}}}]]</div> | |||
| | |||
}} | |||
<div class="topic-biblio-citation">[[{{{ 1 | }}}|{{#if: {{{ Citation | }}} | <div class="topic-biblio-citation">[[{{{ 1 | }}}|{{#if: {{{ Citation | }}} | ||
|{{{ Citation | }}} | |{{{ Citation | }}} | ||
Revision as of 18:50, 2 October 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.