Template:TileLongTall: Difference between revisions
From Bodhicitta
No edit summary |
No edit summary |
||
| Line 11: | Line 11: | ||
<div class="tsdwiki-pop-off tsdwiki-tile tsdwiki-tile-library " style="{{#if: {{{ min-height | }}} | <div class="tsdwiki-pop-off tsdwiki-tile tsdwiki-tile-library " style="{{#if: {{{ min-height | }}} | ||
| min-height: {{{ min-height | }}}; | | min-height: {{{ min-height | }}}; | ||
| min-height: 320px; | | min-height: {{#switch: {{{ size | }}} | ||
| small = 220px | |||
| medium = 260px | |||
| large = 320px | |||
| #default = 260px | |||
}}; | |||
}}">{{#ifeq:{{{ 5 | }}}|Classical Works||{{#ifeq:{{{ image | }}}|none|| | }}">{{#ifeq:{{{ 5 | }}}|Classical Works||{{#ifeq:{{{ image | }}}|none|| | ||
{{#widget:TsdwikiImgDiv | {{#widget:TsdwikiImgDiv | ||
|classes=tsdwiki-tile-library-img | |classes=tsdwiki-tile-library-img | ||
|style=flex: 0 0 240px; max-width: 240px; min-height: 320px; | |style=flex: 0 0 {{#if: {{{ img-width | }}} | ||
| {{{ img-width | }}} | |||
| {{#switch: {{{ size | }}} | |||
| small = 160px | |||
| medium = 180px | |||
| large = 240px | |||
| #default = 180px | |||
}} | |||
}}; max-width: {{#if: {{{ img-width | }}} | |||
| {{{ img-width | }}} | |||
| {{#switch: {{{ size | }}} | |||
| small = 160px | |||
| medium = 180px | |||
| large = 240px | |||
| #default = 180px | |||
}} | |||
}}; min-height: {{#if: {{{ min-height | }}} | |||
| {{{ min-height | }}} | |||
| {{#switch: {{{ size | }}} | |||
| small = 220px | |||
| medium = 260px | |||
| large = 320px | |||
| #default = 260px | |||
}} | |||
}}; | |||
|src={{#if:{{{ src-image | }}} | |src={{#if:{{{ src-image | }}} | ||
|{{{ src-image | }}} | |{{{ src-image | }}} | ||