David Gerard wrote:
Anthony DiPierro wrote:
I found out what preload is. See http://en.wikipedia.org/w/index.php?title=Noarticlehere&action=edit&... So, in pseudocode (I don't know mediawiki), all that'd need to be done is change: return $text; to: if ($text!='') { return $text; } else if (namespace is article namespace) { return $newarticleboilerplate; } else { return ''; }
Fabulous! Preloading a blank article form should be not terribly traumatic ... How hard would it be to make the preload an option that a regular editor can switch off when it gets annoying? (Though I for one would probably keep mine on.)
[cc to wikitech-l]
- d.
If the developers need time for this, we could hack up a [[MediaWiki:monobook.js]] patch in the meantime that checks if a <div> with the id "newarticletext" is present, and enters the article template into the editbox if so. Of course, that would only work for user with JavaScript-enabled browsers, but I guess the majority of regular internet users use one (Yes, I'm going to get a lot of "Hey, I'm using Lynx you insensitive clod!" replies to this). It would only be a stopgap solution until a server-sided patch is ready anyway. I'm going to give this a try in my user js now, just for kicks.
grm_wnr