Template:LibraryItem: Difference between revisions
From Bodhicitta
(VSCode edit) |
(VSCode edit) |
||
| Line 136: | Line 136: | ||
|<div class="col-12"> | |<div class="col-12"> | ||
|{{#if:{{{ FrontCoverImg | }}} | |{{#if:{{{ FrontCoverImg | }}} | ||
|<div class="col-md-3">[[File:{{PAGENAME:{{{ FrontCoverImg | }}}}}|500px|class=w-100 h-auto rounded tsdwiki-depth-1 mb-4 | |<div class="col-md-3 tws-lightbox"><!-- | ||
No link= on the cover: an empty link= suppresses the anchor entirely, and | |||
the anchor is what the lightbox binds to. Left as a normal file link it | |||
targets the file page, which is also where MediaWiki emits the | |||
.mw-file-source href the lightbox reads the full-size URL from. | |||
See the .tws-lightbox handler in tws.js. | |||
-->[[File:{{PAGENAME:{{{ FrontCoverImg | }}}}}|500px|class=w-100 h-auto rounded tsdwiki-depth-1 mb-4]]</div> | |||
<div class="col-md-9"> | <div class="col-md-9"> | ||
|{{GetItemData | |{{GetItemData | ||