Redirected from DekiScript/FAQ/How to include recent changes in a page?
1 of 1 found this page helpful

Including recent changes in a page

    Table of contents
    No headers

    Insert this DekiScript html code  to extract last twenty edited pages. This code use the wiki.getsearch function introduced in 8.05.1

    You must paste this code in "source" html editor mode, be sure that your browser do not add o replace some characters.

     

    <table block="
    var number = (args.number ?? 20);
    var msg=(#args.path!=0 ? 'Ultime modifiche nella sezione '..args.path : 'ultime modifiche della wiki');
    var path=(#args.path!=0 ? 'path:'..args.path..'/*':'');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: _fckstyle="text-align: _fckstyle="text-align: _fckstyle=" _fckstyle="text-align: _fckstyle="text-align: center; " _fckstyle="text-align: center; "><strong>{{msg}}</strong></td>
    </tr>
    <tr>
    <td bgcolor="#cccccc"><strong>Pagina</strong></td>
    <td bgcolor="#cccccc"><strong>Data</strong></td>
    <td bgcolor="#cccccc"><strong>Autore</strong></td>
    <td bgcolor="#cccccc"><strong>Sommario</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" _fckstyle="WORD-BREAK:BREAK-ALL" _fckstyle="WORD-BREAK:BREAK-ALL" _fckstyle="WORD-BREAK:BREAK-ALL" _fckstyle="WORD-BREAK:BREAK-ALL" _fckstyle="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)..'&amp;action=history',pa.editsummary):''}}</small></td>
    </tr>
    <tr>
    <td valign="top" style="word-break: _fckstyle="word-break: _fckstyle="word-break: _fckstyle=" _fckstyle="word-break: _fckstyle="word-break: break-all; text-align: center; " _fckstyle="word-break: break-all; text-align: center; " colspan="4"><a title="/Special:Recentchanges" class="internal" href="mks://localhost/Special:Recentchanges">Ultime modifiche di tutta la wiki</a>&nbsp;</td>
    </tr>
    </tbody>
    </table>

    The script applied in this page give this result:

     

    Page Date Author Summary
    User:outsourcingbusi 04/02/12 - 01:54 Sysop Page created, 21 words added
    User:mattprowse 03/02/12 - 11:40 Sysop Page created, 21 words added
    User:gabell 03/02/12 - 11:18 Sysop Page created, 21 words added
    User:williamwan188 03/02/12 - 06:50 Sysop Page created, 21 words added
    User:masanori_kimoto 03/02/12 - 03:45 Sysop Page created, 21 words added
    User:sancho78rus 02/02/12 - 16:34 Sysop Page created, 21 words added
    User:jenniferolsen 02/02/12 - 08:22 Sysop Page created, 21 words added
    User:ragacole 02/02/12 - 07:22 Sysop Page created, 21 words added
    User:dressvintage 02/02/12 - 06:20 Sysop Page created, 21 words added
    User:tchardmaxwi 02/02/12 - 05:28 Sysop Page created, 21 words added
    User:womenwomen 01/02/12 - 11:32 Sysop Page created, 21 words added
    User:sunit 01/02/12 - 09:30 Sysop Page created, 21 words added
    User:pjddvm 31/01/12 - 18:51 Sysop Page created, 21 words added
    User:aesp4176 31/01/12 - 16:52 Sysop Page created, 21 words added
    User:wblair622 30/01/12 - 19:02 Sysop Page created, 21 words added
    User:lvhejin 30/01/12 - 12:35 Sysop Page created, 21 words added
    User:felixthecatz 30/01/12 - 12:23 Sysop Page created, 21 words added
    User:kenniams/Page_Title 30/01/12 - 10:31 ryan321 2 words added, 72 words removed
    User:creep200092 30/01/12 - 09:51 Sysop Page created, 21 words added
    User:brautkleiderbur 30/01/12 - 05:13 Sysop Page created, 21 words added
    List all recent changes 

     

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by