Template:LibraryItem: Difference between revisions
From Bodhicitta
(VSCode edit) |
(VSCode edit) |
||
| Line 255: | Line 255: | ||
|icon=book-open-reader | |icon=book-open-reader | ||
}} | }} | ||
| | | | ||
}}{{#if:{{{ BilingualPage | }}} | }}{{#if:{{{ BilingualPage | }}} | ||
| Line 301: | Line 278: | ||
| | | | ||
}} | }} | ||
</div>{{TileQuery | </div><!-- | ||
CITED IN THE ŚIKṢĀSAMUCCAYA | |||
Renders only when this text is actually quoted in the SSC. The gate is the | |||
data itself: Module:SscCitations returns nothing unless the page carries a | |||
DrlPageName (an RKTS catalogue id, only set on canonical texts) that appears | |||
in a QuoteSource on an SSC segment. No flag to maintain, and no list to keep | |||
in sync as the alignment grows. | |||
The count is of QUOTATIONS, not segments. One quotation is often split over | |||
several consecutive segments — the Pitāputrasamāgamanasūtra has 62 quote | |||
segments but is quoted 14 times, and one of its runs is 36 segments long. | |||
See the module for how the runs are collapsed. | |||
Collapsed by default: the list is a click away, and nobody pays for it | |||
while browsing. | |||
-->{{#if: {{#invoke:SscCitations|count}} | |||
|<div class="ssc-citations-block mw-collapsible mw-collapsed" data-expandtext="Show the passages" data-collapsetext="Hide the passages"> | |||
<div class="ssc-citations-heading"><i class="fa-sharp-duotone fa-solid fa-quote-left fa-sm mr-2"></i>Cited {{#invoke:SscCitations|count}} times in the ''Śikṣāsamuccaya''</div> | |||
<div class="mw-collapsible-content">{{#invoke:SscCitations|list}}</div> | |||
</div> | |||
| | |||
}}{{TileQuery | |||
|query=[[Category:Book Excerpts]][[Category:{{SUBPAGENAME}}||{{PAGENAME}}]] | |query=[[Category:Book Excerpts]][[Category:{{SUBPAGENAME}}||{{PAGENAME}}]] | ||
|classes=col-md-6 mb-2 mb-md-4 | |classes=col-md-6 mb-2 mb-md-4 | ||