Geen bewerkingssamenvatting
Geen bewerkingssamenvatting
Regel 17: Regel 17:
{{#vardefine:page|{{{pagename|{{{?pagename|}}}}}}}}
{{#vardefine:page|{{{pagename|{{{?pagename|}}}}}}}}
{{#vardefine:img|{{#show:{{#var:page}}|?Imagename}}}}
{{#vardefine:img|{{#show:{{#var:page}}|?Imagename}}}}
{{#vardefine:date|{{#show:{{#var:page}}|?Start date#-F[d/m/Y]}}}}
{{#vardefine:date|{{#show:{{#var:page}}|?Start date}}}}
{{#vardefine:date|{{#if:{{#var:date}}|{{#var:date}}|{{#show:{{#var:page}}|?Dct:date#-F[d/m/Y]}}}}}}
{{#vardefine:date|{{#if:{{#var:date}}|{{#var:date}}|{{#show:{{#var:page}}|?Dct:date}}}}}}
{{#vardefine:title|{{#show:{{#var:page}}|?Heading}}}}
{{#vardefine:title|{{#show:{{#var:page}}|?Heading}}}}
{{#vardefine:summary|{{Text max length|text={{#show:{{#var:page}}|?Summary}}|max=175}}}}
{{#vardefine:summary|{{Text max length|text={{#show:{{#var:page}}|?Summary}}|max=175}}}}
Regel 31: Regel 31:
<div class="card__body">
<div class="card__body">
{{#if:{{#var:label}}|<p class="card__label">{{#var:label}}</p>}}
{{#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}}#-F[d/m/Y|}}</p>
<h3 class="card__title">{{#var:name}}</h3>
<h3 class="card__title">{{#var:name}}</h3>
<div class="card__text">{{#var:summary}}</div>
<div class="card__text">{{#var:summary}}</div>

Versie van 11 nov 2023 18:02

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
|label=theme
}}