User:Paxed/RandomPageTitle

From NetHackWiki
Jump to: navigation, search

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]