Last modified: 2006-01-24 00:41:55 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 2937 - Default text for new articles
Default text for new articles
Status: RESOLVED DUPLICATE of bug 2286
Product: MediaWiki extensions
Classification: Unclassified
InputBox (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
  Show dependency treegraph
Reported: 2005-07-22 22:54 UTC by FrankSchweickert
Modified: 2006-01-24 00:41 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description FrankSchweickert 2005-07-22 22:54:16 UTC
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)
   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

Comment 1 Zigger 2005-07-23 03:21:55 UTC
See also these similar requests with patches/extensions:
* bug 1045 : default text from a template (file)
* bug 2286 : default text from a template using a form-generating extension
Comment 2 FrankSchweickert 2005-07-23 13:45:47 UTC
The inputbox extension would indeed do the trick

But where can one find it? I didnt find any download for the correspondent php
file to go in the extension folder of my 1.5 beta 3 installation.

I tried and Google

And why is this no core feature? I understand that people fear interference of
default texts with the philosophy of open Wikipedias. But you can always delete
the text in the edit box.
And default text helps the users to get used to the Wiki mark up syntax,
especially when dealing with highly structured types of information that use
advanced mark up features.

Comment 3 FrankSchweickert 2005-07-23 17:16:10 UTC
Ok - I found it, and it works.

I will see if I can place more obvious a hint where to find those extensions

Comment 4 Zigger 2005-07-24 02:18:45 UTC

*** This bug has been marked as a duplicate of 2286 ***

Note You need to log in before you can comment on or make changes to this bug.