How do I... Include 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:Neilw/Testing 05/07/09 - 19:02 neilw 3 words added, 1 words removed
User:BlakeH 05/07/09 - 19:00 BlakeH 3 words added, 1 words removed
User:gouwzee/Migrate_my_wiki_into_a_new_VM 05/07/09 - 18:30 gouwzee 50 words added, 46 words removed
User:Race1d/_TEST 05/07/09 - 18:10 Race1d 6 words removed
User:Race1d/_TEST/sub1 05/07/09 - 18:07 Race1d 1 words added, 12 words removed
DekiScript/FAQ/How_do_I..._Build_an_Integrated_Bug_and_Issue_Tracker? 05/07/09 - 17:04 BlakeH 22 words added
DekiScript/FAQ/How_do_I..._Make_a_sortable,_Paginated_and_Zebrified_Dynamic_Table? 05/07/09 - 15:37 BlakeH no wording changes
User:r4cardnintendods/Terminator_Salvation,_PC,_Xbox_360_Game_Review 05/07/09 - 14:27 r4cardnintendods Taking place two years prior to the upcoming film, Terminator Salvation follows one day in the life of would-be savior of mankind John Connor.; page created, 427 words added
User:r4cardnintendods 05/07/09 - 14:25 Sysop page created, 8 words added
User:Race1d/Test_JEM_&_jQuery 05/07/09 - 14:15 Race1d 6 words added
Sandbox/MindTouch_Daily_Testing/2009/07-05-2009/Trunk:_Windows_-_Unit_Testing 05/07/09 - 13:10 mtservices page created, 1711 words added
User:hossam_moustafa 05/07/09 - 12:09 Sysop page created, 8 words added
Sandbox/MindTouch_Daily_Testing/2009/07-05-2009 05/07/09 - 10:39 mtservices page created, 8 words added
Sandbox/MindTouch_Daily_Testing/2009/07-05-2009/Stable:_Windows_-_Unit_Testing 05/07/09 - 10:39 mtservices page created, 1711 words added
User:BlakeH/Blog/Blog_%238 05/07/09 - 01:43 BlakeH page created, 372 words added
User:BlakeH/Blog/Blog_%236 05/07/09 - 01:42 BlakeH no wording changes
File Upload.txt in Deki/FAQ/API/How_do_I...Program_with_the_Deki_API_in_VBScript? 13/04/09 - 15:18 crb
User:BlakeH/Blog/Blog_%233 05/07/09 - 01:40 BlakeH 438 words added, 11 words removed
User:BlakeH/Blog/Blog_%234 05/07/09 - 01:40 BlakeH 438 words added, 11 words removed
User:BlakeH/Blog/Blog_%237 05/07/09 - 01:40 BlakeH 438 words added, 11 words removed
List all recent changes 

 

Tag page
You must login to post a comment.