Extension talk:NewArticleTemplates

Preloader for Image/Media Upload
Does the extension work with NS_IMAGE? Thank you for any replying. :-) --Roc michael 22:59, 11 May 2008 (UTC)


 * Oo.et.oO 18:35, 12 August 2008 (UTC):
 * Hi Roc michael,
 * I added:

NS_IMAGE               => 1,
 * to $wgNewArticleTemplatesNamespaces and it works... kinda. when adding an article named "Image:fake_test.jpg" the article used the template specified (in this case : $wgNewArticleTemplatesDefault).   Of course after the article creation it says that no such file exists.


 * However, using the "Upload file" link in the toolbox does not use the template.
 * i might also find that useful if i need users to always put certain markup in the "summary".
 * where would you have the template add the preload markup? in the "summary" box?


 * anyone else have comments on how it would work with upload file?

Download error
Hi Mati, When I tried to download the extension, I will see the following message: Not Found The requested URL /mediawiki/trunk/NewArticleTemplates was not found on this server.


 * Oo.et.oO 18:09, 12 August 2008 (UTC): works for me using both the download http link as well as subversion.

merging of extensions?
I'm the author of the extension described on the subject-page. The See-Also chapter had this added: Perhaps Extension:Preloader, Extension:PreloadManager, Extension:NewArticleTemplates and Extension:Boilerplate should be merged? I skimmed through the other extensions and couldn't find much functionality that is not provided by this extension. If there is functionality that would be "nice to have" in this extension and exists in other extensions, I'm happy to integrate them here - so please post suggestions here. It would also be ok to move it to the MediaWiki SVN, if the MediaWiki-team would like that. Let me know what you think! -- Mati 11:14, 12 October 2008 (UTC)

You have a error in you PHP code
NS_MAIN                => "MediaWiki:NewArticleTemplate", should be        NS_MAIN                 => "MediaWiki:NewArticleTemplate"
 * actually, thats not an error. PHP accepts the coma after the last element in an array. This eases code-maintenance, i.e. consider this:


 * In this code, you can safely add another line at the end and the code still works. If you comment the last line out, again, there is no problem with php. -- Mati 17:33, 12 November 2008 (UTC)