Difference between revisions of "Template:RelatedButton"

From Buddha-Nature
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
 
(7 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
|button-left-margin-float
 
|button-left-margin-float
 
|position-relative
 
|position-relative
}}">{{#if: {{{ link | }}}
+
}}">
| {{#widget:OverlayLink
 
|link={{{ link | }}}
 
|target={{{ target | _self }}}
 
|title={{{ text | }}}
 
|classes=none
 
}}
 
|
 
}}
 
 
<div class="float-left position-relative" style="width: 65px;">{{#widget:PersonPageRoundImage
 
<div class="float-left position-relative" style="width: 65px;">{{#widget:PersonPageRoundImage
|filepath={{{ image | }}}
+
|filepath={{#if: {{{ imagefile | }}}
 +
| {{filepath:{{#titleparts:{{PAGENAME:{{{ imagefile | }}}}}}}|100}}
 +
| {{{ image | }}}
 +
}}
 
|size=55px
 
|size=55px
|depth={{#ifeq: {{{ image | }}}
+
|depth={{#switch: {{{ image | }}}
|http://commons.tsadra.org/images-commons/3/39/Topics.png
+
|https://commons.tsadra.org/images/3/39/Topics.png
|
+
|https://commons.tsadra.org/images/3/3a/Dictionary.png=
|1
+
|#default=1
 
}}
 
}}
 
|linkclasses=hide
 
|linkclasses=hide
 
|classes=none
 
|classes=none
 +
|link={{{ link | }}}
 
}}
 
}}
 
</div>
 
</div>
 
<div class="tile-content">
 
<div class="tile-content">
<p class="clipped-3-lines m-0">{{{ text | }}}</p>
+
<p class="clipped-3-lines m-0 {{{ textclasses | }}} {{#ifeq:{{{ tibetan-text | }}}|true|text-140 align-sub|}}">{{{ text | }}}</p>
 
</div>
 
</div>
<div class="bottom-label" style="left: 9px;">{{{ label | }}}</div>
+
<div class="bottom-label {{#ifeq:{{{ tibetan-text | }}}|true|text-140 align-sub|}}" style="left: 9px;">{{{ label | }}}</div>
<div class="bottom-label" style="right: 9px;">{{{ label-right | }}}</div>
+
<div class="bottom-label" style="right: 9px;">{{{ label-right | }}}</div>{{#if: {{{ link | }}}
 +
| {{#widget:OverlayLink
 +
|link={{{ link | }}}
 +
|target={{{ target | _self }}}
 +
|title={{{ text | }}}
 +
|classes=none
 +
}}
 +
|
 +
}}
 
</div>
 
</div>

Latest revision as of 16:17, 7 March 2023