Index: trunk/phase3/CREDITS |
— | — | @@ -74,6 +74,7 @@ |
75 | 75 | * Emufarmers |
76 | 76 | * FunPika |
77 | 77 | * Happy-melon |
| 78 | +* Ireas |
78 | 79 | * Jeremy Baron |
79 | 80 | * Jidanni |
80 | 81 | * Jimmy Xu |
Index: trunk/phase3/includes/SkinTemplate.php |
— | — | @@ -740,10 +740,19 @@ |
741 | 741 | // adds new section link if page is a current revision of a talk page or |
742 | 742 | if ( ( $wgArticle && $wgArticle->isCurrent() && $istalk ) || $wgOut->showNewSectionLink() ) { |
743 | 743 | if ( !$wgOut->forceHideNewSectionLink() ) { |
| 744 | + $urlArgs = 'action=edit§ion=new'; |
| 745 | + $preloadMsg = wfMsg( 'talk-addsection-preload' ); |
| 746 | + $editintroMsg = wfMsg( 'talk-addsection-editintro' ); |
| 747 | + if( '' != $preloadMsg ) { |
| 748 | + $urlArgs .= '&preload=' . urlencode( $preloadMsg ); |
| 749 | + } |
| 750 | + if( '' != $editintroMsg ) { |
| 751 | + $urlArgs .= '&editintro=' . urlencode( $editintroMsg ); |
| 752 | + } |
744 | 753 | $content_actions['addsection'] = array( |
745 | 754 | 'class' => $section == 'new' ? 'selected' : false, |
746 | 755 | 'text' => wfMsg( 'addsection' ), |
747 | | - 'href' => $this->mTitle->getLocalUrl( 'action=edit§ion=new' ) |
| 756 | + 'href' => $this->mTitle->getLocalUrl( $urlArgs ) |
748 | 757 | ); |
749 | 758 | } |
750 | 759 | } |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -1357,6 +1357,8 @@ |
1358 | 1358 | 'edit-no-change' => 'Your edit was ignored, because no change was made to the text.', |
1359 | 1359 | 'edit-already-exists' => 'Could not create a new page. |
1360 | 1360 | It already exists.', |
| 1361 | +'talk-addsection-preload' => '', # should be empty |
| 1362 | +'talk-addsection-editintro' => '', # should be empty |
1361 | 1363 | |
1362 | 1364 | # Parser/template warnings |
1363 | 1365 | 'expensive-parserfunction-warning' => "'''Warning:''' This page contains too many expensive parser function calls. |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -278,6 +278,8 @@ |
279 | 279 | * rebuildtextindex.php maintenance script now supports databases other than |
280 | 280 | MySQL |
281 | 281 | * upgrade1_5.php now requires to be run --update option to prevent confusion |
| 282 | +* (bug 17662) Customizable default preload/editintro in add-new-section link |
| 283 | + for Talk page |
282 | 284 | |
283 | 285 | === Bug fixes in 1.16 === |
284 | 286 | |