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|link=none|format=complexarray|name=@berichten}}<!--  
+
  --><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}}<!--  
 
   -->{{#camap:@berichten|@@@|
 
   -->{{#camap:@berichten|@@@|
 
   <div class="col-md-6">
 
   <div class="col-md-6">
Regel 31: Regel 31:
 
   </div>
 
   </div>
 
   |}}<!--  
 
   |}}<!--  
--><div class="col-md-6" ></div></div></div><div class="bg-gray row pt-4 {{#if:{{{Tag2|}}}||hidden}}">{{#if:{{{Tag2|}}}|<div class="main-wrapper pt-4 {{{Type|}}}"><div class="row">{{#ask:[[Class::Bericht]][[Tags::{{{Tag2|}}}]][[Domein::{{SERVERNAME}}]]|?Datum|?Titel|?Samenvatting|?-Page=Image|link=none|format=complexarray|name=@berichten2}}<!--  
+
--><div class="col-md-6" ></div></div></div><div class="bg-gray row pt-4 {{#if:{{{Tag2|}}}||hidden}}">{{#if:{{{Tag2|}}}|<div class="main-wrapper pt-4 {{{Type|}}}"><div class="row">{{#ask:[[Class::Bericht]][[Tags::{{{Tag2|}}}]][[Domein::{{SERVERNAME}}]]|?Datum|?Titel|?Samenvatting|?-Page=Image|sort=Datum|order=desc|link=none|format=complexarray|name=@berichten2}}<!--  
 
  -->{{#camap:@berichten2|@@@|
 
  -->{{#camap:@berichten2|@@@|
 
   <div class="col-md-4">
 
   <div class="col-md-4">

Versie van 10 dec 2020 17:04

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