Template:TopicBiblioRow: Difference between revisions
(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 | BcaAuthor is a page-type property holding People/ pages. It is queried with | ||
?BcaAuthor rather than ?BcaAuthor#, so SMW renders the links itself, using | |||
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"> | |<div class="topic-biblio-byline">{{{ BcaAuthor | }}}</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.