Template:FeaturedItem: Difference between revisions

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

Latest revision as of 21:37, 12 December 2024