Sjabloon:Overzicht: verschil tussen versies

Uit Dorpsbelang Den Hout
Ga naar:navigatie, zoeken
Regel 17: Regel 17:
 
  -->{{#if: {{{Title|}}} | <h1>{{{Title|}}}</h1>}}<!--  
 
  -->{{#if: {{{Title|}}} | <h1>{{{Title|}}}</h1>}}<!--  
 
--><p>{{{Text|}}}</p><!--  
 
--><p>{{{Text|}}}</p><!--  
  --><div class="row">{{#ask:[[Class::Bericht]][[Tags::{{{Tag|}}}]][[Domein::{{SERVERNAME}}]]|?Datum|?Titel|?Samenvatting|?-Page=Image|?Show date|sort=Datum|order=desc|link=none|format=complexarray|name=@berichten}}<!--  
+
  --><div class="row">{{#ask:[[Class::Bericht]][[Tags::{{{Tag|}}}]][[Domein::{{SERVERNAME}}]]|?Datum|?Titel|?Samenvatting|?Show date|sort=Datum|order=desc|link=none|format=complexarray|name=@berichten}}<!--  
 
   -->{{#camap:@berichten|@@@|
 
   -->{{#camap:@berichten|@@@|
 
   <div class="col-md-6">
 
   <div class="col-md-6">
Regel 36: Regel 36:
 
   <div class="col-md-4">
 
   <div class="col-md-4">
 
     <div class="card"><!--  
 
     <div class="card"><!--  
       --><div class="card-top">[[{{#if:@@@[Image][fulltext]|@@@[Image][fulltext]|File:{{#replace:{{SERVERNAME}}|.|-}}-logo.png}}|{{#ifeq: {{{Type|}}} | list | 250px | 350x260px}}|link=]]
+
       --><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 | 350x260px}}|link=]]
 
       </div><!--  
 
       </div><!--  
 
         --><div class="card-bottom">
 
         --><div class="card-bottom">

Versie van 12 jan 2021 09:45

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>
}}