Difference between revisions of "Template:RelatedButton"

From Buddha-Nature
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
 
(41 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="discover-nav-button position-relative link-no-border {{{ wrapperclasses | }}}">{{#if: {{{ link | }}} | {{#widget:OverlayLink
+
<div class="discover-nav-button link-no-border noglossary {{{ wrapperclasses | }}} {{#ifeq: {{{ marginfloat | }}}
|link=/index.php/{{urlencode:{{{ link | }}}|WIKI}}
+
|true
|classes=grey-hoverlay
+
|button-left-margin-float
|target={{{ target | _self }}}
+
|position-relative
}}
+
}}">
<div class="clearfix">
+
<div class="float-left position-relative" style="width: 65px;">{{#widget:PersonPageRoundImage
<div class="float-left mr-2 position-relative text-center" style="width: 70px;">{{#widget:PersonPageRoundImage
+
|filepath={{#if: {{{ imagefile | }}}
|filepath={{{ image | }}}
+
| {{filepath:{{#titleparts:{{PAGENAME:{{{ imagefile | }}}}}}}|100}}
|size=55px
+
| {{{ image | }}}
|depth=1
+
}}
|link={{{ link | }}}
+
|size=55px
|linkclasses=&nbsp;
+
|depth={{#switch: {{{ image | }}}
 +
|https://commons.tsadra.org/images/3/39/Topics.png
 +
|https://commons.tsadra.org/images/3/3a/Dictionary.png=
 +
|#default=1
 
}}
 
}}
</div>
+
|linkclasses=hide
<div class="tile-content">
+
|classes=none
<p class="m-0">{{{ text | }}}</p>
+
|link={{{ link | }}}
</div>
+
}}
 
</div>
 
</div>
<div class="d-flex justify-content-between font-weight-light" style="font-size: .9em;">
+
<div class="tile-content">
<p class="m-0 mt-3">{{{ label | }}}</p>
+
<p class="clipped-3-lines m-0 {{{ textclasses | }}} {{#ifeq:{{{ tibetan-text | }}}|true|text-140 align-sub|}}">{{{ text | }}}</p>
<p class="m-0 mt-3"><i class="ml-1 fal fa-arrow-{{{ arrow | }}}"></i></p>
 
 
</div>
 
</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>{{#if: {{{ link | }}}
 +
| {{#widget:OverlayLink
 +
|link={{{ link | }}}
 +
|target={{{ target | _self }}}
 +
|title={{{ text | }}}
 +
|classes=none
 +
}}
 +
|
 +
}}
 
</div>
 
</div>

Latest revision as of 17:17, 7 March 2023