Difference between revisions of "User:Paxed/RandomPageTitle"
Jump to navigation
Jump to search
m (docs) |
m (todo) |
||
Line 1: | Line 1: | ||
− | This extension adds a new parser function <nowiki>{{#rndpagetitle:Foo}}</nowiki>, which returns a random page title from pages belonging to category Foo. Invalidates page cache. | + | This extension adds a new parser function <nowiki>{{#rndpagetitle:Foo}}</nowiki>, 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? | ||
== Source == | == Source == | ||
See [http://nethackwiki.com/mediawiki/extensions/RandomPageTitle/RandomPageTitle.php.txt] | See [http://nethackwiki.com/mediawiki/extensions/RandomPageTitle/RandomPageTitle.php.txt] |
Revision as of 12:47, 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?
Source
See [1]