Author: barley
Description:
I need a default text for new articles that go in the edit box,
but I could figure it out from the documentation and the php source.
I find a solution that works for me, and should be interesting for other
users, too - but I'm actually not sure what I'm doing and if it
does affect security or functionality.
In Article.php I changed line 183 in function getContent()
return ''; # was "newarticletext", now moved above the box)
into
return wfMsg( 'fs_default' ); # was "newarticletext", now moved above the box)
Now, I can write my defaut text in an article "MediaWiki:fs_default". which will
show up in the textarea wbtextbox1 of the editing tool, whenever I run into a
non existing article.
Is that a good idea?
It would be even nicer if one could define a default text for every article level
Regards,
Frank
Version: unspecified
Severity: normal
URL: http://meta.wikimedia.org/wiki/Help:Inputbox#par_default