Template:CustomTile: Difference between revisions
From Buddha-Nature
((by SublimeText.Mediawiker)) |
((by SublimeText.Mediawiker)) |
||
| Line 1: | Line 1: | ||
<includeonly>{{#ifeq: }} | <includeonly>{{#ifeq: {{{ expandable | }}} | true | | ||
<div class="filterable text-left p-0 overlay-tile"> | |||
<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}} }} | |||
<div class="tile-image-wrapper">{{#if: {{{10|}}} | |||
| [[{{{10}}}|200px|class=height100]] | |||
| {{#if: {{{19|}}} | |||
| <div class="text-cover-clip {{#switch: {{#show:{{{1}}}|?CoverFileOrient}} | |||
|portrait (book)=d-inline-block | |||
|d-flex justify-content-center | |||
}}">[[{{{19|}}}|x200px|class=text-cover-tile|]]</div> | |||
| {{#widget:DivWithBackImg | |||
|src={{#switch: {{{18}}} | |||
| Tibetan Text={{filepath:Text-tile.png}} | |||
| Sanskrit Text={{filepath:Sutra.jpg}} | |||
| {{#if: {{{11|}}}{{{2|}}}{{{4|}}}{{{5|}}}{{{8|}}}{{{12|}}}{{{17|}}}{{#show:{{{1}}}|?FirstImageURL#}} | |||
| {{#if: {{{11|}}} | |||
| {{{11}}} | |||
| {{#if: {{{2|}}} | |||
| {{#show:{{FirstValueOfArray|{{{2}}}|;}}|?FirstImageURL#}} | |||
| {{#if: {{{4|}}} | |||
| {{#show:{{FirstValueOfArray|{{{4}}}|;}}|?FirstImageURL#}} | |||
| {{#if: {{{5|}}} | |||
| {{#show:{{FirstValueOfArray|{{{5}}}|;}}|?FirstImageURL#}} | |||
| {{#if: {{{8|}}} | |||
| {{#show:{{FirstValueOfArray|{{{8}}}|;}}|?FirstImageURL#}} | |||
| {{#if: {{{12|}}} | |||
| {{#show:{{FirstValueOfArray|{{{12}}}|;}}|?FirstImageURL#}} | |||
| {{#if: {{{17|}}} | |||
| {{{17}}} | |||
| {{filepath:Teaching_Mudra_2_reduced_opacity.png|200}} | |||
}} | |||
}} | |||
}} | |||
}} | |||
}} | |||
}} | |||
}} | |||
| | |||
}} | |||
}} | |||
|imageposition=center | |||
|classes=tile-image | |||
}} | |||
}} | |||
}} | |||
</div> | |||
<div class="tile-content">{{#if: {{{22|}}} | |||
|{{{22}}} | |||
|<span class="font-weight-bold">{{#if: {{#show:{{{1}}}|?namelast}} | |||
| {{#show:{{{1}}}|?namefirst}} {{#show:{{{1}}}|?namelast}} | |||
| {{#if: {{{9|}}} | |||
| {{{9}}} | |||
| {{#if: {{{13|}}} | |||
| {{{13}}} | |||
| {{SUBPAGENAME: {{{1}}} }} | |||
}} | |||
}} | |||
}}</span>{{#ifeq: {{{20|}}} | true | · <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}}} | |||
| | |||
}} | |||
}} | |||
}} | |||
}} | |||
}} | |||
}} | |||
}} | |||
</div> | |||
</div> | |||
{{PageTileWrapper | |||
| }}{{PageTileWrapper | |||
|wrapperClasses={{{ wrapperClasses | }}} | |wrapperClasses={{{ wrapperClasses | }}} | ||
|link={{{ link | }}} | |link={{{ link | }}} | ||