Geen bewerkingssamenvatting
Geen bewerkingssamenvatting
Regel 8: Regel 8:
|formatter=FMT Card
|formatter=FMT Card
|limit=3
|limit=3
|label=theme
|show button=true
|show button=true
|show date=true
|show date=true
Regel 19: Regel 18:
{{#vardefine:date|{{#show:{{#var:page}}|?Start date#-F[d/m/Y]}}}}
{{#vardefine:date|{{#show:{{#var:page}}|?Start date#-F[d/m/Y]}}}}
{{#vardefine:title|{{#show:{{#var:page}}|?Heading}}}}
{{#vardefine:title|{{#show:{{#var:page}}|?Heading}}}}
{{#vardefine:summary|{{Text max length|text={{#show:{{#var:page}}|?Summary}}|max=100}}}}
{{#vardefine:summary|{{Text max length|text={{#show:{{#var:page}}|?Summary}}|max=175}}}}
{{#vardefine:label|{{{label|}}}}}
{{#vardefine:button|{{{show button|true}}}}}
{{#vardefine:button|{{{show button|true}}}}}
{{#vardefine:show|{{{show date|true}}}}}
{{#vardefine:show|{{{show date|true}}}}}
{{#vardefine:link|{{#replace:{{#replace:{{#var:page}}|Bestand:|Media:}}|File:|Media:}}}}
{{#vardefine:name|{{#var:title|{{#replace:{{#replace:{{#replace:{{#var:page}}|File:|}}|Bestand:|}}|_|<nowiki/> <nowiki/>}}}}}}
<div class="col col-12 col-m-6 col-l-4">
<div class="col col-12 col-m-6 col-l-4">
<div class="card">
<div class="card">
<div class="card__image">[[File:{{#var:img|image-landscape.png}}|frameless|500px|link={{#var:page}}|{{#var:title}}|]]</div>
<div class="card__image">[[File:{{#var:img|image-landscape.png}}|frameless|500px|link={{#var:link}}|{{#var:name}}|]]</div>
<div class="card__body">
<div class="card__body">
{{#if:{{#var:label}}|<p class="card__label">{{#var:label}}</p>}}
<p class="card__subtitle">{{#ifeq:{{#var:show|}}|true|{{#var:date}}|}}</p>
<p class="card__subtitle">{{#ifeq:{{#var:show|}}|true|{{#var:date}}|}}</p>
<h3 class="card__title">{{#var:title}}</h3>
<h3 class="card__title">{{#var:name}}</h3>
<div class="card__text">{{#var:summary}}</div>
<div class="card__text">{{#var:summary}}</div>
{{#ifeq:{{#var:button|}}|true|
{{#ifeq:{{#var:button|}}|true|
<div class="mw-btn mw-btn-l mw-btn-primary d-ib">[[{{#var:page}}|{{int:EMM Text Read more}} »]]</div>
<div class="mw-btn mw-btn-l mw-btn-primary d-ib">[[{{#var:link}}|{{int:EMM Text Read more}} »]]</div>|}}
|}}
</div>
</div>
</div>
</div>
</div>
</div>
</includeonly>
</includeonly>

Versie van 9 nov 2023 10:54

This is the "FMT Card" template. It should be called in one of the following formats:

{{BB Semantic search
|formatter=FMT Card
|limit=3
|show button=true
|show date=true
}}