Template:CommentaryRow: Difference between revisions
(Commentary as a library row: links to its full text, shows its school) |
(Pass userparam through (title line)) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{TopicBiblioRow | <includeonly>{{TopicBiblioRow | ||
|1={{#ifexist:{{{ 1 | }}}/Full text|{{{ 1 | }}}/Full text|{{{ 1 | }}}}} | |1={{#ifexist:{{{ 1 | }}}/Full text|{{{ 1 | }}}/Full text|{{{ 1 | }}}}} | ||
|#userparam={{{#userparam|}}} | |||
|Citation={{{ Citation | }}} | |Citation={{{ Citation | }}} | ||
|BcaAuthor={{{ BcaAuthor | }}} | |BcaAuthor={{{ BcaAuthor | }}} | ||
| Line 14: | Line 15: | ||
}}</includeonly><noinclude>{{TemplateTag}} | }}</includeonly><noinclude>{{TemplateTag}} | ||
A library row ([[Template:TopicBiblioRow]]) that leads to the work's full text. Used for the | |||
section of the full-text pages ([[Template:FullTextSubpage]]). | Commentaries section of the full-text pages ([[Template:FullTextSubpage]]) and for the | ||
Library of All Tibetan Texts on [[Reading Room]] (via [[Module:LibraryRows]], <code>template=CommentaryRow</code>). | |||
Two things differ from an ordinary row, both carried over from the old commentary tiles: | Two things differ from an ordinary row, both carried over from the old commentary tiles: | ||
| Line 21: | Line 23: | ||
* the row links to the commentary's own <code>/Full text</code> page when there is one, | * the row links to the commentary's own <code>/Full text</code> page when there is one, | ||
otherwise to the item page; | otherwise to the item page; | ||
* the | * the school, in Tibetan (<code>SchoolTib</code>), is shown beside the class, when the query | ||
prints it (the full-text pages do; the Reading Room does not). | |||
A <code>userparam=title</code> on the query (Module:LibraryRows <code>title=yes</code>) is passed | |||
through, giving the title line above the citation. | |||
Called from an <code>#ask</code> with <code>format=template</code> and | Called from an <code>#ask</code> with <code>format=template</code> and | ||
<code>named args=yes</code>, so the printout names must match the parameters here. | <code>named args=yes</code>, so the printout names must match the parameters here. | ||
</noinclude> | </noinclude> | ||
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 textpage 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.