Sjabloon:Overzicht: verschil tussen versies

Uit Dorpsbelang Den Hout
Ga naar:navigatie, zoeken
(Versie 4761 van Ad Strack van Schijndel (overleg) ongedaan gemaakt)
Label: Ongedaan maken
Regel 21: Regel 21:
 
   <div class="col-md-6">
 
   <div class="col-md-6">
 
     <div class="card"><!--  
 
     <div class="card"><!--  
       --><div class="card-bottom">
+
       --><div class="card-top">{{#vardefine:@hubimg|{{#ask:[[Class::Bericht file]][[Page::@@@[catitle]]]|sort=Modification date|limit=1|link=none|order=desc|format=array}} }}
 +
[[{{#if:{{#var:@hubimg}}|{{#var:@hubimg}}|File:{{#replace:{{SERVERNAME}}|.|-}}-logo.png }}|{{#ifeq: {{{Type|}}} | list | 250px | 550px}}|link=]]
 +
      </div><!--
 +
        --><div class="card-bottom">
 
         {{#ifeq:@@@[Show date]|false| |<div><small><b>{{#if:@@@[Datum]|{{#time:d M Y|@@@[Datum]|nl}} }}</b></small></div>}}
 
         {{#ifeq:@@@[Show date]|false| |<div><small><b>{{#if:@@@[Datum]|{{#time:d M Y|@@@[Datum]|nl}} }}</b></small></div>}}
 
         <h2>@@@[Titel]</h2>
 
         <h2>@@@[Titel]</h2>
Regel 33: Regel 36:
 
   <div class="col-md-6">
 
   <div class="col-md-6">
 
     <div class="card"><!--  
 
     <div class="card"><!--  
       --><div class="card-top">
+
       --><<div class="card-bottom">
{{#vardefine:@hubimg|{{#ask:[[Class::Bericht file]][[Page::@@@[catitle]]]|sort=Modification date|limit=1|link=none|order=desc|format=array}} }}
 
[[{{#if:{{#var:@hubimg}}|{{#var:@hubimg}}|File:{{#replace:{{SERVERNAME}}|.|-}}-logo.png }}|{{#ifeq: {{{Type|}}} | list | 250px | 350x260px}}|link=]]
 
      </div><!--
 
        --><div class="card-bottom">
 
 
         <div><small><b>{{#if:@@@[Datum]|{{#time:d M Y|@@@[Datum]|nl}} }}</b></small></div>
 
         <div><small><b>{{#if:@@@[Datum]|{{#time:d M Y|@@@[Datum]|nl}} }}</b></small></div>
 
         <div><b>@@@[Titel]</b></div>
 
         <div><b>@@@[Titel]</b></div>

Versie van 26 jan 2021 18:44

This is the "Overzicht" template

  • Version=1.0
  • Version notes=1.0 - First managed version, added class 'hidden' to hide grey row if there is no Tag2
{{Overzicht
|Tag=<tag that is used as selection for main items>
|Tag2=<tag that is used as selection for secondary items>
|Title=
|Type=<optioonal 'list' for a list view>
|Text=<introductory text>
}}