Template:TopicBiblioRow: Difference between revisions

From Bodhicitta
(VSCode edit)
(VSCode edit)
Line 42: Line 42:
|{{{ Citation | }}}
|{{{ Citation | }}}
|{{#if: {{{ Title | }}}|{{{ Title | }}}|{{SUBPAGENAME:{{{ 1 | }}}}}}}
|{{#if: {{{ Title | }}}|{{{ Title | }}}|{{SUBPAGENAME:{{{ 1 | }}}}}}}
}}]]</div><!--
}}]]<!--
AUTHOR BYLINE
AUTHOR BYLINE


Only when there is no Citation. A citation already opens with the author, so
Inline, straight after the title, so the line reads the way a citation does
printing it again would just repeat the line above; but our own editorial
— work then author — rather than stacking a second line under it.
writing carries no citation at all, which left those rows with no byline.
 
Only when there is no Citation: a citation already opens with the author, so
printing it again would just repeat the line above. Our own editorial writing
carries no citation at all, which is what left those rows with no attribution.


BcaAuthor arrives as a raw page title ("People/Houlton, S."), because the
BcaAuthor arrives as a raw page title ("People/Houlton, S."), because the
Line 58: Line 61:


Present on about a quarter of Editorial pages, so the row still has to read
Present on about a quarter of Editorial pages, so the row still has to read
correctly without it.
correctly without it. No leading space before the span: it is supplied in CSS
so the separator moves with the styling.
-->{{#if: {{{ Citation | }}}
-->{{#if: {{{ Citation | }}}
|
|{{#if: {{{ BcaAuthor | }}}
|<div class="topic-biblio-byline">[[{{{ BcaAuthor | }}}]]</div>
|
|
}}
|{{#if: {{{ BcaAuthor | }}}
}}
|<span class="topic-biblio-byline">[[{{{ BcaAuthor | }}}]]</span>
|
}}
}}</div>
<div class="topic-biblio-meta">{{#if: {{{ Class | }}}
<div class="topic-biblio-meta">{{#if: {{{ Class | }}}
|<span class="topic-biblio-class">{{{ Class | }}}</span>
|<span class="topic-biblio-class">{{{ Class | }}}</span>

Revision as of 13:10, 25 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.