Difference between revisions of "Template:FeaturedItem"

From Buddha-Nature
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
 
(32 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="explore-featured row d-flex">{{#widget:DivWithBackImg
+
<div class="explore-featured row d-flex {{{ classes | }}}">{{#if: {{{ imagelink | }}}
|src={{{ image | }}}
+
|{{#widget:DivWithBackImgWithLink
|imageposition=center
+
|src={{{ image | }}}
|classes=d-block d-sm-none {{{ imageclasses | }}}
+
|imageposition=center
|height=7em
+
|imagelink={{{ imagelink | }}}
}}{{#widget:DivWithBackImg
+
|classes={{#switch: {{{ imageposition | }}}
|src={{{ image | }}}
+
|right=d-none d-lg-block order-last col-lg-4
|imageposition=center
+
|top=col-12 h-100
|classes=d-none d-sm-block col-sm-3 {{#ifeq: {{{ imageposition | }}} | right | order-last | }} {{{ imageclasses | }}}
+
|left
 +
|#default=d-none d-lg-block col-lg-4
 +
}} {{{ imageclasses | }}}
 +
|styles=none
 +
}}
 +
|{{#if: {{{ image | }}} | {{#widget:DivWithBackImg
 +
|src={{{ image | }}}
 +
|imageposition=center
 +
|classes={{#switch: {{{ imageposition | }}}  
 +
|right=d-none d-lg-block order-last col-lg-4
 +
|top=col-12 h-100
 +
|left
 +
|#default=d-none d-lg-block col-lg-4
 +
}} {{{ imageclasses | }}}
 +
|styles=none
 +
}} | }}
 
}}
 
}}
<div class="col-sm-9 {{{ textclasses | }}} {{#ifeq: {{{ imageposition | }}} | right | pr-4 | pl-4 }}">{{#if: {{{ title | }}} |  
+
<div class="{{#if: {{{ image | }}} | col-lg-8 | col-12 }} {{{ textclasses | }}} px-4">{{#if: {{{ title | }}} |  
 
<div class="header">[[{{{ page | }}}|{{{ title | }}}]]</div> | }}
 
<div class="header">[[{{{ page | }}}|{{{ title | }}}]]</div> | }}
<p>{{{ description | {{#show: {{{ page | }}}|?ArticleSummary }} }}}</p>
+
<div class="clearfix pb-4">{{{ description | {{#show: {{{ page | }}}|?ArticleSummary }} }}}</div>
{{{ additionalcontent | }}}
+
<div>{{{ additionalcontent | }}}</div>
 
</div>
 
</div>
 
</div>
 
</div>

Latest revision as of 13:22, 18 January 2021