Already done!
As you can see, the new template accept 2 optional parameters:
path = section to restrict search query (append an * to the end if you want to include all descendent pages)
number = row to return
Invoke it with
HTML Code:
{{template("Template:Xsys-modificherecenti"),{path:"Folder1/Folder2/*",number:"25"}) }}
Tanks to all for your feedback, I also added files notification and (probably) removed error when a page is deleted, but it need more test!
Past this code in a template page (html source code)
HTML Code:
<h1>Template:Xsys-modificherecenti</h1>
<table block="
var number = (args.number ?? 20);
var msg=(#args.path!=0 ? 'Recent changes in '..args.path : 'Recent changes');
var path=(#args.path!=0 ? 'path:'..args.path..'/*':'');
var result = wiki.getsearch('type:wiki OR type:document OR type:image', number, '-date',path);" width="100%" border="1" cellpadding="4" cellspacing="0" class="feedtable">
<tbody>
<tr>
<td valign="top" colspan="4" bgcolor="#cccccc" style="text-align: center; "><strong>{{msg}}</strong></td>
</tr>
<tr>
<td bgcolor="#cccccc"><strong>Page</strong></td>
<td bgcolor="#cccccc"><strong>Date</strong></td>
<td bgcolor="#cccccc"><strong>Author</strong></td>
<td bgcolor="#cccccc"><strong>Summary</strong></td>
</tr>
<tr foreach="var pa in result" class="{{__count % 2 == 0 ? 'feedroweven' : 'feedrowodd'}}">
<td if="pa.uri!=nil" style="WORD-BREAK:BREAK-ALL" width="50%">{{pa.id ? web.link(pa.uri, pa.path):web.html("File "..web.link(pa.uri, pa.name).." in "..web.link(pa.page.uri,pa.page.path).."")}}</td>
<td nowrap="" if="pa.uri!=nil"><small>{{date.format(pa.date,"dd/MM/yy - HH:mm")}}</small></td>
<td if="pa.uri!=nil"><small>{{web.link("/Special:Contributions?target="..pa.author.name, pa.author.name)}}</small></td>
<td if="pa.uri!=nil"><small>{{ pa.id? web.link('/index.php?title='..uri.encode(pa.path)..'&action=history',pa.editsummary):''}}</small></td>
</tr>
<tr>
<td valign="top" style="word-break: break-all; text-align: center; " colspan="4"><a title="/Special:Recentchanges" class="internal" href="mks://localhost/Special:Recentchanges">Recent changes</a> </td>
</tr>
</tbody>
</table>
<p> </p>