Template:DisplayTmSection: Difference between revisions

From Bodhicitta
(VSCode edit)
(VSCode edit)
 
(3 intermediate revisions by the same user not shown)
Line 7: Line 7:
<div class="d-inline-block text-70 line14 pb-1">{{#show:{{{ Text | }}}|?FullTitleTib}}</div>|}}
<div class="d-inline-block text-70 line14 pb-1">{{#show:{{{ Text | }}}|?FullTitleTib}}</div>|}}
</div>
</div>
|SubTitle={{#arraymap:{{FirstValueOfArray|{{#ask:[[{{{ Translation | }}}]]
<!--
Byline. The author of the work is shown at full size; the translator or editor
follows in smaller type, prefixed trans. or ed. so the two roles are not read
as a single list of collaborators. The prefix is chosen by which property the
name actually came from, so a work with an editor but no translator is
labelled correctly.
--> |SubTitle=<span class="tm-byline-author">{{#arraymap:{{FirstValueOfArray|{{#ask:[[{{{ Translation | }}}]]
|?SourceAuthor# |mainlabel=- |headers=hide |sep=; |valuesep=; |link=none
|?SourceAuthor# |mainlabel=- |headers=hide |sep=; |valuesep=; |link=none
}};{{#ask:[[{{{ Translation | }}}]]
}};{{#ask:[[{{{ Translation | }}}]]
|?BcaAuthor# |mainlabel=- |headers=hide |sep=; |valuesep=; |link=none
|?BcaAuthor# |mainlabel=- |headers=hide |sep=; |valuesep=; |link=none
}}|;}};{{FirstValueOfArray|{{#ask:[[{{{ Translation | }}}]]
|?Translator# |mainlabel=- |headers=hide |sep=; |valuesep=; |link=none
}};{{#ask:[[{{{ Translation | }}}]]
|?Editor# |mainlabel=- |headers=hide |sep=; |valuesep=; |link=none
}}|;}}
}}|;}}
|;
|;
Line 20: Line 22:
|[[@@@]]
|[[@@@]]
|&nbsp;·&nbsp;
|&nbsp;·&nbsp;
}} – {{#if: {{{ DisplayChapterTitle | }}}  
}}</span>{{#if:{{FirstValueOfArray|{{#ask:[[{{{ Translation | }}}]]
|?Translator# |mainlabel=- |headers=hide |sep=; |valuesep=; |link=none
}};{{#ask:[[{{{ Translation | }}}]]
|?Editor# |mainlabel=- |headers=hide |sep=; |valuesep=; |link=none
}}|;}}
|<span class="tm-byline-role"><span class="tm-byline-role-label">{{#if:{{#ask:[[{{{ Translation | }}}]]|?Translator# |mainlabel=- |headers=hide |sep=; |valuesep=; |link=none}}|trans.|ed.}}</span>{{#arraymap:{{FirstValueOfArray|{{#ask:[[{{{ Translation | }}}]]
|?Translator# |mainlabel=- |headers=hide |sep=; |valuesep=; |link=none
}};{{#ask:[[{{{ Translation | }}}]]
|?Editor# |mainlabel=- |headers=hide |sep=; |valuesep=; |link=none
}}|;}}
|;
|@@@
|[[@@@]]
|&nbsp;·&nbsp;
}}</span>
|
}}<!--
Chapter title on its own line, below the byline. Previously it ran on after
the names separated by a dash, which read as though the chapter were another
collaborator. Splitting it makes the heading say who made the work, then
which part of it you are looking at.
--><div class="tm-byline-chapter">{{#if: {{{ DisplayChapterTitle | }}}
|{{{ DisplayChapterTitle | }}}
|{{{ DisplayChapterTitle | }}}
|{{SUBPAGENAME}}
|{{SUBPAGENAME}}
Line 30: Line 53:
}}
}}
|&colon;&nbsp;
|&colon;&nbsp;
}}
}}</div>
|watermark=Bilingual
|watermark=Bilingual
}}{{#ifeq:{{{ IncludeJumbo | }}}|yes|
}}{{#ifeq:{{{ IncludeJumbo | }}}|yes|
Line 99: Line 122:
|template=SectionNavigation
|template=SectionNavigation
}}
}}
<div class="text-110 text-center font-weight-bold mt-2 mb-3">Search</div>
<div class="tm-sidebar-heading">Search</div>
<div class="text-110 mb-4">{{#widget:filterInput
<div class="tm-sidebar-block">{{#widget:filterInput
|class=border border-carnelian
|class=border border-carnelian
|placeholder=Filter segments
|placeholder=Filter segments
}}</div>{{#if:{{{ Translation | }}}|
}}</div>{{#if:{{{ Translation | }}}|
<div class="text-110 text-center font-weight-bold mt-2 mb-3">People</div>
<div class="tm-sidebar-heading">People</div>
<div class="mt-4">{{#arraymap:{{Uniquify|{{#if:{{{ PeopleOverride | }}}
<div class="tm-sidebar-block tm-sidebar-people">{{#arraymap:{{Uniquify|{{#if:{{{ PeopleOverride | }}}
|{{{ PeopleOverride | }}}
|{{{ PeopleOverride | }}}
|{{#ask:[[{{{ Translation | }}}]]
|{{#ask:[[{{{ Translation | }}}]]
Line 122: Line 145:
|
|
}}</div>|}}{{#if:{{#show:{{{ Translation | }}}|?Citation}}
}}</div>|}}{{#if:{{#show:{{{ Translation | }}}|?Citation}}
|<div class="text-110 text-center font-weight-bold mt-2 mb-3">Source</div>
|<div class="tm-sidebar-heading">Source</div>
<div class="mb-4">{{#show:{{{ Translation | }}}|?Citation}}</div>
<div class="tm-sidebar-block tm-sidebar-citation">{{#show:{{{ Translation | }}}|?Citation}}</div>
|
|
}}
}}

Latest revision as of 14:21, 19 August 2026