Sjabloon:Overzicht: verschil tussen versies

Uit Dorpsbelang Den Hout
Ga naar:navigatie, zoeken
 
(28 tussenliggende versies door 2 gebruikers niet weergegeven)
Regel 11: Regel 11:
 
|Type=<optioonal 'list' for a list view>
 
|Type=<optioonal 'list' for a list view>
 
|Text=<introductory text>
 
|Text=<introductory text>
 +
|Order=<asc or desc (=default)>
 
}}
 
}}
 
</pre>
 
</pre>
 
</noinclude><includeonly>__NOTOC__ __NOTITLE__<!--
 
</noinclude><includeonly>__NOTOC__ __NOTITLE__<!--
--><div class="main-wrapper {{{Type|}}}"><!--
+
--><div class="main-wrapper {{{Type|}}}"><!--  
-->{{#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|?Show date|sort=Datum|order={{{Order|desc}}}|link=none|format=complexarray|name=@berichten}}<!--  
 
   -->{{#camap:@berichten|@@@|
 
   -->{{#camap:@berichten|@@@|
 
   <div class="col-md-6">
 
   <div class="col-md-6">
 
     <div class="card"><!--  
 
     <div class="card"><!--  
       --><div class="card-top">[[{{#if:@@@[Image][fulltext]|@@@[Image][fulltext]|File:{{#replace:{{SERVERNAME}}|.|-}}-logo.png}}|{{#ifeq: {{{Type|}}} | list | 250px | 550px}}]]
+
       --><div class="card-top">{{#vardefine:@hubimg|{{#ask:[[Class::Bericht file]][[Page::@@@[catitle]]]|sort=Modification date|limit=1|link=none|order={{{Order|desc}}}|format=array}} }}
 +
[[{{#if:{{#var:@hubimg}}|{{#var:@hubimg}}|File:{{#replace:{{SERVERNAME}}|.|-}}-logo.png }}|{{#ifeq: {{{Type|}}} | list | 250px | 550px}}|link=]]
 
       </div><!--  
 
       </div><!--  
 
         --><div class="card-bottom">
 
         --><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>
         <div class="text-read-more">@@@[Samenvatting] <i> {{#widget:link|type=a|href=@@@[cafullurl]|text=Lees meer|class=red}}</i></div>
+
         <div class="text-read-more">@@@[Samenvatting] <i> [@@@[cafullurl] Lees meer]</i></div>
 
       </div>     
 
       </div>     
 
     </div>
 
     </div>
 
   </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={{{Order|desc}}}|link=none|format=complexarray|name=@berichten2}}<!--  
 
  -->{{#camap:@berichten2|@@@|
 
  -->{{#camap:@berichten2|@@@|
   <div class="col-md-4">
+
   <div class="col-md-6">
 
     <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}}]]
+
       --><div class="card-bottom">
      </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>
         <div class="text-read-more">@@@[Samenvatting]<i> {{#widget:link|type=a|href=@@@[cafullurl]|text=Lees meer|class=red}}</i></div>
+
         <div class="text-read-more">@@@[Samenvatting]</div>
 
       </div>     
 
       </div>     
 
     </div>
 
     </div>

Huidige versie van 14 aug 2024 om 17:01

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>
|Order=<asc or desc (=default)>
}}