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:cchsoftware 25/05/12 - 17:09 Sysop Page created, 21 words added
    User:mmiller 25/05/12 - 16:18 Sysop Page created, 21 words added
    User:neil.chen 25/05/12 - 08:35 Sysop Page created, 21 words added
    User:anusantrea 25/05/12 - 06:18 Sysop Page created, 21 words added
    User:starkipraraz 24/05/12 - 21:36 Sysop Page created, 21 words added
    User:nairamaropa 24/05/12 - 21:30 Sysop Page created, 21 words added
    User:jivedanson 24/05/12 - 20:44 Sysop Page created, 21 words added
    User:cayedwards 24/05/12 - 19:20 Sysop Page created, 21 words added
    User:chelmeset 24/05/12 - 13:54 Sysop Page created, 21 words added
    User:christian.fritschi 24/05/12 - 11:43 Sysop Page created, 21 words added
    User:malkawinters5135 24/05/12 - 09:20 Sysop Page created, 21 words added
    User:ilias 23/05/12 - 07:08 Sysop Page created, 21 words added
    User:itonstandby 22/05/12 - 20:30 Sysop Page created, 21 words added
    User:compuman2001 22/05/12 - 16:59 Sysop Page created, 21 words added
    User:lioncan/He-Man 22/05/12 - 15:46 lioncan yeni editledik; Page created, 11 words added
    User:Damien.R 22/05/12 - 14:57 Sysop Page created, 21 words added
    User:steavejohn1994 22/05/12 - 13:01 Sysop Page created, 21 words added
    User:errnerluig 22/05/12 - 12:36 Sysop Page created, 21 words added
    User:bjoris/Bart/Page_Title/Page_Title 22/05/12 - 10:51 bjoris One or more formatting changes
    User:jimmyanderson45 22/05/12 - 10:12 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