Template:FeaturedItem: Difference between revisions
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- | |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- | |#default=d-none d-lg-block col-lg-4 | ||
}} {{{ imageclasses | }}} | }} {{{ imageclasses | }}} | ||
}} | }} | }} | }} | ||
<div class="{{#if: {{{ image | }}} | col-lg- | <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> |