Difference between revisions of "Template:MiniTile"

From Buddha-Nature
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
Line 1: Line 1:
 
<includeonly><noglossary><div class="bnw-mini-tile position-relative link-no-border">{{#widget:OverlayLink|link=/index.php/{{urlencode:{{{1}}}|WIKI}}|classes=grey-hoverlay}}
 
<includeonly><noglossary><div class="bnw-mini-tile position-relative link-no-border">{{#widget:OverlayLink|link=/index.php/{{urlencode:{{{1}}}|WIKI}}|classes=grey-hoverlay}}
<div class="float-left mr-2 position-relative text-center h-100" style="width: 50px;">{{#if: {{{10|}}}  
+
<div class="float-left mr-2 position-relative text-center h-100" style="width: 50px;">
| [[{{{10}}}|30px|class=depth-0|link=]]
+
{{#widget:DivWithBackImg
|{{#if: {{{19|}}}  
+
|src={{#if: {{{10|}}}  
| <div class="text-cover-clip {{#switch: {{#show:{{{1}}}|?CoverFileOrient}}
+
| {{filepath:{{#titleparts:{{PAGENAME:{{{10}}}}}}}}}
|portrait (book)=d-inline-block
+
| {{#if: {{{19|}}}  
|d-flex justify-content-center
+
| {{filepath:{{#titleparts:{{PAGENAME:{{{19}}}}}}}|1000}}  
}}" style="height: 100%; width: 40px; ">[[{{{19|}}}|class=text-cover-mini-tile|]]</div>
+
| {{#switch: {{{18}}}  
| {{#switch: {{{18}}}  
+
| Tibetan Text
| Tibetan Text
+
| Sanskrit Text=<div class="text-cover-clip">[[File:Text-tile.png|x50px|class=opac-30|]]</div>
| Sanskrit Text=<div class="text-cover-clip">[[File:Text-tile.png|x50px|class=opac-30|]]</div>
+
| {{#if: {{{11|}}}{{{2|}}}{{{4|}}}{{{5|}}}{{{8|}}}{{{12|}}}{{{17|}}}{{#show:{{{1}}}|?FirstImageURL#}}  
| {{#if: {{{11|}}}{{{2|}}}{{{4|}}}{{{5|}}}{{{8|}}}{{{12|}}}{{{17|}}}{{#show:{{{1}}}|?FirstImageURL#}}  
+
| {{#widget:PersonPageRoundImage
| {{#widget:PersonPageRoundImage
+
|filepath={{#if: {{{11|}}}  
|filepath={{#if: {{{11|}}}  
+
| {{{11}}}  
| {{{11}}}  
+
| {{#if: {{{2|}}}  
| {{#if: {{{2|}}}  
+
| {{#show:{{FirstValueOfArray|{{{2}}}|;}}|?FirstImageURL#}}
| {{#show:{{FirstValueOfArray|{{{2}}}|;}}|?FirstImageURL#}}
+
| {{#if: {{{4|}}}  
| {{#if: {{{4|}}}  
+
| {{#show:{{FirstValueOfArray|{{{4}}}|;}}|?FirstImageURL#}}
| {{#show:{{FirstValueOfArray|{{{4}}}|;}}|?FirstImageURL#}}
+
| {{#if: {{{5|}}}  
| {{#if: {{{5|}}}  
+
| {{#show:{{FirstValueOfArray|{{{5}}}|;}}|?FirstImageURL#}}
| {{#show:{{FirstValueOfArray|{{{5}}}|;}}|?FirstImageURL#}}
+
| {{#if: {{{8|}}}  
| {{#if: {{{8|}}}  
+
| {{#show:{{FirstValueOfArray|{{{8}}}|;}}|?FirstImageURL#}}
| {{#show:{{FirstValueOfArray|{{{8}}}|;}}|?FirstImageURL#}}
+
| {{#if: {{{12|}}}  
| {{#if: {{{12|}}}  
+
| {{#show:{{FirstValueOfArray|{{{12}}}|;}}|?FirstImageURL#}}
| {{#show:{{FirstValueOfArray|{{{12}}}|;}}|?FirstImageURL#}}
+
| {{#if: {{{17|}}}  
| {{#if: {{{17|}}}  
+
| {{{17}}}  
| {{{17}}}  
+
| {{filepath:Teaching_Mudra_2_reduced_opacity.png}}
| {{filepath:Teaching_Mudra_2_reduced_opacity.png}}  
+
}}
 
}}
 
}}
 
}}
 
}}
}}
+
}}  
 
}}  
 
}}  
}}  
+
}}
 
}}
 
}}
 +
|size=40px
 +
|depth=1
 +
|link={{{1}}}
 +
|linkclasses=&nbsp;
 +
}}
 +
| {{#widget:DivWithBackImgMiniTile
 +
|src=/skins/BuNay/resources/fontawesome/svgs/light/sort-alpha-down.svg
 +
|imageposition=center
 +
|classes=tile-image h-100
 
}}
 
}}
|size=40px
 
|depth=1
 
|link={{{1}}}
 
|linkclasses=&nbsp;
 
}}
 
| {{#widget:DivWithBackImgMiniTile
 
|src=/skins/BuNay/resources/fontawesome/svgs/light/sort-alpha-down.svg
 
|imageposition=center
 
|classes=tile-image h-100
 
 
}}
 
}}
 
}}
 
}}

Revision as of 14:49, 10 May 2019