Template:Media: Difference between revisions
From Buddha-Nature
((by SublimeText.Mediawiker)) |
((by SublimeText.Mediawiker)) |
||
(370 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>__NOTOC__{{DEFAULTSORT:{{SUBPAGENAME}}}}{{#ifsysop: {{#if: {{{ MediaNotes | {{GetMediaValue|BuNayNotes}} }}} | {{#widget:BootstrapAlert|color=warning|title=Buddha-nature Notes|text={{{ MediaNotes | {{GetMediaValue|BuNayNotes}} }}} }} | }} | }} | ||
<div class="bnw-video-page"> | |||
{{TopSysopLinks|research|Media}}<!--{{TopLevelModule|{{GetMediaValue|BuNayGrade}}}}--><noglossary> | |||
<div class="h1 d-flex justify-content-between align-items-end pb-1 mb-1"> | |||
<div class="mr-2 text-90">{{#if: {{GetMediaValue|BuNayTitle}} | |||
| {{GetMediaValue|BuNayTitle}} | |||
| {{SUBPAGENAME}} | |||
}}{{#if: {{GetMediaValue|VideoNumberInEvent}} | |||
| - {{GetMediaValue|VideoNumberInEvent}}{{#if: {{GetMediaValue|VideoTotalNumberInEvent}} | |||
| of {{GetMediaValue|VideoTotalNumberInEvent}} | |||
| | |||
}} | |||
| | |||
}}</div> | |||
<div class="d-none d-md-block bnw-text-watermark">{{#switch: {{GetMediaValue|BuNayPageType}} | |||
|Video=Video | |||
|Audio=Audio | |||
|#default=Multimedia | |||
}}</div> | |||
</div></noglossary> | |||
<div class="d-md-none text-left bnw-text-watermark">{{#switch: {{GetMediaValue|BuNayPageType}} | |||
|Video=Video | |||
|Audio=Audio | |||
|#default=Multimedia | |||
}}</div> | |||
<div class="d-flex justify-content-between flex-wrap read-versions mb-4 mt-1">{{#if: {{GetMediaValue|Event}} | |||
|{{#if: {{#ask:[[Event::{{GetMediaValue|Event}}]][[VideoNumberInEvent::{{#expr: {{GetMediaValue|VideoNumberInEvent}}-1}}]]}} | |||
|[[{{#ask:[[Event::{{GetMediaValue|Event}}]][[VideoNumberInEvent::{{#expr: {{GetMediaValue|VideoNumberInEvent}}-1}}]]|limit=1|link=none}}|<i class="fad fa-arrow-left fa-sm"></i> Previous {{#switch: {{GetMediaValue|BuNayPageType}} | |||
|Video=Video | |||
|Audio=Audio | |||
|#default=Multimedia | |||
}}]] | |||
| | |||
}}[[{{GetMediaValue|Event}}|<div class="clipped-1-line" style="max-width: 450px;">{{GetMediaValue|Event}}</div>]]{{#if: {{#ask:[[Event::{{GetMediaValue|Event}}]][[VideoNumberInEvent::{{#expr: {{GetMediaValue|VideoNumberInEvent}}+1}}]]}} | |||
|[[{{#ask:[[Event::{{GetMediaValue|Event}}]][[VideoNumberInEvent::{{#expr: {{GetMediaValue|VideoNumberInEvent}}+1}}]]|limit=1|link=none}}|Next {{#switch: {{GetMediaValue|BuNayPageType}} | |||
|Video=Video | |||
|Audio=Audio | |||
|#default=Multimedia | |||
}} <i class="fad fa-arrow-right fa-sm"></i>]] | |||
| | |||
}} | |||
|{{#if: {{{ MediaEventPage | }}} | |||
|{{#if: {{#ask:[[MediaEventPage::{{{ MediaEventPage | }}}]][[MediaNumberInEvent::{{#expr: {{{ MediaNumberInEvent | }}}-1}}]]}} | |||
|[[{{#ask:[[MediaEventPage::{{{ MediaEventPage | }}}]][[MediaNumberInEvent::{{#expr: {{{ MediaNumberInEvent | }}}-1}}]]|limit=1|link=none}}|<i class="fad fa-arrow-left fa-sm"></i> Previous {{#switch: {{GetMediaValue|BuNayPageType}} | |||
|Video=Video | |||
|Audio=Audio | |||
|#default=Multimedia | |||
}}]] | |||
| | |||
}}[[{{{ MediaEventPage | }}}]]{{#if: {{#ask:[[MediaEventPage::{{{ MediaEventPage | }}}]][[MediaNumberInEvent::{{#expr: {{{ MediaNumberInEvent | }}}+1}}]]}} | |||
|[[{{#ask:[[MediaEventPage::{{{ MediaEventPage | }}}]][[MediaNumberInEvent::{{#expr: {{{ MediaNumberInEvent | }}}+1}}]]|limit=1|link=none}}|Next {{#switch: {{GetMediaValue|BuNayPageType}} | |||
|Video=Video | |||
|Audio=Audio | |||
|#default=Multimedia | |||
}} <i class="fad fa-arrow-right fa-sm"></i>]] | |||
| | |||
}} | |||
| | |||
}} | |||
}} | |||
</div> | |||
<div class=" | <div class="row mt-5 mb-5 sticky-container"> | ||
<div class=" | <div class="col-lg-9 pr-lg-4">{{#if: {{GetMediaValue|MediaSeries}} | ||
| {{GetMediaSeriesMembers | {{GetMediaValue|MediaSeries}} | {{GetMediaValue|Description}} }} | |||
| {{#if: {{GetMediaValue|StreamingService}} | |||
|{{#ev:{{#switch:{{GetMediaValue|StreamingService}} | |||
|YouTube=youtube | |||
|Vimeo=vimeo | |||
{{# | |SoundCloud=soundcloud | ||
|TED Talk=ted | |||
|Vine=vine | |||
}} | |||
|{{GetMediaValue|VideoStreamID}} | |||
|830{{#ifeq: {{GetMediaValue|StreamingService}} | SoundCloud |x450 | }} | |||
|center | |||
}} | |||
|{{#ifexist:{{GetMediaValue|pdflink}} | |||
|{{#if: {{GetMediaValue|frontcoverimg}} | |||
|<center>[[{{GetMediaValue|frontcoverimg}}|x300px]]</center> | |||
| | |||
}} | |||
| | <center>{{InsertMedia|{{PAGENAME}} }}</center> | ||
|{{#if: {{GetMediaValue|ItemUrl}} | |||
| <div class="float-left mr-4">{{#widget:HTML5AudioWrapper | |||
|filepath={{GetMediaValue|ItemUrl}} | |||
}}</div> | |||
| | |||
}} | |||
| | |||
}} | }} | ||
}} | }} | ||
}}{{#if: {{GetMediaValue|LocalMediaFile}} | | |||
{{{!}} class="smwtable-clean mt-4 w-100 border-bottom" | |||
{{!}}- | |||
{{!}} Listen to audio only or download mp3: | |||
{{!}} [[{{GetMediaValue|LocalMediaFile}}]] | |||
{{!}}} | |||
| | |||
}} | }} | ||
</div> | |||
<div class="col- | {{#if: {{{ TileDescription | }}} | | <div class="mt-3 p-bl-fix"> | ||
{{GetMediaValue|Description}}</div> }} | |||
}}{{#if: {{{ TileDescription | }}} | | |||
<div class="container"> | |||
<div class="row my-4 text-90"> | |||
<div class="col-md-2 description-th pr-0 pt-1 pb-3">'''Description'''</div> | |||
<div class="col-md-10">{{{ TileDescription | }}}</div> | |||
</div> | </div> | ||
}} | </div> | }}{{#if: {{GetMediaValue|abstract}} | | ||
<h3 class="font-italic border-0 mt-4 mb-1 p-0 text-120">Abstract from the Author</h3> | |||
<div class="h3 mb-4">{{GetMediaValue|Fulltitle}}</div> | |||
<div> | |||
{{GetMediaValue|abstract}}</div> | }}{{#if: {{{ RelatedWritings | }}}{{{ MoreWikipediaSource | }}} | | |||
<h3 class="mt-5">Sources Mentioned</h3> | |||
<div class="row">{{#arraymap: {{{ RelatedWritings | }}} | ; | @@@ | | |||
{{PageTileQuery | |||
|query=[[@@@]] | |||
|classes=col-lg-6 | |||
}} | }}{{#if: {{{ MoreWikipediaSource | }}} | |||
| {{{ MoreWikipediaSource | }}} | |||
| | |||
}} | |||
</div> | }}{{#if: {{{ RelatedPubs | }}}{{{ MoreExternalPubs | }}} | | |||
<h3 class="mt-5">Secondary Publications Mentioned</h3> | |||
<div class="row">{{#arraymap: {{{ RelatedPubs | }}} | ; | @@@ | | |||
{{PageTileQuery | |||
|query=[[@@@]] | |||
|classes=col-12 citation-only | |||
}} | }}{{#if: {{{ MoreExternalPubs | }}} | |||
| {{{ MoreExternalPubs | }}} | |||
| | |||
}} | |||
</div> | }}{{#if: {{{ PeopleMentioned | }}} | | |||
= | <h3 class="mt-5">People Mentioned</h3> | ||
<div class="d-flex flex-wrap justify-content-start">{{#arraymap: {{{ PeopleMentioned | }}} | ; | @@@ | | |||
{{PeopleMentionedMedia|@@@}} | }} | |||
</div> | }}{{#if: {{{ RelatedMedia | }}} | | |||
{{ | |||
{ | |||
| | |||
<h3 class="mt-5">Related Multimedia</h3> | |||
<div class="row">{{#arraymap: {{{ RelatedMedia | }}} | ; | @@@ | | |||
< | {{PageTileQuery | ||
|query=[[@@@]] | |||
|classes=col-lg-6 | |||
}} | }} | |||
</div> | }}{{#if: {{{ BnwVideoFeaturedContent | }}} | | |||
<h3 class="mt-5">More on this recording</h3> | |||
{{{ BnwVideoFeaturedContent | }}} | }} | {{{ BnwVideoFeaturedContent | }}} | }} | ||
<h3 class="link-no-border mt-5">About the {{#switch: {{GetMediaValue|BuNayPageType}} | |||
{{#arraymap:{{# | |Video=video | ||
|Audio=recording | |||
|media | |||
}}</h3> | |||
{| class="table table-responsive mt-4 nowrap-th" {{#if: {{GetMediaValue|PerformerRaw}} | | |||
{{!}}- | |||
! Featuring | |||
{{!}} {{#arraymap: {{#if: {{{ PerformerOverwrite | }}} | {{{ PerformerOverwrite | }}} | {{GetMediaValue|PerformerRaw}} }} | |||
|; | |||
|@@@ | |||
|{{#if: {{#show:@@@|?MainNamePhon}} | |||
|{{#show:@@@|?MainNamePhon}} | |||
|{{#show:@@@|?Namefirst}} {{#show:@@@|?Namelast}} | |||
}} | |||
|, | |||
}} | }}{{#if: {{GetMediaValue|CreatorRaw}} |<br> | |||
{{!}}- | |||
! Creator | |||
{{!}} {{#arraymap: {{GetMediaValue|CreatorRaw}} | |||
|; | |||
|@@@ | |||
|@@@ | |||
|, | |||
}} | }}{{#if: {{GetMediaValue|director}} |<br> | |||
{{!}}- | |||
! Director | |||
{{!}} {{GetMediaValue|director}} | }}{{#if: {{GetMediaValue|producer}} |<br> | |||
{{!}}- | |||
! Producer | |||
{{!}} {{GetMediaValue|producer}} | }}{{#if: {{GetMediaValue|DrlPublisher}} |<br> | |||
{{!}}- | |||
! Publisher | |||
{{!}} {{GetMediaValue|DrlPublisher}} | }}{{#if: {{GetMediaValue|translator}} |<br> | |||
{{!}}- | |||
! Translator | |||
{{!}} {{GetMediaValue|translator}} | }}{{#if: {{GetMediaValue|contributors}} |<br> | |||
{{!}}- | |||
! Contributors | |||
{{!}} {{GetMediaValue|contributors}} | }}{{#ifeq: {{GetMediaValue|subtitle}} | true |<br> | |||
{{!}}- | |||
! Includes Subtitles | |||
{{!}} Yes | }}{{#if: {{GetMediaValue|Event}} |<br> | |||
{{!}}- | |||
! Event | |||
{{!}} {{GetMediaValue|Event}} ({{GetMediaValue|Eventdate}}{{#if: {{GetMediaValue|location}} |, {{GetMediaValue|location}}|}}) | }}{{#if: {{GetMediaValue|MediaSeries}} |<br> | |||
{{!}}- | |||
! Media Series | |||
{{!}} {{GetMediaValue|MediaSeries}}{{#if: {{GetMediaValue|totalvolumes}} | |||
|<br>{{GetMediaValue|totalvolumes}} Parts/Tracks | |||
| | |||
}} | |||
| | |||
}}{{#if: {{GetMediaValue|WebsiteName}} |<br> | |||
{{!}}- | |||
! Related Website | |||
{{!}} {{GetMediaValue|WebsiteName}} | }}{{#if: {{GetMediaValue|Website}}{{GetMediaValue|WebsiteLabel}} |<br> | |||
{{!}}- | |||
! Video Web Location | |||
{{!}} {{#if: {{GetMediaValue|WebsiteLabel}} | |||
| [{{GetMediaValue|Website}} {{GetMediaValue|WebsiteLabel}}] | |||
| {{GetMediaValue|Website}} | |||
}} | }}{{#if: {{GetMediaValue|MediaCreationDate}} | <br> | |||
{{!}}- | |||
! Creation Date | |||
{{!}} {{GetMediaValue|MediaCreationDate}} | }} | |||
|- | |||
! Citation | |||
| {{#if: {{{ CitationOverride | }}} | {{{ CitationOverride | }}} | {{GetMediaValue|citation}} }} | |||
|} | |||
</div> | </div> | ||
{{StickySideBar | |||
|columns=3<!-- | |||
|BuNayGrade={{GetMediaValue|BuNayGrade}}--> | |||
|BuNayPageType={{GetMediaValue|BuNayPageType}} | |||
|Performer={{#if: {{{ PerformerOverwrite | }}} | {{{ PerformerOverwrite | }}} | {{GetMediaValue|PerformerRaw}} }} | |||
|DrlPublisher={{GetMediaValue|DrlPublisher}} | |||
|RelatedContent= | |||
{{SidebarTopicsList | |||
|topics={{GetMediaValue|BuNayTopicTags}} | |||
}}{{#if: {{GetMediaValue|VideoTotalNumberInEvent}} | {{#ifexpr: {{GetMediaValue|VideoTotalNumberInEvent}}>2 | | |||
{{VideosInEvent | |||
|event={{GetMediaValue|Event}} | |||
}} | }} | }}<!-- | |||
{{RelatedVideo | |||
|label=Related Video | |||
|service=youtube | |||
|id=biUu5zODklY | |||
}} | |||
{{RelatedTilesQuery | |||
|label=Introductory Content | |||
|query=[[BuNayGrade::I]] | |||
}} | |||
{{RelatedTilesQuery | |||
|label=Read the scripture | |||
|pages=Ratnagotravibhāga_Mahāyānottaratantraśāstra; Ratnagotravibhāgavyākhyā; Mahāyānottaratantraśāstraṭippanī; Mahāyānottaratantraśāstropadeśa; When the Clouds Part | |||
}}--> | |||
}} | |||
</div> | |||
</div>{{#arraymap:Multimedia;{{# | <div class="clearfix"></div>{{#if: {{GetMediaValue|BuNayRelevance}} | | ||
<blockquote> | |||
<i>{{GetMediaValue|BuNayRelevance}}</i> | |||
</blockquote> | }} | |||
</div>{{#set: | |||
Abstract={{GetMediaValue|abstract}} | |||
|BuNayFeatured={{GetMediaValue|BuNayFeatured}} | |||
|BuNayTitle={{GetMediaValue|BuNayTitle}} | |||
|BuNayPageType={{GetMediaValue|BuNayPageType}} | |||
|BuNayRelevance={{GetMediaValue|BuNayRelevance}} | |||
|BuNayLevel={{GetMediaValue|BuNayLevel}}|+sep=, | |||
|BuNayGrade={{{ BuNayGrade | {{GetMediaValue|BuNayGrade}} }}} | |||
|BuNayApproach={{GetMediaValue|BuNayApproach}}|+sep=, | |||
|BuNayKarlDescription={{GetMediaValue|BuNayKarlDescription}} | |||
|BuNaySourceInfo={{GetMediaValue|BuNaySourceInfo}} | |||
|BuNayRating={{GetMediaValue|BuNayRating}} | |||
|BuNayMediaQual={{GetMediaValue|BuNayMediaQual}} | |||
|BuNayInteractive={{GetMediaValue|BuNayInteractive}} | |||
|BuNayCopyright={{GetMediaValue|BuNayCopyright}} | |||
|BuNayNotes={{{ MediaNotes | {{GetMediaValue|BuNayNotes}} }}} | |||
|BuNayKanoAvailable={{GetMediaValue|BuNayKanoAvailable}} | |||
|BuNayKanoCitation={{GetMediaValue|BuNayKanoCitation}} | |||
|citation={{GetMediaValue|citation}} | |||
|Creator={{GetMediaValue|CreatorRaw}} | |||
|Description={{GetMediaValue|Description}} | |||
|Fulltitle={{GetMediaValue|Fulltitle}} | |||
|ItemUrl={{GetMediaValue|ItemUrl}} | |||
|MediaContentType={{GetMediaValue|MediaContentType}} | |||
|MediaLocation={{GetMediaValue|MediaLocation}} | |||
|Performer={{GetMediaValue|PerformerRaw}}|+sep=; | |||
|PerformerRaw={{GetMediaValue|PerformerRaw}} | |||
|StreamingService={{GetMediaValue|StreamingService}} | |||
|VideoStreamID={{GetMediaValue|VideoStreamID}} | |||
|Website={{GetMediaValue|Website}} | |||
|WebsiteName={{GetMediaValue|WebsiteName}} | |||
|director={{GetMediaValue|director}} | |||
|producer={{GetMediaValue|producer}} | |||
|BuNayPublisher={{GetMediaValue|DrlPublisher}} | |||
|translator={{GetMediaValue|translator}} | |||
|contributors={{GetMediaValue|contributors}} | |||
|Event={{GetMediaValue|Event}} | |||
|eventdate={{GetMediaValue|Eventdate}} | |||
|location={{GetMediaValue|location}} | |||
|MediaSeries={{GetMediaValue|MediaSeries}} | |||
|volumenumber={{GetMediaValue|volumenumber}} | |||
|totalvolumes={{GetMediaValue|totalvolumes}} | |||
|MediaCreationDate={{GetMediaValue|MediaCreationDate}} | |||
|Pubdate={{GetMediaValue|MediaCreationDate}} | |||
|duration={{GetMediaValue|duration}} | |||
|mediaformat={{GetMediaValue|mediaformat}} | |||
|organization={{GetMediaValue|organization}} | |||
|copyright={{GetMediaValue|copyright}} | |||
|relatedpages={{GetMediaValue|relatedpages}} | |||
|frontcoverimg={{#if: {{{ frontcoverimg | }}} | {{{ frontcoverimg | }}} | {{GetMediaValue|frontcoverimg}} }} | |||
|WebsiteLabel={{GetMediaValue|WebsiteLabel}} | |||
|subtitle={{GetMediaValue|subtitle}} | |||
|subclass={{GetMediaValue|subclass}} | |||
|pdflink={{GetMediaValue|pdflink}} | |||
|ExtraCategories={{{ ExtraCategories | }}} | |||
|ValuesToRedirect={{SUBPAGENAME}};{{GetMediaValue|BuNayTitle}};{{GetMediaValue|Fulltitle}};{{GetMediaValue|MediaSeries}} | |||
|People={{#arraymap: {{GetMediaValue|CreatorRaw}}; {{GetMediaValue|PerformerRaw}}; {{GetMediaValue|director}}; {{GetMediaValue|translator}}; {{GetMediaValue|contributors}} | |||
|; | |||
|@@@ | |||
|@@@ | |||
|; | |||
}}|+sep=; | |||
|Titles={{GetMediaValue|BuNayTitle}}; {{GetMediaValue|Fulltitle}}; {{GetMediaValue|MediaSeries}}; {{GetMediaValue|subtitle}}; {{SUBPAGENAME}} | |||
|BuNayTopicTags={{#arraymap:{{GetMediaValue|BuNayTopicTags}}|;|@@@|@@@|;}}|+sep=; | |||
|TileDescription={{#if: {{{ TileDescription | }}} | |||
| {{{ TileDescription | }}} | |||
| {{#if: {{GetMediaValue|Description}} | |||
| {{GetMediaValue|Description}} | |||
| ''{{GetMediaValue|citation}}'' | |||
}} | |||
}} | |||
|Has parent page=Multimedia | |||
|RelatedWritings={{{ RelatedWritings | }}}|+sep=; | |||
|PeopleMentioned={{{ PeopleMentioned | }}}|+sep=; | |||
|MediaEventPage={{{ MediaEventPage | }}} | |||
|MediaNumberInEvent={{{ MediaNumberInEvent | }}} | |||
|RelatedMedia={{{ RelatedMedia | }}}|+sep=; | |||
|TilePhoto={{{ TilePhoto | }}} | |||
|PageTilePhoto={{#if: {{{ PageTilePhoto | }}} | |||
| {{#ifexist: File:{{{ PageTilePhoto | }}} | |||
| {{{ PageTilePhoto | }}} | |||
| {{#titleparts:{{PAGENAME:{{{ PageTilePhoto | }}}}}}} | |||
}} | |||
| {{#if: {{{ PerformerOverwrite | }}} | |||
| {{#titleparts:{{PAGENAME:{{#show:{{FirstValueOfArray|{{{ PerformerOverwrite | }}}|;}}|?FirstImage#}}}}}} | |||
| {{#ifexist: {{FirstValueOfArray|{{GetMediaValue|PerformerRaw}}|;}} | |||
|{{#titleparts:{{PAGENAME:{{#show:{{FirstValueOfArray|{{GetMediaValue|PerformerRaw}}|;}}|?FirstImage#}}}}}} | |||
|Media.jpeg | |||
}} | |||
}} | |||
}} | |||
|VideoNumberInEvent={{GetMediaValue|VideoNumberInEvent}} | |||
|VideoTotalNumberInEvent={{GetMediaValue|VideoTotalNumberInEvent}} | |||
|CitationOverride={{{ CitationOverride | }}} | |||
|InvisibleFilterContent={{#arraymap:{{GetMediaValue|citation}}; {{GetMediaValue|BuNayTitle}}; {{GetMediaValue|BuNayTopicTags}}; {{PeopleNames|{{GetMediaValue|Performer}}}}; {{PeopleTopicsOtherNames|{{GetMediaValue|BuNayTopicTags}}}}; {{GetMediaValue|Fulltitle}} | |||
|; | |||
|@@@ | |||
|@@@ | |||
|; | |||
}} | |||
|TibetanContent={{GetMediaValue|TibetanContent}} | |||
|TibetanTitle={{GetMediaValue|TibetanTitle}} | |||
|TibetanDescription={{GetMediaValue|TibetanDescription}} | |||
|language={{GetMediaValue|language}}|+sep=; | |||
|LocalMediaFile={{GetMediaValue|LocalMediaFile}} | |||
|PostToAudioStream={{{ PostToAudioStream | }}} | |||
}}{{CreateRedirects | |||
|{{#titleparts:{{SUBPAGENAME}}}};{{#titleparts:{{GetMediaValue|BuNayTitle}}}};{{#titleparts:{{GetMediaValue|Fulltitle}}}};{{#titleparts:{{GetMediaValue|MediaSeries}}}} | |||
}}{{#arraymap:Library Items;Multimedia;{{#switch:{{GetMediaValue|subclass}} | |||
|Video=Videos | |Video=Videos | ||
|Audio=Audio | |Audio=Audio | ||
|Other | |Other Multimedia | ||
}};{{{ | }};{{{ ExtraCategories | }}};{{{ PostStatus | }}}|;|@@@|[[Category:@@@]]|}} | ||
</includeonly><noinclude>{{TemplateTag}}</noinclude> | </includeonly><noinclude>{{TemplateTag}}</noinclude> |