Difference between revisions of "Template:FeaturedItem"

From Buddha-Nature
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
Line 3: Line 3:
 
|imageposition=center
 
|imageposition=center
 
|classes={{#switch: {{{ imageposition | }}}  
 
|classes={{#switch: {{{ imageposition | }}}  
|right=d-none d-lg-block order-last col-lg-3
+
|right=d-none d-lg-block order-last col-lg-4
 
|top=col-12 h-100
 
|top=col-12 h-100
 
|left
 
|left
|#default=d-none d-lg-block col-lg-3
+
|#default=d-none d-lg-block col-lg-4
 
}} {{{ imageclasses | }}}
 
}} {{{ imageclasses | }}}
 
}} | }}
 
}} | }}
<div class="{{#if: {{{ image | }}} | col-lg-9 | col-12 }} {{{ textclasses | }}} {{#ifeq: {{{ imageposition | }}} | right | pr-4 | pl-4 }}">{{#if: {{{ title | }}} |  
+
<div class="{{#if: {{{ image | }}} | col-lg-8 | col-12 }} {{{ textclasses | }}} {{#ifeq: {{{ imageposition | }}} | right | pr-4 | pl-4 }}">{{#if: {{{ title | }}} |  
 
<div class="header">[[{{{ page | }}}|{{{ title | }}}]]</div> | }}
 
<div class="header">[[{{{ page | }}}|{{{ title | }}}]]</div> | }}
 
<div class="clearfix pb-4">{{{ description | {{#show: {{{ page | }}}|?ArticleSummary }} }}}</div>
 
<div class="clearfix pb-4">{{{ description | {{#show: {{{ page | }}}|?ArticleSummary }} }}}</div>

Revision as of 11:01, 9 January 2020