r112654 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112653‎ | r112654 | r112655 >
Date:23:18, 28 February 2012
Author:bsitu
Status:deferred
Tags:
Comment:
Adding a new exit button to article creation landing page
Modified paths:
  • /trunk/extensions/ArticleCreationWorkflow/ArticleCreationWorkflow.i18n.php (modified) (history)
  • /trunk/extensions/ArticleCreationWorkflow/ArticleCreationWorkflow.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ArticleCreationWorkflow/ArticleCreationWorkflow.i18n.php
@@ -33,6 +33,11 @@
3434 'ac-hover-tooltip-body-request' => "<ul><li> You want to see the article exist, and</li>
3535 <li>You do not wish to write it yourself.</li></ul>",
3636
 37+ 'ac-action-exit' => 'Get out of here.',
 38+ 'ac-action-exit-subtitle' => 'Oops. This isn\'t what I wanted.',
 39+ 'ac-action-exit-subtitle-anon' => 'Oops. This isn\'t what I wanted.',
 40+ 'ac-hover-tooltip-body-exit' => '<ul><li>You want to go back to previous page.</li></ul>',
 41+
3742 'ac-action-draft' => 'Create a draft',
3843 'ac-action-draft-subtitle' => 'I want to make a draft of this article before I publish it to {{SITENAME}}.',
3944 'ac-hover-tooltip-body-draft' => "<ul><li>You haven't created an article before, or</li>
@@ -83,6 +88,11 @@
8489 'ac-action-request-subtitle-anon' => 'Explanation that AfC does not require an account',
8590 'ac-hover-tooltip-body-request' => "Bullet point, explains why the user might want to create a draft",
8691
 92+ 'ac-action-exit' => 'Prompt to get out of Article Creation Workflow landing page',
 93+ 'ac-action-exit-subtitle' => 'First-person statement for the exit button subtitle',
 94+ 'ac-action-exit-subtitle-anon' => 'First-person statement for the exit button subtitle',
 95+ 'ac-hover-tooltip-body-exit' => "Bullet point, displayed when the user wants to get out of Article Creation Workflow landing page",
 96+
8797 'ac-action-draft' => 'Prompt to create a draft, goes inside button',
8898 'ac-action-draft-subtitle' => 'First-person statement for the draft button subtitle.',
8999 'ac-hover-tooltip-body-draft' => "Bullet point, explains why the user might want to create a draft article.",
Index: trunk/extensions/ArticleCreationWorkflow/ArticleCreationWorkflow.php
@@ -72,6 +72,7 @@
7373 'ac-hover-tooltip-body-draft',
7474 'ac-hover-tooltip-body-signup',
7575 'ac-hover-tooltip-body-login',
 76+ 'ac-hover-tooltip-body-exit',
7677 'ac-create-warning-create',
7778 'ac-create-warning-wizard',
7879 'ac-create-button',
@@ -117,6 +118,14 @@
118119 'text' => 'ac-hover-tooltip-body-request',
119120 ),
120121 ),
 122+ 'exit' => array(
 123+ 'title' => 'ac-action-exit',
 124+ 'text' => 'ac-action-exit-subtitle-anon',
 125+ 'tooltip' => array(
 126+ 'title' => 'ac-hover-tooltip-title',
 127+ 'text' => 'ac-hover-tooltip-body-exit',
 128+ ),
 129+ ),
121130 ),
122131 'logged-in' => array(
123132 'request' => array(
@@ -167,6 +176,14 @@
168177 </div>
169178 HTML
170179 ),
 180+ 'exit' => array(
 181+ 'title' => 'ac-action-exit',
 182+ 'text' => 'ac-action-exit-subtitle',
 183+ 'tooltip' => array(
 184+ 'title' => 'ac-hover-tooltip-title',
 185+ 'text' => 'ac-hover-tooltip-body-exit',
 186+ ),
 187+ ),
171188 ),
172189 );
173190
@@ -176,7 +193,8 @@
177194 'create' => '{{SCRIPT}}?title={{PAGE}}&action=edit&acwbucket={{BUCKETID}}&acwsource={{SOURCE}}',
178195 'login' => '{{SCRIPT}}?title=Special:Userlogin&returnto=Special:ArticleCreationLanding/{{PAGE}}',
179196 'signup' => '{{SCRIPT}}?title=Special:Userlogin/signup&returnto=Special:ArticleCreationLanding/{{PAGE}}&returntoquery=' . urlencode( 'fromsignup=1' ),
180 - 'request' => 'http://google.com/?q={{PAGE}}'
 197+ 'request' => 'http://google.com/?q={{PAGE}}',
 198+ 'exit' => 'javascript:history.go(-1)',
181199 ),
182200 'buttons' => $wgArticleCreationButtons,
183201 );

Status & tagging log