Template:CommentaryRow: Difference between revisions
((by SublimeText.Mediawiker)) |
(Pass userparam through (title line)) |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{TopicBiblioRow | ||
|1={{#ifexist:{{{ 1 | }}}/Full text|{{{ 1 | }}}/Full text|{{{ 1 | }}}}} | |||
|#userparam={{{#userparam|}}} | |||
|Citation={{{ Citation | }}} | |||
|BcaAuthor={{{ BcaAuthor | }}} | |||
|Class={{{ Class | }}} | |||
|Title={{#if:{{{ Title | }}}|{{{ Title | }}}|{{SUBPAGENAME:{{{ 1 | }}}}}}} | |||
|FrontCoverImg={{{ FrontCoverImg | }}} | |||
|Pubdate={{{ Pubdate | }}} | |||
|TileDescription={{{ TileDescription | }}} | |||
|Description={{{ Description | }}} | |||
|FullTitleTib={{{ FullTitleTib | }}} | |||
|DescriptionTib={{{ DescriptionTib | }}} | |||
|SchoolTib={{{ SchoolTib | }}} | |||
}}</includeonly><noinclude>{{TemplateTag}} | |||
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]], <code>template=CommentaryRow</code>). | |||
Two things differ from an ordinary row, both carried over from the old commentary tiles: | |||
* the row links to the commentary's own <code>/Full text</code> page when there is one, | |||
otherwise to the item page; | |||
* 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 | |||
<code>named args=yes</code>, so the printout names must match the parameters here. | |||
</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.