Template:TopicBiblioRow: Difference between revisions
(VSCode edit) |
(VSCode edit) |
||
| Line 42: | Line 42: | ||
|{{{ Citation | }}} | |{{{ Citation | }}} | ||
|{{#if: {{{ Title | }}}|{{{ Title | }}}|{{SUBPAGENAME:{{{ 1 | }}}}}}} | |{{#if: {{{ Title | }}}|{{{ Title | }}}|{{SUBPAGENAME:{{{ 1 | }}}}}}} | ||
}}]]</div> | }}]]</div><!-- | ||
AUTHOR BYLINE | |||
Only when there is no Citation. A citation already opens with the author, so | |||
printing it again would just repeat the line above; but our own editorial | |||
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 | |||
trimmed to the readable name. Present on about a quarter of Editorial pages, | |||
so the row still has to read correctly without it. | |||
-->{{#if: {{{ Citation | }}} | |||
| | |||
|{{#if: {{{ BcaAuthor | }}} | |||
|<div class="topic-biblio-byline">{{#arraymap:{{{ BcaAuthor | }}} | |||
|, | |||
|@@@ | |||
|[[@@@|{{SUBPAGENAME:@@@}}]] | |||
|, | |||
}}</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:02, 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.