Template:TileLongTall: Difference between revisions

From Bodhicitta
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><style>
<includeonly><div id="{{{ id | }}}" class="{{#if: {{{ wrapper-classes | }}}
.tsdwiki-tile-library-img-tall {
    flex: 0 0 200px;
    max-width: 200px;
    min-height: 280px;
    background-color: #f5f5f0;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    order: -1;
}
 
@media (max-width: 767px) {
    .tsdwiki-tile-library-img-tall {
        flex: 0 0 100%;
        max-width: 100%;
        min-height: 220px;
        order: 0;
    }
}
</style><div id="{{{ id | }}}" class="{{#if: {{{ wrapper-classes | }}}
|{{{ wrapper-classes | }}}
|{{{ wrapper-classes | }}}
|{{#if: {{{ #userparam | }}}
|{{#if: {{{ #userparam | }}}
Line 31: 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: 280px;
| 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-tall
|classes=tsdwiki-tile-library-img
|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 | }}}
Line 52: Line 62:
}}
}}
|bgPosition={{{ bgPosition | 50% 50% }}}
|bgPosition={{{ bgPosition | 50% 50% }}}
|bgSize={{{ bgSize | contain }}}
|bgSize={{{ bgSize | cover }}}
}} }} }}
}} }} }}
<div class="tsdwiki-tile-library-content" {{#ifeq:{{{ image | }}}|none|style="flex: 0 0 100%; max-width: 100%; padding: 1em 1.5em !important;"|{{#ifeq:{{{ 5 | }}}|Classical Works|style="flex: 0 0 100%; max-width: 100%; padding: {{#ifeq:{{{ 6 | }}}|Tibetan Original Work|.1em 1.5em .5em|.7em 1.5em .5em}} !important;"|}}}}>{{#if: {{{ header | }}}
<div class="tsdwiki-tile-library-content" {{#ifeq:{{{ image | }}}|none|style="flex: 0 0 100%; max-width: 100%; padding: 1em 1.5em !important;"|{{#ifeq:{{{ 5 | }}}|Classical Works|style="flex: 0 0 100%; max-width: 100%; padding: {{#ifeq:{{{ 6 | }}}|Tibetan Original Work|.1em 1.5em .5em|.7em 1.5em .5em}} !important;"|}}}}>{{#if: {{{ header | }}}
Line 70: Line 80:
}}
}}
}}
}}
<div class="text-muted clipped-3-lines unclamp-here">{{#ifeq:{{{ 5 | }}}|Classical Works|{{#if: {{{ 15 | }}}
<div class="text-muted clipped-8-lines unclamp-here">{{#ifeq:{{{ 5 | }}}|Classical Works|{{#if: {{{ 15 | }}}
|{{PersonPill|{{{ 15 | }}}}}  -&nbsp;&nbsp;
|{{PersonPill|{{{ 15 | }}}}}  -&nbsp;&nbsp;
|
|

Latest revision as of 15:27, 4 December 2025