Template:CommentaryRow: Difference between revisions

From Bodhicitta
((by SublimeText.Mediawiker))
(Commentary as a library row: links to its full text, shows its school)
Line 1: Line 1:
<includeonly><div class="row">
<includeonly>{{TopicBiblioRow
<div id="{{{ id | }}}Content" class="col-12 d-none">
|1={{#ifexist:{{{ 1 | }}}/Full text|{{{ 1 | }}}/Full text|{{{ 1 | }}}}}
<div class="d-inline-block">
|Citation={{{ Citation | }}}
<div class="text-150 font-serif mt-4">[[{{{ BookPage | }}}|{{{ BookTitle | }}}]] <span class="pl-2 text-60 font-weight-bold green-text">{{SmwTooltip
|BcaAuthor={{{ BcaAuthor | }}}
|title=Citation
|Class={{{ Class | }}}
|show=citation <i class="fa-regular fa-message-lines text-60"></i>
|Title={{#if:{{{ Title | }}}|{{{ Title | }}}|{{SUBPAGENAME:{{{ 1 | }}}}}}}
|content={{{ Citation | }}}
|FrontCoverImg={{{ FrontCoverImg | }}}
}}</span>
|Pubdate={{{ Pubdate | }}}
</div>
|TileDescription={{{ TileDescription | }}}
<div class="d-flex">
|Description={{{ Description | }}}
<div class="version-toggles">
|FullTitleTib={{{ FullTitleTib | }}}
{{VersionToggle|text=Tibetan|id={{{ id | }}}TibetanTrigger|class=active}}
|DescriptionTib={{{ DescriptionTib | }}}
{{VersionToggle|text=English|id={{{ id | }}}EnglishTrigger|class=active}}
|SchoolTib={{{ SchoolTib | }}}
</div>
}}</includeonly><noinclude>{{TemplateTag}}
<div class="ml-auto text-80 mt-2">[[Books/{{{ BookPage | }}}/Bilingual|Bilingual Edition of This Text <i class="fa-solid fa-angle-right"></i>]]</div>
 
</div>
One commentary as a library row ([[Template:TopicBiblioRow]]), for the Commentaries
</div>
section of the full-text pages ([[Template:FullTextSubpage]]).
<div class="my-3">{{#ask:[[TransMemID::{{{ TransMemID | }}}]][[RootTextChapVerseNum::{{SUBPAGENAME}}]][[SegmentFormat::!Deprecated]]
 
|?Tibetan
Two things differ from an ordinary row, both carried over from the old commentary tiles:
|?Wylie
 
|?English
* the row links to the commentary's own <code>/Full text</code> page when there is one,
|?SegmentFormat
  otherwise to the item page;
|?SegmentOrder
* the commentary's school, in Tibetan (<code>SchoolTib</code>), is shown beside the class.
|?SourceSabcheNumber
 
|sort=SegmentOrder
Called from an <code>#ask</code> with <code>format=template</code> and
|order=asc
<code>named args=yes</code>, so the printout names must match the parameters here.
|format=template
</noinclude>
|template=BilingualRow
|userparam={{{ id | }}}
|link=none
|limit=500
}}
</div>
</div>
</div>{{#widget:LanguageTriggers|id={{{ id | }}}}}</includeonly>

Revision as of 12:20, 5 October 2026


One commentary as a library row (Template:TopicBiblioRow), for the Commentaries section of the full-text pages (Template:FullTextSubpage).

Two things differ from an ordinary row, both carried over from the old commentary tiles:

  • the row links to the commentary's own /Full text page when there is one,
 otherwise to the item page;
  • the commentary's school, in Tibetan (SchoolTib), is shown beside the class.

Called from an #ask with format=template and named args=yes, so the printout names must match the parameters here.