Difference between revisions of "DPL Example 027"
Line 13: | Line 13: | ||
|debug=3 | |debug=3 | ||
| namespace = | | namespace = | ||
+ | | redirect = all | ||
| count = {%DPL_count:50%} | | count = {%DPL_count:50%} | ||
| resultsheader = ²{Extension DPL continue¦dir=%SCROLLDIR%¦pages=%PAGES%¦total=%TOTALPAGES%¦firsttitle=%FIRSTTITLE%¦lasttitle=%LASTTITLE%¦page={{PAGENAME}}}²\n | | resultsheader = ²{Extension DPL continue¦dir=%SCROLLDIR%¦pages=%PAGES%¦total=%TOTALPAGES%¦firsttitle=%FIRSTTITLE%¦lasttitle=%LASTTITLE%¦page={{PAGENAME}}}²\n | ||
Line 20: | Line 21: | ||
{{#dpl: | {{#dpl: | ||
| namespace = | | namespace = | ||
+ | | redirect = all | ||
| count = {%DPL_count:50%} | | count = {%DPL_count:50%} | ||
| resultsheader = ²{Extension DPL continue¦dir=%SCROLLDIR%¦pages=%PAGES%¦total=%TOTALPAGES%¦firsttitle=%FIRSTTITLE%¦lasttitle=%LASTTITLE%¦page={{PAGENAME}}}²\n | | resultsheader = ²{Extension DPL continue¦dir=%SCROLLDIR%¦pages=%PAGES%¦total=%TOTALPAGES%¦firsttitle=%FIRSTTITLE%¦lasttitle=%LASTTITLE%¦page={{PAGENAME}}}²\n | ||
| resultsfooter = ²{Extension DPL continue¦dir=%SCROLLDIR%¦pages=%PAGES%¦total=%TOTALPAGES%¦firsttitle=%FIRSTTITLE%¦lasttitle=%LASTTITLE%¦page={{PAGENAME}}}²\n | | resultsfooter = ²{Extension DPL continue¦dir=%SCROLLDIR%¦pages=%PAGES%¦total=%TOTALPAGES%¦firsttitle=%FIRSTTITLE%¦lasttitle=%LASTTITLE%¦page={{PAGENAME}}}²\n | ||
}}</nowiki></pre> | }}</nowiki></pre> |
Revision as of 06:53, 25 June 2009
back to list of examples
Optimum performance result scrolling for huge wikis
This page demonstrates how DPL can be used in really huge wikis like WIKIPEDIA to allow efficient scrolling through huge result sets. The approach ios very much straight forward:
- We use count=50
- When scrolling forward we use ascending order
- When scrolling backward we internally use descending order but we reverse the result set for the user
- Each query takes a lower or an upper limit for the search as a selection criterion
- This criterion is set by an URL parameter which is deducted from information of the previous query: each query passes the first and last page of its result set to a scroll helper template.
- The approach could be extended: The scroll helper could produce a set of fixed links for the initial letters; thus one could easily jump to A, B, C, ...
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Unknown parameter 'redirect' was ignored. Help: available parameters: addauthor, addcategories, addcontribution, addeditdate, addexternallink, addfirstcategorydate, addlasteditor, addpagecounter, addpagesize, addpagetoucheddate, adduser, allowcachedresults, allrevisionsbefore, allrevisionssince, articlecategory, cacheperiod, categoriesminmax, category, categorymatch, categoryregexp, columns, count, createdby, debug, distinct, dominantsection, eliminate, escapelinks, execandexit, firstrevisionsince, fixcategory, format, headingcount, headingmode, hiddencategories, hitemattr, hlistattr, ignorecase, imagecontainer, imageused, include, includematch, includematchparsed, includemaxlength, includenotmatch, includenotmatchparsed, includepage, includesubpages, includetrim, inlinetext, itemattr, lastmodifiedby, lastrevisionbefore, linksfrom, linksto, linkstoexternal, listattr, listseparators, maxrevisions, minoredits, minrevisions, mode, modifiedby, multisecseparators, namespace, noresultsfooter, noresultsheader, notcategory, notcategorymatch, notcategoryregexp, notcreatedby, notlastmodifiedby, notlinksfrom, notlinksto, notmodifiedby, notnamespace, nottitlematch, nottitleregexp, notuses, offset, oneresultfooter, oneresultheader, openreferences, order, ordercollation, ordermethod, qualitypages, randomcount, redirects, replaceintitle, reset, resultsfooter, resultsheader, rowcolformat, rows, rowsize, scroll, secseparators, showcurid, shownamespace, skipthispage, stablepages, suppresserrors, table, tablerow, tablesortcol, title, titlegt, titlelt, titlematch, titlemaxlength, titleregexp, usedby, userdateformat, uses
.
startbacknext(50 listed / 652 left) |
- Test5554
- 2008-02-16 best time ever
- Nowa kategoria
- Test 001
- Test 002
- Test 003
- Test 004
- Test 005
- Test 006
- Test 007
- Test 008
- Tmp2
- 2008/08/23 SD test
- Event template zh-tw
- Event intro zh-tw
- A1
- 2008-04-24 nnn
- Yyy
- Ford
- Property:Age
- Student
- Semantic MediaWiki with Property Clusters (print version)
- Task act
- Task think
- Test what links here with categories page
- Abc/def
- Music
- Page in Test-1
- Physics
- Page in Test 1
- My very special event (2007/03/01)
- DPLMATRIX
- Mechanics
- Philosophy
- Bruxelles city
- Town A
- Town B
- Task prepare meal
- Task buy food
- A ECP-00055 test page
- Pseudo Namespace:Dummy
- 2007-08-24 jehhu
- Test Dummy
- Testpage
- Test transclusion bug 2
- Stachoo test
- The Colour of Magic
- The Smell of Future
- Bug Apo
- Article with underscore
startbacknext(50 listed / 652 left) |
{{#dpl: | namespace = | redirect = all | count = {%DPL_count:50%} | resultsheader = ²{Extension DPL continue¦dir=%SCROLLDIR%¦pages=%PAGES%¦total=%TOTALPAGES%¦firsttitle=%FIRSTTITLE%¦lasttitle=%LASTTITLE%¦page={{PAGENAME}}}²\n | resultsfooter = ²{Extension DPL continue¦dir=%SCROLLDIR%¦pages=%PAGES%¦total=%TOTALPAGES%¦firsttitle=%FIRSTTITLE%¦lasttitle=%LASTTITLE%¦page={{PAGENAME}}}²\n }}