Template:PageTile: Difference between revisions

From Buddha-Nature
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
 
(255 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/{{{1}}} }}
<includeonly><div class="filterable {{{#userparam|col-lg-12}}}">
<div class="type-icon">{{#switch: {{#show:{{{1}}}|?BuNayPageType}}
<div class="bnw-page-tile tsdwiki-pop-off mb-2 mb-md-3 mb-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>{{#if: {{{10|}}}{{{2|}}}{{{4|}}}{{{5|}}}{{{8|}}} |
}} }}
<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}}} | {{{11}}} | {{#show:{{#if: {{{2}}}  
| {{FirstValueOfArray|{{{2}}}|;}}
| {{#if: {{{4}}}
| {{FirstValueOfArray|{{{4}}}|;}}
| {{#if: {{{5}}}
| {{FirstValueOfArray|{{{5}}}|;}}
| {{#if: {{{8}}}
| {{FirstValueOfArray|{{{8}}}|;}}
| {{#if: {{{12}}}
| {{FirstValueOfArray|{{{12}}}|;}}
|
}}
}}
}}
}}
}}|?FirstImageURL#}} }}
|size=100px
|depth=1
|link={{{1}}}
|linkclasses=
}}
}}
|{{#switch: {{#show:{{{1}}}|?BuNayPageType}}  
<div class="type-icon mt-auto">{{#switch: {{{ 9 | }}}
|Tibetan Text
|Tibetan Text
|Sanskrit Text=[[File:Text-tile.png|100px|class=depth-0|link=]]
|Sanskrit Text
|#default=
|Chinese Text
}}
|Korean Text=Text
}}
|Dissertation={{#switch: {{{ 22 | }}}
}}
|PhD diss.=PhD Diss
</div> | }}
|MA These
<div class="tile-content"><span class="font-weight-bold"><noglossary>{{#if: {{{9|}}} | {{{9|}}} | {{#if: {{{13|}}} | {{{13|}}} | {{SUBPAGENAME: {{{1}}} }} }} }}</noglossary></span>{{#if: {{{3}}}
|MA Theses=MA Thesis
| <div class="font-italic">{{{3}}}</div>
}}
| {{#if: {{{6}}}
|#default={{{ 9 | }}}
| <br>{{{6}}}
| {{#if: {{{7}}}
| <br>{{{7}}}
|
}}
}}
</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>
}}{{#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>{{#ifeq: {{{ 1 | }}} | none | | {{#widget:OverlayLink
|link=/index.php/{{urlencode:{{{ 1 | }}}|WIKI}}
|classes=no-classes
|target=_self
|title={{{ 1 | }}}
}}
}}
}}
}}
<div class="bottom-fade"></div>
</div>
</div>
</div>
</div>
</includeonly><noinclude>{{TemplateTag}}</noinclude>
</includeonly><noinclude>{{TemplateTag}}</noinclude>

Latest revision as of 10:29, 16 January 2025