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. It is queried with
BcaAuthor arrives as a raw page title ("People/Houlton, S."), because the
?BcaAuthor rather than ?BcaAuthor#, so SMW renders the links itself, using
query runs with link=none and would otherwise flatten it to plain text. The
each person's display title — "Simon Houlton" rather than "Houlton, S.".
link is built here instead, and MediaWiki applies the person's display title,
so it reads "Simon Houlton".


Deliberately NOT split with #arraymap: these page names contain commas
Deliberately NOT split with #arraymap: these page names contain commas, so
("People/Houlton, S."), so splitting on comma breaks one author into two red
splitting on comma turns one author into two red links.
links. SMW already joins multiple values itself.


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
Line 62: Line 62:
|
|
|{{#if: {{{ BcaAuthor | }}}
|{{#if: {{{ BcaAuthor | }}}
|<div class="topic-biblio-byline">{{{ BcaAuthor | }}}</div>
|<div class="topic-biblio-byline">[[{{{ BcaAuthor | }}}]]</div>
|
|
}}
}}

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