Template:TopicBiblioRow: Difference between revisions

From Bodhicitta
(Prototype bibliographic topic layout)
 
(VSCode edit)
Line 7: Line 7:
page title is used as a fallback for the remainder.
page title is used as a fallback for the remainder.


The cover image is decorative and drops away on small screens. The class is
The description is collapsed rather than shown on hover. Descriptions run to
both shown as a label and written to data-class, which is what the filter
a median of about 800 characters here and a maximum over 5000, which is far
pills at the top of the page key on.
too much for a tooltip — it would cover the list and be unreadable on touch
devices. A disclosure keeps the row to one line until asked.
 
Editorial Content entries that have a narrated recording get the player
inline, matching the Listening Room. The audio is found by reverse lookup on
AssociatedArticle, so nothing needs storing on the article itself.
-->{{#if: {{{ FrontCoverImg | }}}
-->{{#if: {{{ FrontCoverImg | }}}
|<div class="topic-biblio-thumb">[[File:{{PAGENAME:{{{ FrontCoverImg | }}}}}|link={{{ 1 | }}}|class=object-fit-cover w-100 h-100]]</div>
|<div class="topic-biblio-thumb">[[File:{{PAGENAME:{{{ FrontCoverImg | }}}}}|link={{{ 1 | }}}|class=object-fit-cover w-100 h-100]]</div>
Line 24: Line 29:
}}{{#if: {{{ Pubdate | }}}
}}{{#if: {{{ Pubdate | }}}
|<span class="topic-biblio-date">{{{ Pubdate | }}}</span>
|<span class="topic-biblio-date">{{{ Pubdate | }}}</span>
|
}}{{#if: {{{ TileDescription | }}}{{{ Description | }}}
|<span class="topic-biblio-more" role="button" tabindex="0" aria-expanded="false">About this item</span>
|
|
}}
}}
</div>
</div>{{#if: {{{ TileDescription | }}}{{{ Description | }}}
</div>
|<div class="topic-biblio-desc" hidden>{{#if: {{{ TileDescription | }}}
|{{{ TileDescription | }}}
|{{{ Description | }}}
}}</div>
|}}
</div>{{#ifeq: {{{ Class | }}}
|Editorial Content
|{{#ask:[[Category:Tsadra Bodhicitta Audio]][[AssociatedArticle::{{{ 1 | }}}]]
|?#-=file
|mainlabel=-
|headers=hide
|limit=1
|link=none
|format=template
|template=TopicBiblioPlayer
|named args=yes
}}
|
}}
</div></includeonly><noinclude>{{TemplateTag}}
</div></includeonly><noinclude>{{TemplateTag}}



Revision as of 19:07, 24 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.