Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F5522
skintpl2.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 10:31 PM
2014-11-21 22:31:51 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
skintpl2.patch
View Options
Index: includes/SkinTemplate.php
===================================================================
--- includes/SkinTemplate.php (Revision 57428)
+++ includes/SkinTemplate.php (Arbeitskopie)
@@ -740,10 +740,19 @@
// adds new section link if page is a current revision of a talk page or
if ( ( $wgArticle && $wgArticle->isCurrent() && $istalk ) || $wgOut->showNewSectionLink() ) {
if ( !$wgOut->forceHideNewSectionLink() ) {
+ $urlArgs = 'action=edit§ion=new';
+ $preloadMsg = wfMsg( 'talk-addsection-preload' );
+ $editintroMsg = wfMsg( 'talk-addsection-editintro' );
+ if( '' != $preloadMsg ) {
+ $urlArgs .= '&preload=' . urlencode( $preloadMsg );
+ }
+ if( '' != $editintroMsg ) {
+ $urlArgs .= '&editintro=' . urlencode( $editintroMsg );
+ }
$content_actions['addsection'] = array(
'class' => $section == 'new' ? 'selected' : false,
'text' => wfMsg( 'addsection' ),
- 'href' => $this->mTitle->getLocalUrl( 'action=edit§ion=new' )
+ 'href' => $this->mTitle->getLocalUrl( $urlArgs )
);
}
}
Index: languages/messages/MessagesEn.php
===================================================================
--- languages/messages/MessagesEn.php (Revision 57428)
+++ languages/messages/MessagesEn.php (Arbeitskopie)
@@ -1356,6 +1356,8 @@
'edit-no-change' => 'Your edit was ignored, because no change was made to the text.',
'edit-already-exists' => 'Could not create a new page.
It already exists.',
+'talk-addsection-preload' => '', # should be empty
+'talk-addsection-editintro' => '', # should be empty
# Parser/template warnings
'expensive-parserfunction-warning' => "'''Warning:''' This page contains too many expensive parser function calls.
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5074
Default Alt Text
skintpl2.patch (1 KB)
Attached To
Mode
T19662: Customizable default preload/editintro in add-new-section link for Talk page
Attached
Detach File
Event Timeline
Log In to Comment