Actions

Modèle

NewsActivity : Différence entre versions

De erg

 
(4 révisions intermédiaires par 2 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
 +
<noinclude>
 +
Show a listing of recent Actualites / News items.
 +
Uses [[Template:NewsActivity/Listing]] for formatting each item.
 +
</noinclude>
 
{{#cargo_query:  
 
{{#cargo_query:  
 
tables=News
 
tables=News
|fields=Published,DATEDIFF(NOW(),Published)=Age,pageName=Page,pageTitle=Title,Subtitle,DATE_FORMAT(Start, '%W %d %M %Y')=Start, DATE_FORMAT(End, '%W %d %M %Y')=End,Image
+
|fields=Published,DATEDIFF(NOW(),Published)=Age,_pageName=Page,_pageTitle=Title,Subtitle,DATE_FORMAT(Start, '%W %d %M %Y')=Start, DATE_FORMAT(End, '%W %d %M %Y')=End,Image
 
|order by=Published DESC
 
|order by=Published DESC
|where=DATEDIFF(NOW(),Published) <= 60
+
|limit={{{limit|10}}}
|limit=10
+
|format=template
|format=table
 
 
|template=NewsActivity/Listing
 
|template=NewsActivity/Listing
 
|named args=yes
 
|named args=yes
|intro=<div class="flexgal">
+
|intro=<div class="medialisting">
 
|outro=</div>
 
|outro=</div>
 
|more results text=
 
|more results text=
 
|hidenamespaces=1
 
|hidenamespaces=1
 
}}
 
}}

Version actuelle datée du 12 septembre 2018 à 20:46