Difference between revisions of "Template:RelatedButton"

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

Latest revision as of 17:17, 7 March 2023