Template:PageTile: Difference between revisions

From Buddha-Nature
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
 
(248 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="bnw-page-tile rounded pop-hover mt-1 mb-4 position-relative link-no-border">{{#widget:OverlayLink|link=/index.php/{{urlencode:{{{1}}}|WIKI}} }}
<includeonly><div class="filterable {{{#userparam|col-lg-12}}}">
<div class="type-icon">{{#switch: {{#show:{{{1}}}|?BuNayPageType}}
<div class="bnw-page-tile tsdwiki-pop-off m-2 m-md-3 m-lg-4 position-relative link-no-border">
|Article=Article
<div class="tile-image-wrapper">{{#widget:DivWithBackImg
|Book=Book
|src={{filepath:{{{ 18 | }}}|{{#switch: {{{ 9 | }}}
|Audio=Audio
|Tibetan Text
|Video=Video
|Sanskrit Text
|Tibetan Text
|Chinese Text
|Sanskrit Text=Text
|Korean Text=800
}}
|300
</div>
}} }}
<div class="float-left mr-3">{{#if: {{{10|}}} |
|imageposition=center
[[{{{10|}}}|100px|class=depth-0|link=]]
|classes=tile-image
|{{#if: {{{11}}}{{{2}}}{{{4}}}{{{5}}}{{{8}}}{{{12}}}  
|styles=none
| {{#widget:PersonPageRoundImage
}}
|filepath={{#if: {{{11}}}  
<div class="type-icon mt-auto">{{#switch: {{{ 9 | }}}
| {{{11}}}  
|Tibetan Text
| {{#if: {{{2}}}  
|Sanskrit Text
| {{#show:{{FirstValueOfArray|{{{2}}}|;}}|?FirstImageURL#}}
|Chinese Text
| {{#if: {{{4}}}  
|Korean Text=Text
| {{#show:{{FirstValueOfArray|{{{4}}}|;}}|?FirstImageURL#}}
|Dissertation={{#switch: {{{ 22 | }}}
| {{#if: {{{5}}}  
|PhD diss.=PhD Diss
| {{#show:{{FirstValueOfArray|{{{5}}}|;}}|?FirstImageURL#}}
|MA These
| {{#if: {{{8}}}  
|MA Theses=MA Thesis
| {{#show:{{FirstValueOfArray|{{{8}}}|;}}|?FirstImageURL#}}
}}
| {{#if: {{{12}}}  
|#default={{{ 9 | }}}
| {{#show:{{FirstValueOfArray|{{{12}}}|;}}|?FirstImageURL#}}
}}
| {{filepath:Teaching_Mudra_2_reduced_opacity.png}}
</div>
}}
</div>
<div class="tile-content">{{#ifeq: {{{ 11 | }}} | Commentary |
<div class="tile-content-header d-inline clipped-2-lines">{{#if: {{{ 2 | }}}
|{{#arraymap: {{{ 2 | }}}
|;
|@@@
|{{#if: {{#show: People/@@@ |?MainNamePhon }}
| {{#show: People/@@@ |?MainNamePhon }}
| {{#show: @@@ |?MainNamePhon }}
}}
|,&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>
|size=100px
}}{{#ifeq: {{{ 10 | }}} | true |
|depth=1
<div class="tile-fulltext"><i class="fa-sharp-duotone fa-book-open" title="Full text available"></i></div> | }}
|link={{{1}}}
<hr class="tile-divider">
|linkclasses=
<div class="tile-description clipped-4-lines">{{{ 15 | }}}</div>
}}
<div class="tile-citation clipped-4-lines font-italic">{{{ 3 | }}}</div>
|{{#switch: {{#show:{{{1}}}|?BuNayPageType}}  
</div>
|Tibetan Text
<div class="invisible">{{#if: {{{ 25 | }}}
|Sanskrit Text=[[File:Text-tile.png|100px|class=depth-0|link=]]
|{{{ 25 | }}}
|#default=
|{{#arraymap:{{{ 3 | }}}; {{{ 5 | }}}; {{{ 8 | }}}; {{{ 12 | }}}; {{{ 13 | }}}; {{{ 14 | }}}; {{{ 16 | }}}; {{{ 19 | }}}; {{{ 20 | }}}; {{{ 21 | }}}; {{BookPeopleSubobjectData|{{{ 1 | }}}}}; {{PeopleNames|{{{ 2 | }}}; {{{ 4 | }}}; {{{ 7 | }}}}}; {{PeopleTopicsOtherNames|{{{ 16 | }}}}}
|;
|@@@
|@@@
|;
}}
}}
}}
}}
}}
</div>{{#ifeq: {{{ 1 | }}} | none | | {{#widget:OverlayLink
</div>
|link=/index.php/{{urlencode:{{{ 1 | }}}|WIKI}}
<div class="tile-content"><span class="font-weight-bold"><noglossary>{{#if: {{{9|}}} | {{{9|}}} | {{#if: {{{13|}}} | {{{13|}}} | {{SUBPAGENAME: {{{1}}} }} }} }}</noglossary></span>{{#if: {{{3}}}
|classes=no-classes
| <div class="font-italic">{{{3}}}</div>
|target=_self
| {{#if: {{{6}}}
|title={{{ 1 | }}}
| <br>{{{6}}}
}}  
| {{#if: {{{7}}}
| <br>{{{7}}}
|
}}
}}
}}
}}
<div class="bottom-fade"></div>
</div>
</div>
</div>
</div>
</includeonly><noinclude>{{TemplateTag}}</noinclude>
</includeonly><noinclude>{{TemplateTag}}</noinclude>

Latest revision as of 04:52, 16 August 2024