Template: Event-card: Difference between revisions

From Dreams Knowledge Platform
Jump to: navigation, search
(Created page with "<includeonly><div style="border:1px solid #dde;border-radius:8px;overflow:hidden;background:#f9f9fc;width:300px;display:flex;flex-direction:column;box-sizing:border-box;">{{#if:{{{7|}}}|<div style="width:100%;height:180px;overflow:hidden;background:#eef;display:flex;align-items:center;justify-content:center;">[[File:{{{7|}}}|300px|link={{{1|}}}]]</div>|}}<div style="padding:1em 1.2em;display:flex;flex-direction:column;gap:0.4em;flex:1;">{{#if:{{{5|}}}|<div style="font-si...")
 
No edit summary
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="border:1px solid #dde;border-radius:8px;overflow:hidden;background:#f9f9fc;width:300px;display:flex;flex-direction:column;box-sizing:border-box;">{{#if:{{{7|}}}|<div style="width:100%;height:180px;overflow:hidden;background:#eef;display:flex;align-items:center;justify-content:center;">[[File:{{{7|}}}|300px|link={{{1|}}}]]</div>|}}<div style="padding:1em 1.2em;display:flex;flex-direction:column;gap:0.4em;flex:1;">{{#if:{{{5|}}}|<div style="font-size:0.78em;color:#fff;background:#4a5dcc;border-radius:3px;padding:0.15em 0.55em;display:inline-block;align-self:flex-start;width:fit-content;">{{{5|}}}</div>}}<div style="font-weight:bold;font-size:1em;line-height:1.4;">[[{{{1|}}}|{{{2|{{{1|}}}}}}]]</div>{{#if:{{{3|}}}|<div style="font-size:0.82em;color:#555;"><i class="fas fa-map-marker-alt"></i> {{{3|}}}{{#if:{{{4|}}}|, {{{4|}}}}}</div>}}{{#if:{{{6|}}}|<div style="font-size:0.85em;color:#444;line-height:1.4;">{{{6|}}}</div>}}</div></div></includeonly>
<!--
  Parameters:
    {{{1}}} - Page name (link target)
    {{{2}}} - Display title
    {{{3}}} - City
    {{{4}}} - Country
    {{{5}}} - Category tag label
    {{{6}}} - Full description
    {{{7}}} - Image filename
    {{{8}}} - Short description (
-->
<includeonly><div class="event-card">
{{#if:{{{7|}}}|<div class="event-card-image">[[File:{{#explode:{{{7|}}}|;|0}}|400px|thumb|link={{{1|}}}]]</div>|<div class="event-card-image event-card-image--placeholder"></div>}}
<div class="event-card-body">
{{#if:{{{5|}}}|<div class="event-card-tag">{{{5|}}}</div>}}
<div class="event-card-title">[[{{{1|}}}|{{{2|{{{1|}}}}}}]]</div>
{{#if:{{{3|}}}|<div class="event-card-location"><i class="fas fa-map-marker-alt"></i> {{{3|}}}{{#if:{{{4|}}}|, {{{4|}}}}}</div>}}
{{#if:{{{8|}}}|<div class="event-card-desc">{{{8|}}}</div>|{{#if:{{{6|}}}|<div class="event-card-desc">{{{6|}}}</div>}}}}
<div class="event-card-readmore">[[{{{1|}}}|Read more →]]</div>
</div>
</div></includeonly>

Latest revision as of 12:17, 25 March 2026