Last modified: 2009-11-12 22:36:05 UTC
Suggestion to change the add-new-section link on the top of Talk page (which appear as a plus sign "+" beside the edit link). == Current status == * The link look like {{fullurl:...|action=edit§ion=new}} == Suggestion for improvement == * The link should look like {{fullurl:...|action=edit§ion=new&preload=xxx&editintro=yyy}} * The value "xxx" and "yyy" can be customized in MediaWiki namespace, MediaWiki:talk-new-section-link-preload and MediaWiki:talk-new-section-link-editintro, for example. * If the page MediaWiki:talk-new-section-... is empty, then the link should look like {{fullurl:...|action=edit§ion=new}}, which is the same as current status
Created attachment 6636 [details] Checks preload and editintro system messages and adds them This proposed fix searches the system messages “talk-addsection-preload” and “talk-addsection-editintro” and loads them if they exist. Maybe it would be nice to try loading “talk-addsection-…-<namespace>” (e. g. “talk-addsection-preload-0”) and then (if it doesn’t exist) try loading the standard “talk-addsection-…”. Comments?
Created attachment 6638 [details] Improves the previous proposed patch Adds the two messages to MessagesEn.php (value ''). So I can check whether the system messages are '' (==> no editintro/preload) or not.
One may notice that, why not put the preload like, {{fullurl:...|action=edit§ion=new&preload=mediawiki:talk-addsection-preload&editintro=mediawiki:talk-addsection-editintro}}? Well, this will always prevent the user from editing the preload template, which is not desired. (In reply to comment #1) > > Maybe it would be nice to try loading “talk-addsection-…-<namespace>” (e. > g. “talk-addsection-preload-0”) and then (if it doesn’t exist) try > loading the standard “talk-addsection-…”. Comments? > Good, this is very useful.
Applied in r58980.