Module:namespace/documentation
Jump to navigation
Jump to search
Allows templates to access information about namespaces from mw.site.namespaces
. Namespaces can be accessed by name or id (number). Boolean properties are converted to 1
if true
, else the empty string, so that they can be used in {{#if:}}
.
{{#invoke:namespace|info|0|isCapitalized}}
→{{#invoke:namespace|info|mediawiki|isCapitalized}}
→1
{{#invoke:namespace|info|mediawiki|isContent}}
→