Template:PageTile: Difference between revisions

From Buddha-Nature
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
 
(123 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><noglossary><div class="bnw-page-tile rounded pop-hover mt-1 mb-4 position-relative link-no-border">{{#ifeq: {{{1}}} | none | | {{#widget:OverlayLink|link=/index.php/{{urlencode:{{{1}}}|WIKI}}|classes=no-classes}} }}
<includeonly><div class="filterable {{{#userparam|col-lg-12}}}">
<div class="tile-image-wrapper border-right">{{#if: {{{10|}}}
<div class="bnw-page-tile tsdwiki-pop-off m-2 m-md-3 m-lg-4 position-relative link-no-border">
| [[{{{10}}}|200px|class=height100]]
<div class="tile-image-wrapper">{{#widget:DivWithBackImg
| {{#if: {{{19|}}}  
|src={{filepath:{{{ 18 | }}}|{{#switch: {{{ 9 | }}}
| <div class="text-cover-clip {{#switch: {{#show:{{{1}}}|?CoverFileOrient}}
|Tibetan Text
|portrait (book)=d-inline-block
|Sanskrit Text
|d-flex justify-content-center
|Chinese Text
}}">[[{{{19|}}}|x200px|class=text-cover-tile|]]</div>
|Korean Text=800
| {{#widget:DivWithBackImg
|300
|src={{#switch: {{{18}}}
}} }}
| Tibetan Text={{filepath:Text-tile.png}}
|imageposition=center
| Sanskrit Text={{filepath:Sutra.jpg}}
|classes=tile-image
| {{#if: {{{11|}}}{{{2|}}}{{{4|}}}{{{5|}}}{{{8|}}}{{{12|}}}{{{17|}}}{{#show:{{{1}}}|?FirstImageURL#}}
|styles=none
| {{#if: {{{11|}}}
}}
| {{{11}}}
<div class="type-icon mt-auto">{{#switch: {{{ 9 | }}}
| {{#if: {{{2|}}}  
|Tibetan Text
| {{#show:{{FirstValueOfArray|{{{2}}}|;}}|?FirstImageURL#}}
|Sanskrit Text
| {{#if: {{{4|}}}
|Chinese Text
| {{#show:{{FirstValueOfArray|{{{4}}}|;}}|?FirstImageURL#}}
|Korean Text=Text
| {{#if: {{{5|}}}  
|Dissertation={{#switch: {{{ 22 | }}}
| {{#show:{{FirstValueOfArray|{{{5}}}|;}}|?FirstImageURL#}}
|PhD diss.=PhD Diss
| {{#if: {{{8|}}}
|MA These
| {{#show:{{FirstValueOfArray|{{{8}}}|;}}|?FirstImageURL#}}
|MA Theses=MA Thesis
| {{#if: {{{12|}}}
| {{#show:{{FirstValueOfArray|{{{12}}}|;}}|?FirstImageURL#}}
| {{#if: {{{17|}}}  
| {{{17}}}
| {{filepath:Teaching_Mudra_2_reduced_opacity.png|200}}
}}
}}
}}
}}
}}
}}
}}
|
}}
}}
|imageposition=center
|classes=tile-image
}}
}}
|#default={{{ 9 | }}}
}}
}}
}}
</div>
<div class="type-icon mt-auto">{{#switch: {{{18}}}
|Article=Article
|Book=Book
|Audio=Audio
|Video=Video
|Tibetan Text
|Sanskrit Text=Text
|Person=Person
|Interview=Interview
|Dissertation={{#switch:{{#show:{{{1}}}|?subclass}}
|PhD diss.=PhD Diss
|MA These=MA Thesis
}}
|{{{ watermark | }}}
}}
</div>
</div>
</div>
<div class="tile-content">{{#ifeq: {{{ 11 | }}} | Commentary |
<div class="tile-content">{{#if: {{{ content | }}}
<div class="tile-content-header d-inline clipped-2-lines">{{#if: {{{ 2 | }}}
|{{{ content | }}}
|{{#arraymap: {{{ 2 | }}}
|{{#ifeq: {{{21|}}}
|;
|Commentary
|@@@
|<span class="font-weight-bold">{{#if: {{{22|}}} | {{{22|}}} | {{{13|}}} }}</span><br>''by {{#show: {{{4}}} |?MainNamePhon }}''
|{{#if: {{#show: People/@@@ |?MainNamePhon }}
|<span class="font-weight-bold">{{#if: {{#show:{{{1}}}|?namelast}}
| {{#show: People/@@@ |?MainNamePhon }}
| {{#show:{{{1}}}|?namefirst}} {{#show:{{{1}}}|?namelast}}
| {{#show: @@@ |?MainNamePhon }}
| {{#if: {{{9|}}}
| {{{9}}}  
| {{#if: {{{13|}}}  
| {{{13}}}
| {{SUBPAGENAME: {{{1}}} }}
}}
}}
}}</span>
}}{{#ifeq: {{{20|}}}
| true
|&nbsp;· <span style="font-style: italic; color: darkred;">full text available</span>
|
}}{{#if: {{{3|}}}
| <div class="font-italic">{{{3}}}</div>
| {{#if: {{{6|}}}
| <br>{{{6}}}
| {{#if: {{{7|}}}
| <br>{{{7}}}
| {{#if: {{{14|}}}
| <br>{{{14}}}
| {{#if: {{{15|}}}
|<br>{{{15}}}
| {{#if: {{{16|}}}
|<br>{{{16}}}
|
}}
}}
}}
|,&nbsp;
}}:&nbsp;
|
}}''{{#if: {{{ 13 | }}}
| {{{ 13 | }}}
| {{#if: {{{ 12 | }}}
| {{{ 12 | }}}
| {{{ 14 | }}}
}}
}}
}}''
</div> |
<div class="tile-content-header clipped-2-lines">{{#ifeq: {{{ 9 | }}}
| Dissertation
| ''{{{ 2 | }}}'':&nbsp;
|
}}{{#if: {{{ 23 | }}}
| {{{ 24 | }}} {{{ 23 | }}}
| {{#if: {{{ 17 | }}}
| {{{ 17 | }}}
| {{#if: {{{ 6 | }}}
| {{{ 6 | }}}
| {{#if: {{{ 8 | }}}
| {{{ 8 | }}}
| {{SUBPAGENAME: {{{ 1 | }}} }}
}}
}}
}}
}}
}}
}}
</div>
}}{{#ifeq: {{{ 10 | }}} | true |
<div class="tile-fulltext"><i class="fa-sharp-duotone fa-book-open" title="Full text available"></i></div> | }}
<hr class="tile-divider">
<div class="tile-description clipped-4-lines">{{{ 15 | }}}</div>
<div class="tile-citation clipped-4-lines font-italic">{{{ 3 | }}}</div>
</div>
<div class="invisible">{{#if: {{{ 25 | }}}
|{{{ 25 | }}}
|{{#arraymap:{{{ 3 | }}}; {{{ 5 | }}}; {{{ 8 | }}}; {{{ 12 | }}}; {{{ 13 | }}}; {{{ 14 | }}}; {{{ 16 | }}}; {{{ 19 | }}}; {{{ 20 | }}}; {{{ 21 | }}}; {{BookPeopleSubobjectData|{{{ 1 | }}}}}; {{PeopleNames|{{{ 2 | }}}; {{{ 4 | }}}; {{{ 7 | }}}}}; {{PeopleTopicsOtherNames|{{{ 16 | }}}}}
|;
|@@@
|@@@
|;
}}
}}
}}
}}
<div class="invisible"></div>
</div>{{#ifeq: {{{ 1 | }}} | none | | {{#widget:OverlayLink
<div class="bottom-fade"></div>
|link=/index.php/{{urlencode:{{{ 1 | }}}|WIKI}}
|classes=no-classes
|target=_self
|title={{{ 1 | }}}
}}
}}
</div>
</div>
</div></noglossary>
</div>
</includeonly><noinclude>{{TemplateTag}}</noinclude>
</includeonly><noinclude>{{TemplateTag}}</noinclude>

Latest revision as of 04:52, 16 August 2024