Template:AudioEpisodeCard: Difference between revisions

From Bodhicitta
(VSCode edit)
Tag: Reverted
(VSCode edit)
Tag: Manual revert
Line 2: Line 2:
<div class="audio-episode-thumb">[[File:{{PAGENAME:{{#show:{{{ AssociatedArticle | }}}|?FrontCoverImg#}}}}|link={{{ AssociatedArticle | }}}|class=object-fit-cover w-100 h-100]]</div>
<div class="audio-episode-thumb">[[File:{{PAGENAME:{{#show:{{{ AssociatedArticle | }}}|?FrontCoverImg#}}}}|link={{{ AssociatedArticle | }}}|class=object-fit-cover w-100 h-100]]</div>
<div class="audio-episode-body">
<div class="audio-episode-body">
<div class="audio-episode-title">[[{{{ AssociatedArticle | }}}]]</div>
<div class="audio-episode-title">[[{{{ AssociatedArticle | }}}|{{SUBPAGENAME:{{{ AssociatedArticle | }}}}}]]</div>
<div class="audio-episode-meta"><span class="audio-episode-narrator">{{#if: {{{ AudioPerformerName | }}}
<div class="audio-episode-meta"><span class="audio-episode-narrator">{{#if: {{{ AudioPerformerName | }}}
|[[{{{ AudioPerformerName | }}}|{{SUBPAGENAME:{{{ AudioPerformerName | }}}}}]]
|[[{{{ AudioPerformerName | }}}|{{SUBPAGENAME:{{{ AudioPerformerName | }}}}}]]

Revision as of 14:18, 18 August 2026


One row in the Listening Room list.

These recordings are narrations of specific site pages rather than standalone episodes, so the row leads with the article it narrates and treats the narrator and date as secondary metadata. The player is a plain File:… transclusion, which MediaWiki renders as a native <audio controls> element — that already exposes duration and scrubbing, so neither is duplicated in the markup.

The edit pencil is wrapped in .tws-group-only so it stays out of the way for readers without making the page uncacheable. See tws.js.