Actions

Modèle

NewsActivity : Différence entre versions

De erg

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

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