Template:TopicBiblioRow: Difference between revisions

From Bodhicitta
(VSCode edit)
(VSCode edit)
Line 49: Line 49:
writing carries no citation at all, which left those rows with no byline.
writing carries no citation at all, which left those rows with no byline.


BcaAuthor is a page-type property holding People/ pages, so the link text is
BcaAuthor is a page-type property holding People/ pages. It is queried with
trimmed to the readable name. Present on about a quarter of Editorial pages,
?BcaAuthor rather than ?BcaAuthor#, so SMW renders the links itself, using
so the row still has to read correctly without it.
each person's display title — "Simon Houlton" rather than "Houlton, S.".
 
Deliberately NOT split with #arraymap: these page names contain commas
("People/Houlton, S."), so splitting on comma breaks one author into two red
links. SMW already joins multiple values itself.
 
Present on about a quarter of Editorial pages, so the row still has to read
correctly without it.
-->{{#if: {{{ Citation | }}}
-->{{#if: {{{ Citation | }}}
|
|
|{{#if: {{{ BcaAuthor | }}}
|{{#if: {{{ BcaAuthor | }}}
|<div class="topic-biblio-byline">{{#arraymap:{{{ BcaAuthor | }}}
|<div class="topic-biblio-byline">{{{ BcaAuthor | }}}</div>
|,
|@@@
|[[@@@|{{SUBPAGENAME:@@@}}]]
|,&nbsp;
}}</div>
|
|
}}
}}

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