From 95c9eca7bfffebd4d39740912f74a1c6f496b95b Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Thu, 10 Apr 2014 13:30:25 -0700 Subject: [PATCH] Better text for in core The message has been tweaked to be closer to the version used for several years with success on the English Wikipedia and on some other wikis. In particular, the calls-to-action now have individual links rather than expecting users to be able to magically find them themselves, and a user- facing justification for why they should log in. Change-Id: I687e47c23618e536a8f3010d7a6f168feb7bfa72 --- includes/EditPage.php | 13 +++++++++++-- languages/i18n/en.json | 2 +- languages/i18n/qqq.json | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index c3b0dadec7..a93e975cfd 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -2617,9 +2617,18 @@ class EditPage { ); } elseif ( $wgUser->isAnon() ) { if ( $this->formtype != 'preview' ) { - $wgOut->wrapWikiMsg( "
\n$1
", 'anoneditwarning' ); + $wgOut->wrapWikiMsg( + "
\n$1\n
", + array( 'anoneditwarning', + // Log-in link + '{{fullurl:Special:UserLogin|returnto={{FULLPAGENAMEE}}}}', + // Sign-up link + '{{fullurl:Special:UserLogin/signup|returnto={{FULLPAGENAMEE}}}}' ) + ); } else { - $wgOut->wrapWikiMsg( "
\n$1
", 'anonpreviewwarning' ); + $wgOut->wrapWikiMsg( "
\n$1
", + 'anonpreviewwarning' + ); } } else { if ( $this->isCssJsSubpage ) { diff --git a/languages/i18n/en.json b/languages/i18n/en.json index d6d22ffacb..e1143b50c6 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -585,7 +585,7 @@ "showpreview": "Show preview", "showdiff": "Show changes", "blankarticle": "Warning: The page you are creating is blank.\nIf you click \"{{int:savearticle}}\" again, the page will be created without any content.", - "anoneditwarning": "Warning: You are not logged in.\nYour IP address will be recorded in this page's edit history.", + "anoneditwarning": "Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you [$1 log in] or [$2 create an account], your edits will be attributed to your username, along with other benefits.", "anonpreviewwarning": "You are not logged in. Saving will record your IP address in this page's edit history.", "missingsummary": "Reminder: You have not provided an edit summary.\nIf you click \"{{int:savearticle}}\" again, your edit will be saved without one.", "missingcommenttext": "Please enter a comment below.", diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index 25e9ecc339..c6d5f12547 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -747,7 +747,7 @@ "showpreview": "The text of the button to preview the page you are editing. See also {{msg-mw|showdiff}} and {{msg-mw|savearticle}} for the other buttons.\n\nSee also:\n* {{msg-mw|Showpreview}}\n* {{msg-mw|Accesskey-preview}}\n* {{msg-mw|Tooltip-preview}}\n{{Identical|Show preview}}", "showdiff": "Button below the edit page. See also {{msg-mw|Showpreview}} and {{msg-mw|Savearticle}} for the other buttons.\n\nSee also:\n* {{msg-mw|Showdiff}}\n* {{msg-mw|Accesskey-diff}}\n* {{msg-mw|Tooltip-diff}}\n{{Identical|Show change}}", "blankarticle": "Notice displayed once after the user tries to save an empty page.", - "anoneditwarning": "Shown when editing a page anonymously.\nSee also:\n* {{msg-mw|Sf autoedit anoneditwarning}}\n* {{msg-mw|Wikibase-anonymouseditwarning-property}}\n* {{msg-mw|Wikibase-anonymouseditwarning-item}}\n* {{msg-mw|Anonpreviewwarning}}", + "anoneditwarning": "Shown when editing a page anonymously.\n\nParameters:\n* $1 – A link to log in, {{fullurl:Special:UserLogin|returnto={{FULLPAGENAMEE}}}}\n* $2 – A link to sign up, {{fullurl:Special:UserLogin/signup|returnto={{FULLPAGENAMEE}}}}\n\nSee also:\n* {{msg-mw|Sf autoedit anoneditwarning}}\n* {{msg-mw|Wikibase-anonymouseditwarning-property}}\n* {{msg-mw|Wikibase-anonymouseditwarning-item}}\n* {{msg-mw|Anonpreviewwarning}}", "anonpreviewwarning": "See also:\n* {{msg-mw|Anoneditwarning}}", "missingsummary": "The text \"edit summary\" is in {{msg-mw|Summary}}.\n\nSee also:\n* {{msg-mw|Missingcommentheader}}\n* {{msg-mw|Savearticle}}", "missingcommenttext": "This message is shown, when the textbox by a new-section is empty.", -- 2.20.1