Actions

Modèle

NewsActivity : Différence entre versions

De erg

 
(17 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,_pageData
+
tables=News
|join on=News._pageName=_pageData._pageName
+
|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=DATE_FORMAT(_pageData._creationDate, '%d %M %y')=publiée,DATEDIFF(NOW(),_pageData._creationDate)=Age,_pageData._pageName=Page,News.Subtitle=Subtitle, DATE_FORMAT(News.Start, '%W %d %M %Y')=Start, DATE_FORMAT(News.End, '%W %d %M %Y')=End,Image
+
|order by=Published DESC
|order by=_pageData._creationDate DESC
+
|limit={{{limit|10}}}
 
|format=template
 
|format=template
 
|template=NewsActivity/Listing
 
|template=NewsActivity/Listing
 
|named args=yes
 
|named args=yes
|limit=100
+
|intro=<div class="medialisting">
|intro=<div class="listing">
 
 
|outro=</div>
 
|outro=</div>
 
|more results text=
 
|more results text=
 +
|hidenamespaces=1
 
}}
 
}}

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