Alexandre Emsenhuber
a85002625a
* Fixed some doxygen warnings
...
* Documented a bit
2010-02-28 15:43:51 +00:00
Tim Starling
688edac45b
For r58153: in HistoryPage, removed the user permissions checks for deleted revision filtering. Added a tag to the SQL filtered SQL query so that sysadmins can easily find the relevant code if there is a problem.
2010-02-09 01:17:01 +00:00
Siebrand Mazeland
e8a65f9e25
Update break notation to self enclosed and properly spaced
2009-11-14 20:59:15 +00:00
Brion Vibber
7dcde84226
Revert r57208 - unexpected message format type change from plaintext to raw-HTML
2009-10-01 19:36:39 +00:00
Raimond Spekking
c42e248ef2
Fix double escaping to avoid showing literal • when [[MediaWiki:Pipe-separator]] is set to this character
...
All message parameters are previously escaped.
2009-10-01 11:24:56 +00:00
Siebrand Mazeland
32393d65b2
Revert functional change from r56594. That broke more than it tried to fix somehow.
2009-09-18 12:49:27 +00:00
Siebrand Mazeland
71dd8a0fae
* use wfMsgExt with escapenoentities instead of wfMsgHtml (line 679)
...
* break long lists of parameters
* remove trailing whitespace
2009-09-18 12:43:55 +00:00
Andrew Garrett
6be79efdd1
Add number formatting for numeric limits, regression in r55692
2009-09-08 23:32:56 +00:00
Happy-melon
255e855e34
Reimplement r55685, r55686, r55687, with correct parsing of the associative array. Also add message description to MessagesQqq as requested at r55685.
2009-08-31 11:30:50 +00:00
Niklas Laxström
bae3947a0f
Revert r55685, r55686 and r55687 for now. Limits not working.
2009-08-31 06:54:52 +00:00
Happy-melon
d9e0154b62
* Allow IndexPager->mLimitsShown to be an associative array of limit => text-to-display-in-limit-form pairs.
...
* Use this to add an "all" value to the limit form in Special:AllMessages. In reality, "all" is only 5000, but this is plenty more than most wikis should have.
2009-08-30 21:50:10 +00:00
Brion Vibber
71432fb487
Pet peeve time: reduce clutter from common $wgContLang->isRTL() ? 'x' : 'y' pattern. :)
...
Introduced helpers:
$lang->getDir() returns 'ltr' or 'rtl' for HTML 'dir' attrib
$lang->alignStart() returns 'left' or 'right' for HTML 'align' attrib or CSS 'text-align' property
$lang->alignEnd() returns 'right' or 'left'
And cleaned up a couple arrays of icons to just reverse the order of items rather than repeating the items twice for each possibility.
2009-08-22 01:24:04 +00:00
Tim Starling
3b4e961c47
* Renamed PageHistory to HistoryPage. Brion gave me permission to do this a couple of years ago, I thought it was about time. Provides naming consistency with ImagePage, RawPage, etc.
...
* Moved historyLine(), beginHistoryList(), endHistoryList() and related helper functions to the pager class.
* Renamed HistoryPage member variables, removed "m" prefix.
* Added declaration for IndexPager::$mIsFirst
2009-08-17 05:09:36 +00:00
Alexandre Emsenhuber
4eea7755ae
* (bug 16009) Limit selection forms based on Pager now links to the correct page when using long urls
2009-07-23 20:18:34 +00:00
Niklas Laxström
35dff87821
Reimplement r49941 as an overridable method, as suggested by Tim (hiding navigation bar when all results are shown)
2009-06-20 06:41:59 +00:00
Tim Starling
f55a4c219a
Revert r49941 and r50013: hackish attempted use of mIsFirst before initialisation.
2009-06-04 06:17:03 +00:00
Niklas Laxström
d3b61fea7c
Escaping fixes
2009-05-22 09:35:48 +00:00
Roan Kattouw
ebb8e31b19
(bug 18620) Fix some escaping issues in TablePager::formatRow() and set $mCurrentRow earlier. Patch by Happy-Melon
2009-04-29 15:59:59 +00:00
Niklas Laxström
695ec8ea93
Fix for r49939: hide navigation links in higher level
2009-04-27 11:17:46 +00:00
Tim Starling
b986875773
* Escape attribute values
...
* Document getRowClass()
2009-04-01 08:51:54 +00:00
Roan Kattouw
4e96c0efad
Update docs in Pager.php for join_conds
2009-03-31 15:46:34 +00:00
Siebrand Mazeland
1093d39768
* remove forgotten case of hard coded pipe separator in Pager
...
* fix bug in GlobalFunctions.php introduced in r47028. pipeList() needs to be fed an array.
2009-02-09 14:31:48 +00:00
Siebrand Mazeland
a130b5b8fa
* Update message 'pipe-separator' to have leading and trailing space for English and Occitan, to be able to remove some hard coded spaces
...
* Take out some hard coded pipe characters. Replace by message or Language::pipeList
* Take out a hard coded comma list SpecialIpblocklist.php. Replace by Language::commaList
2009-02-09 09:13:30 +00:00
Andrew Garrett
2454a53583
Tweak variable name to avoid confusion.
2009-01-28 23:55:00 +00:00
Andrew Garrett
86191325b3
Allow individual TablePager rows to be styled with the internal method getRowClass, called in formatRow.
2009-01-28 20:08:46 +00:00
Aaron Schulz
7d249deb11
'known' still needed for title attrib
2009-01-28 17:45:51 +00:00
Aaron Schulz
4717704190
(bug 17198) Remove css from next/prev, 20/50/100 links and such
2009-01-28 17:34:44 +00:00
Aryeh Gregor
4299d27956
Use HTML5 rel attributes for some links
...
http://dev.w3.org/html5/spec/#linkTypes
Probably doesn't do much, but looks cool. :)
2009-01-22 00:11:23 +00:00
Bryan Tong Minh
1489500d1d
Need setOffset and setLimit as well
2008-10-29 19:21:21 +00:00
Bryan Tong Minh
666ab2c774
Add IndexPager::getResult so that other code (API) can access the result.
2008-10-29 18:15:39 +00:00
Aaron Schulz
e1b225a365
(bug 16009) Remove extra title param
2008-10-17 00:46:50 +00:00
Brion Vibber
37dded29d1
Revert r40953 '(bug 7509) Don't hardcode separation strings, make them configurable'
...
This seems to make code much uglier and harder to maintain -- there are a bajillion new calls to "wfMsgExt( 'pipe-separator' , 'escapenoentities' )" which is not trivial or easy to remember. This makes code uglier, harder to read, harder to maintain, and more prone to error.
2008-09-18 17:11:51 +00:00
Siebrand Mazeland
0057d58e09
(bug 7509) Don't hardcode separation strings, make them configurable
...
* Introduced message 'pipe-separator' to replace many occurrence of " | ". No changes made in skin "Nostalgia".
2008-09-17 09:41:51 +00:00
Antoine Musso
48d55e1b9d
Add css classes to the Pager just like our QueryPages
2008-08-31 12:59:45 +00:00
Aaron Schulz
e00eba8f47
* Fix issue with "next" link going to the same place when date given (bug 15364)
...
* Remove some cruft in ContribsPager
2008-08-29 05:19:05 +00:00
Aaron Schulz
250e1244ca
* Better yet, move getDateCond() to reverseChronologicalPager to avoid duplication.
...
* Make LogPager use getDateCond(). This also means that greg's fixes to contribs apply to logs as well.
2008-08-01 22:38:45 +00:00
Niklas Laxström
24122b974e
* More fixes to misuse of wfmsg functions
...
* Should fix bug 14767
2008-07-09 09:17:20 +00:00
Brion Vibber
5295b07457
Revert r35277 (grayed-out paging links). IMHO this just doesn't look very good.
2008-05-25 17:00:38 +00:00
Leon Weber
709416c74a
Paging links on special pages now have CSS classes and are greyed out by default when disabled. Somehow related to bug 14244.
2008-05-24 09:37:45 +00:00
Alexandre Emsenhuber
087a9f70c5
WARNING: HUGE COMMIT
...
Doxygen documentation update:
* Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group.
* Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file.
* Removed some empty comments
* Removed some ?>
Added following groups:
* ExternalStorage
* JobQueue
* MaintenanceLanguage
One more thing: there are still a lot of warnings when generating the doc.
2008-05-20 17:13:28 +00:00
Aaron Schulz
228f097d95
Pass in $join_conds
2008-05-10 13:38:07 +00:00
Aryeh Gregor
8d69540a2f
Use rel="start", "prev", "next" appropriately on Pager-based pages (just adding them to the <a> tags, not adding <link> at the moment). I don't think any client uses these right now, but then, of course they won't if no web apps use them, will they?
2008-05-07 01:47:05 +00:00
Siebrand Mazeland
79d5225c0e
* remove end of line whitespace
...
* remove empty lines at end of file
* remove "?>" where still present
2008-04-14 07:45:50 +00:00
Aryeh Gregor
bdf9431795
Remove the functionality allowing users to change the default direction; this is basically redundant with first/last. Uncomment the multiple-ordering stuff in Pager.php, since it works fine, but comment it out in SpecialCategories.php, since the index is not unique and it won't sort correctly. IndexPager needs to support multiple-column sort, and the index should be extended to (cat_pages, cat_title).
2008-03-20 21:49:22 +00:00
Brion Vibber
63268d481a
comment the extra category paging option links for now as they're kinda broken
...
the new options aren't retained on the paging links, and they don't interact correctly with various special page parameters such as starting points on the user lists
2008-03-20 21:09:47 +00:00
Aryeh Gregor
60f645cf0b
Per Brion's suggestion, show the selected options too for the Pager stuff, with no link, just as we do for the other bits.
2008-03-20 20:54:29 +00:00
Aryeh Gregor
ad178edb80
Move some of the changes I made to Special:Categories out of SpecialCategories.php and into Pager.php. Allow multiple possible sort orders for IndexPager, allow user override of sort direction for IndexPager, add extra links as appropriate for AlphabeticPager. Some of this seems to duplicate TablePager logic; I'm not sure why that's a separate class to begin with. Or why AlphabeticPager is called that, given that it's not necessarily alphabetic at all. In fact all of these child classes seem to perform almost identical functions and it seems as though folding them into the IndexPager class would reduce code duplication.
2008-03-20 17:02:35 +00:00
Aryeh Gregor
f13cec37db
Nighttime commit when I'm tired and want to get this thing checked in and go to bed! Yay! Allow sorting by number of members on Special:Categories, and also allow descending sorts. Mostlinkedcategories should be killed and turned into a redirect to this.
2008-03-20 01:49:33 +00:00
Niklas Laxström
0913b9cc80
* Added new pager-{older,newer}-n messages for chronological paging (bug 4777)
2007-12-07 09:13:07 +00:00
Raimond Spekking
6235449e09
* (bug 11809) Use formatNum() for more numbers
...
Based on a patch of Roozbeh Pournader
2007-10-30 11:57:39 +00:00