Template:TopicBiblioRow: Difference between revisions

From Bodhicitta
(VSCode edit)
(Optional SchoolTib in the meta line (only CommentaryRow passes it))
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="topic-biblio-row filterable" data-class="{{{ Class | }}}"><!--
<includeonly><div class="topic-biblio-row filterable{{#ifeq:{{{#userparam|}}}|title|&#32;topic-biblio-row--titled|}}" data-class="{{{ Class | }}}"><!--
One bibliographic entry on a topic page.
One bibliographic entry on a topic page.


Line 38: Line 38:
|<div class="topic-biblio-thumb topic-biblio-thumb-empty"></div>
|<div class="topic-biblio-thumb topic-biblio-thumb-empty"></div>
}}
}}
<div class="topic-biblio-body">
<div class="topic-biblio-body"><!--
<div class="topic-biblio-citation">[[{{{ 1 | }}}|{{#if: {{{ Citation | }}}
TITLE LINE (library hub pages only)
|{{{ Citation | }}}
 
|{{#if: {{{ Title | }}}|{{{ Title | }}}|{{SUBPAGENAME:{{{ 1 | }}}}}}}
Module:LibraryRows passes userparam=title, so its rows lead with the work's
title, larger, above the citation: a list sorted by citation reads author
first, and the title line keeps it scannable by work. Topic pages and the
Bibliography pass nothing and are unchanged. The userparam arrives as a
parameter named #userparam, with the hash.
-->{{#ifeq:{{{#userparam|}}}|title
|<div class="topic-biblio-title">[[{{{ 1 | }}}|{{#if: {{{ FullTitleTib | }}}
|{{I18n|en={{#if: {{{ Title | }}}|{{{ Title | }}}|{{SUBPAGENAME:{{{ 1 | }}}}}}}|bo={{{ FullTitleTib | }}}}}
|{{#if: {{{ Title | }}}|{{{ Title | }}}|{{SUBPAGENAME:{{{ 1 | }}}}}}}
}}]]</div>
|
}}
<div class="topic-biblio-citation">[[{{{ 1 | }}}|{{#if: {{{ FullTitleTib | }}}
|{{#ifeq:{{{#userparam|}}}|title
|{{#if: {{{ Citation | }}}|{{{ Citation | }}}|{{#if: {{{ Title | }}}|{{{ Title | }}}|{{SUBPAGENAME:{{{ 1 | }}}}}}}}}
|{{I18n|en={{#if: {{{ Citation | }}}|{{{ Citation | }}}|{{#if: {{{ Title | }}}|{{{ Title | }}}|{{SUBPAGENAME:{{{ 1 | }}}}}}}}}|bo={{{ FullTitleTib | }}}}}
}}
|{{#if: {{{ Citation | }}}|{{{ Citation | }}}|{{#if: {{{ Title | }}}|{{{ Title | }}}|{{SUBPAGENAME:{{{ 1 | }}}}}}}}}
}}]]<!--
}}]]<!--
TIBETAN (the language toggle)
FullTitleTib and DescriptionTib, where the item has them, are carried as the
Tibetan side of {{I18n}}, so switching the toggle to Tibetan shows them and an
item without them stays in English. On a titled row the Tibetan title goes on
the title line and the citation stays as it is, so the title is not shown twice.
--><!--
AUTHOR BYLINE
AUTHOR BYLINE


Line 72: Line 96:
<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>
|
}}{{#if: {{{ SchoolTib | }}}
|<span class="topic-biblio-school" lang="bo">{{#arraymap:{{{ SchoolTib | }}}|;|@@@|@@@|&nbsp;·&nbsp;}}</span>
|
|
}}{{#if: {{{ Pubdate | }}}
}}{{#if: {{{ Pubdate | }}}
|<span class="topic-biblio-date">{{{ Pubdate | }}}</span>
|<span class="topic-biblio-date">{{{ Pubdate | }}}</span>
|
|
}}{{#if: {{{ TileDescription | }}}{{{ Description | }}}
}}{{#if: {{{ TileDescription | }}}{{{ Description | }}}{{{ DescriptionTib | }}}
|<span class="topic-biblio-more" role="button" tabindex="0" aria-expanded="false">About this item</span>
|<span class="topic-biblio-more" role="button" tabindex="0" aria-expanded="false">About this item</span>
|
|
}}
}}
</div>{{#if: {{{ TileDescription | }}}{{{ Description | }}}
</div>{{#if: {{{ TileDescription | }}}{{{ Description | }}}{{{ DescriptionTib | }}}
|<div class="topic-biblio-desc" hidden>{{#if: {{{ TileDescription | }}}
|<div class="topic-biblio-desc" hidden>{{#if: {{{ DescriptionTib | }}}
|{{{ TileDescription | }}}
|{{I18n|en={{#if: {{{ TileDescription | }}}|{{{ TileDescription | }}}|{{#if: {{{ Description | }}}|{{{ Description | }}}|{{{ DescriptionTib | }}}}}}}|bo={{{ DescriptionTib | }}}}}
|{{{ Description | }}}
|{{#if: {{{ TileDescription | }}}|{{{ TileDescription | }}}|{{{ Description | }}}}}
}}</div>
}}</div>
|}}
|}}

Latest revision as of 12:20, 5 October 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.