Template:CommentaryRow: Difference between revisions

From Bodhicitta
((by SublimeText.Mediawiker))
(Pass userparam through (title line))
 
(8 intermediate revisions by the same user not shown)
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">
|#userparam={{{#userparam|}}}
<div class="text-150 font-serif mt-4">[[{{{ BookPage | }}}|{{{ BookTitle | }}}]] <span class="pl-2 text-60 font-weight-bold green-text">{{SmwTooltip
|Citation={{{ Citation | }}}
|title=Citation
|BcaAuthor={{{ BcaAuthor | }}}
|show=citation <i class="fa-regular fa-message-lines text-60"></i>
|Class={{{ Class | }}}
|content={{{ Citation | }}}
|Title={{#if:{{{ Title | }}}|{{{ Title | }}}|{{SUBPAGENAME:{{{ 1 | }}}}}}}
}}</span>
|FrontCoverImg={{{ FrontCoverImg | }}}
</div>
|Pubdate={{{ Pubdate | }}}
<div class="d-flex">
|TileDescription={{{ TileDescription | }}}
<div class="version-toggles">
|Description={{{ Description | }}}
{{VersionToggle|text=Tibetan|id={{{ id | }}}Tibetan|class=active}}
|FullTitleTib={{{ FullTitleTib | }}}
{{VersionToggle|text=English|id={{{ id | }}}English|class=active}}
|DescriptionTib={{{ DescriptionTib | }}}
</div>
|SchoolTib={{{ SchoolTib | }}}
<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>
}}</includeonly><noinclude>{{TemplateTag}}
</div>
 
</div>
A library row ([[Template:TopicBiblioRow]]) that leads to the work's full text. Used for the
<div class="my-3">{{#ask:[[TransMemID::{{{ TransMemID | }}}]][[RootTextChapVerseNum::{{SUBPAGENAME}}]][[SegmentFormat::!Deprecated]]
Commentaries section of the full-text pages ([[Template:FullTextSubpage]]) and for the
|?Tibetan
Library of All Tibetan Texts on [[Reading Room]] (via [[Module:LibraryRows]], <code>template=CommentaryRow</code>).
|?Wylie
 
|?English
Two things differ from an ordinary row, both carried over from the old commentary tiles:
|?SegmentFormat
 
|?SourceSegmentOrder
* the row links to the commentary's own <code>/Full text</code> page when there is one,
|?SourceSabcheNumber
  otherwise to the item page;
|sort=SourceSegmentOrder
* the school, in Tibetan (<code>SchoolTib</code>), is shown beside the class, when the query
|order=asc
  prints it (the full-text pages do; the Reading Room does not).
|format=template
 
|template=BilingualRow
A <code>userparam=title</code> on the query (Module:LibraryRows <code>title=yes</code>) is passed
|link=none
through, giving the title line above the citation.
|limit=500
 
}}
Called from an <code>#ask</code> with <code>format=template</code> and
</div>
<code>named args=yes</code>, so the printout names must match the parameters here.
</div>
</noinclude>
</div>{{#widget:Triggers.js|id={{{ id | }}}}}</includeonly>

Latest revision as of 12:31, 5 October 2026


A library row (Template:TopicBiblioRow) that leads to the work's full text. Used for the Commentaries section of the full-text pages (Template:FullTextSubpage) and for the Library of All Tibetan Texts on Reading Room (via Module:LibraryRows, template=CommentaryRow).

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 school, in Tibetan (SchoolTib), is shown beside the class, when the query
 prints it (the full-text pages do; the Reading Room does not).

A userparam=title on the query (Module:LibraryRows title=yes) is passed through, giving the title line above the citation.

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