Template:TopicBiblioRow: Difference between revisions
(Optional title line above the citation (userparam=title; library hub rows only)) |
(Tibetan title and description (FullTitleTib, DescriptionTib) for the language toggle) |
||
| Line 47: | Line 47: | ||
parameter named #userparam, with the hash. | parameter named #userparam, with the hash. | ||
-->{{#ifeq:{{{#userparam|}}}|title | -->{{#ifeq:{{{#userparam|}}}|title | ||
|<div class="topic-biblio-title">[[{{{ 1 | }}}|{{#if: {{{ Title | }}}|{{{ Title | }}}|{{SUBPAGENAME:{{{ 1 | }}}}}}}]]</div> | |<div class="topic-biblio-title">[[{{{ 1 | }}}|{{#if: {{{ FullTitleTib | }}} | ||
|{{I18n|en={{#if: {{{ Title | }}}|{{{ Title | }}}|{{SUBPAGENAME:{{{ 1 | }}}}}}}|bo={{{ FullTitleTib | }}}}} | |||
|{{#if: {{{ Title | }}}|{{{ Title | }}}|{{SUBPAGENAME:{{{ 1 | }}}}}}} | |||
}}]]</div> | |||
| | | | ||
}} | }} | ||
<div class="topic-biblio-citation">[[{{{ 1 | }}}|{{#if: {{{ Citation | }}} | <div class="topic-biblio-citation">[[{{{ 1 | }}}|{{#if: {{{ FullTitleTib | }}} | ||
|{{#ifeq:{{{#userparam|}}}|title | |||
|{{#if: {{{ Title | }}}|{{{ Title | }}}|{{SUBPAGENAME:{{{ 1 | }}}}}}} | |{{#if: {{{ Citation | }}}|{{{ Citation | }}}|{{#if: {{{ Title | }}}|{{{ Title | }}}|{{SUBPAGENAME:{{{ 1 | }}}}}}}}} | ||
|{{I18n|en={{#if: {{{ Citation | }}}|{{{ Citation | }}}|{{#if: {{{ Title | }}}|{{{ Title | }}}|{{SUBPAGENAME:{{{ 1 | }}}}}}}}}|bo={{{ FullTitleTib | }}}}} | |||
}} | |||
|{{#if: {{{ Citation | }}}|{{{ Citation | }}}|{{#if: {{{ Title | }}}|{{{ Title | }}}|{{SUBPAGENAME:{{{ 1 | }}}}}}}}} | |||
}}]]<!-- | }}]]<!-- | ||
TIBETAN (the language toggle) | |||
FullTitleTib and DescriptionTib, where the item has them, are carried as the | |||
Tibetan side of {{I18n}}, so switching the toggle to Tibetan shows them and an | |||
item without them stays in English. On a titled row the Tibetan title goes on | |||
the title line and the citation stays as it is, so the title is not shown twice. | |||
--><!-- | |||
AUTHOR BYLINE | AUTHOR BYLINE | ||
| Line 87: | Line 100: | ||
|<span class="topic-biblio-date">{{{ Pubdate | }}}</span> | |<span class="topic-biblio-date">{{{ Pubdate | }}}</span> | ||
| | | | ||
}}{{#if: {{{ TileDescription | }}}{{{ Description | }}} | }}{{#if: {{{ TileDescription | }}}{{{ Description | }}}{{{ DescriptionTib | }}} | ||
|<span class="topic-biblio-more" role="button" tabindex="0" aria-expanded="false">About this item</span> | |<span class="topic-biblio-more" role="button" tabindex="0" aria-expanded="false">{{I18n|en=About this item|bo=ངོ་སྤྲོད།}}</span> | ||
| | | | ||
}} | }} | ||
</div>{{#if: {{{ TileDescription | }}}{{{ Description | }}} | </div>{{#if: {{{ TileDescription | }}}{{{ Description | }}}{{{ DescriptionTib | }}} | ||
|<div class="topic-biblio-desc" hidden>{{#if: {{{ | |<div class="topic-biblio-desc" hidden>{{#if: {{{ DescriptionTib | }}} | ||
|{{{ TileDescription | }}} | |{{I18n|en={{#if: {{{ TileDescription | }}}|{{{ TileDescription | }}}|{{#if: {{{ Description | }}}|{{{ Description | }}}|{{{ DescriptionTib | }}}}}}}|bo={{{ DescriptionTib | }}}}} | ||
|{{{ Description | }}} | |{{#if: {{{ TileDescription | }}}|{{{ TileDescription | }}}|{{{ Description | }}}}} | ||
}}</div> | }}</div> | ||
|}} | |}} | ||
Revision as of 12:01, 5 October 2026
Renders one row of the bibliographic list on a topic page.
Called by Template:TopicBiblioSection with named args=yes, so the
printout names in that query must match the parameter names used here.