Difference between revisions of "User:Paxed/RandomPageTitle"
Jump to navigation
Jump to search
m (todo) |
m (todo) |
||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
*Check that we're actually returning something. (subclassing RandomPage would fix this automagically) | *Check that we're actually returning something. (subclassing RandomPage would fix this automagically) | ||
*More params? | *More params? | ||
+ | **Exclude categories? | ||
+ | **redirects=yes|no | ||
+ | **subcats? | ||
== Source == | == Source == | ||
See [http://nethackwiki.com/mediawiki/extensions/RandomPageTitle/RandomPageTitle.php.txt] | See [http://nethackwiki.com/mediawiki/extensions/RandomPageTitle/RandomPageTitle.php.txt] |
Latest revision as of 12:54, 5 February 2011
This extension adds a new parser function {{#rndpagetitle:Foo}}, which returns a random page title from pages belonging to category Foo.
Note: Invalidates page cache.
TODO
- Subclass RandomPage instead of doing our own sql.
- Check that we're actually returning something. (subclassing RandomPage would fix this automagically)
- More params?
- Exclude categories?
- redirects=yes|no
- subcats?
Source
See [1]