Extension talk:PreloadManager

From MediaWiki.org
Jump to navigation Jump to search

Namespace List[edit]

Hi, depents the list for $namespace$ from the language? Where can i get a full list?

Thank!

Hi - on the equivalent page to Special:Allpages, there is a drop-down list called namespace where one can see all the active namespaces on one's wiki. Jean-Lou Dupont 10:33, 23 May 2008 (UTC)

PreloadManager package[edit]

Hello Jean-Lou, I couldn't figure out where to download the PreloadManager folder that I need to put in the wiki/extensions directory. Thanks, pax

Can't figure out how to make this work in the main namespace[edit]

Hi, we have installed the extension, and it works for, e.g., the Template namespace by creating a MediaWiki:PreloadManager/Template subpage and add the preloaded text in includeonlys there. However, I cannot figure out how to make this work for the Main namespace. I have tried creating test pages at

  • MediaWiki:PreloadManager
  • MediaWiki:PreloadManager/Main
  • MediaWiki:PreloadManager/(Main)

but none of this works. Obviously I am missing what the canonical name of the main namespace is... All our name spacenames are the default ones (except the name of the wiki itself of course)

Bonus question:

Can I use this manager to preload the summary field in the file upload? If not, what is the easiest way to add a fixed template there.

-- Slaunger 09:10, 15 January 2009 (UTC)

Is this working with MW 1.15.0[edit]

I've tried to get it working with the custum namespace and it seems to be doing nothing, i have a namespace Video ($wgExtraNamespaces[NS_VIDEO] = "Video";) and i put what i want to go in the default text box of the new pages in MediaWiki:PreloadManager/Video. When i go to Video:bla and click on create i get nothing. 92.243.182.121 15:00, 24 December 2009 (UTC)

I'm also trying to use this with 1.15, and getting nothing. I've posted a question at mwusers.com, and I realised I should add my experiences here, in case it's useful to anyone.
Special:Version is showing that PreloadManager, and its dependency Extension:StubManager, are installed. I've created MediaWiki:PreloadManager/User, but new pages in the user namespace still start blank. Since the author's userpage says that he hasn't been maintaining the extension for more than a year, I'm wondering whether recent changes to MediaWiki have broken it. I don't know enough about PHP or the MediaWiki codebase to work out whether that's true. --HughCharlesParker (talk - contribs) 10:53, 20 April 2010 (UTC)
...and now I've found an alternative that does. I found Manual:Creating pages with preloaded text, which pointed me to Extension:Preloader. I tried it, and it works. --HughCharlesParker (talk - contribs) 21:36, 20 April 2010 (UTC)
Thanks for following up with that helpful information. Badon 05:59, 23 July 2011 (UTC)

Interesting error with 1.17[edit]

Extension works well, except for one very small detail. In 1.17, if you go to "Special:Version" you'll find this error at the very top, where you typically find PHP echo messages

Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method StubManager::hUpdateExtensionCredits() should not be called statically in D:\xampp\htdocs\w\includes\Hooks.php on line 133

The function "hUpdateExtensionCredits" is on line 336 of StubManager.php, and I don't know nearly enough about PHP to fix the issue.

Aaaaand 5 minutes later I find the solution here. In short, change Line 366 to

public static function hUpdateExtensionCredits( &$sp, &$ext ) {

German mediawiki Version 1.25[edit]

The extension causes an fatal error, when trying to create new categories. --[[User:Bmrberlin| Bernd M.]] (talk) 06:25, 24 February 2016 (UTC)