NewsActivity : Différence entre versions
De erg
| (40 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  | 
| − | + | |order by=Published DESC  | |
| − | |order by=  | + | |limit={{{limit|10}}}  | 
| − | |format=  | + | |format=template  | 
| − | |  | + | |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
Show a listing of recent Actualites / News items. Uses Template:NewsActivity/Listing for formatting each item.