module MediaWiki::Constants

Constants

MISSING_PAGEID_PROC

@return [Proc] A proc that returns the missing page ID, -1. This is useful for using methods like Enumerable#find

and not creating a new Proc object for every call.
NAMESPACES

@since 0.2.0 as a module with individual global constants @since 0.4.0 as a module with a single global hash identical to this. @since 0.8.0 as its current state. @see www.mediawiki.org/wiki/Extension_default_namespaces MediaWiki's list of extension namespace IDs

and names.

@return [Hash<String, Fixnum>] The upcased namespace names, and their according ID. The keys, values, and

return value itself are all immutable.