Extension talk:Preloader/Archive

Assign and Define $wgExtraNamespaces
Note that while MediaWiki will recognize content namespaces you create on the fly, if want to preload these, in addition to the instructions on the previous page, you need to assign and define them, probably in LocalSettings.php:

. E.g., if you have a "Glossary:" namespace: $wgExtraNamespaces = array(         # ExtraNamespaces should begin above 100          #  ... they are usually for translating standard namespaces, e.g. into German:          # 100 => "Hilfe",          # 101 => "Hilfe_Diskussion",          130 => "Glossary"          );

define('NS_GLOSSARY', 130); Now you can set, e.g.

$wgPreloaderSource[ NS_GLOSSARY ] = 'Template:Preloadglossary';