Re: [Wikitech-l] [T62399] Possible alert message to show

2017-02-20 Thread Shanika Ediriweera
I think more user friendly warning would be better.

Using dev jargon like Foo:Foo:Bar. 'Foo:Foo would not be appropriate since
most of the wiki users are not developers.

If the namespace drop-down menu at Special:MovePage is a misfeature what
would be a better fix?

Best Regards,

Shanika Ediriweera
Undergraduate
Dept. of Computer Science & Eng.
University of Moratuwa

On 21 February 2017 at 08:47, MZMcBride  wrote:

> Shanika Ediriweera wrote:
> >I am working on the task "When moving, warn if people try to move to
> >Foo:Foo:Bar (repeated namespace)" -
> >https://phabricator.wikimedia.org/T62399
> >.
> >
> >What would be a good alert message for the users when there is repeated
> >namespace in title?
>
> Maybe something like this:
>
> "Please verify your new page title: Foo:Foo:Bar. 'Foo:Foo:' in a page
> title is usually a mistake."
>
> But the deeper issue is . The
> namespace drop-down menu at Special:MovePage is a misfeature.
>
> MZMcBride
>
>
>
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] [T62399] Possible alert message to show

2017-02-20 Thread MZMcBride
Shanika Ediriweera wrote:
>I am working on the task "When moving, warn if people try to move to
>Foo:Foo:Bar (repeated namespace)" -
>https://phabricator.wikimedia.org/T62399
>.
>
>What would be a good alert message for the users when there is repeated
>namespace in title?

Maybe something like this:

"Please verify your new page title: Foo:Foo:Bar. 'Foo:Foo:' in a page
title is usually a mistake."

But the deeper issue is . The
namespace drop-down menu at Special:MovePage is a misfeature.

MZMcBride



___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] [T62399] Possible alert message to show

2017-02-20 Thread Shanika Ediriweera
Hi,

I am working on the task "When moving, warn if people try to move to
Foo:Foo:Bar (repeated namespace)" - https://phabricator.wikimedia.org/T62399
.

What would be a good alert message for the users when there is repeated
namespace in title?

Thank you.

Best Regards,

Shanika Ediriweera
Undergraduate
Dept. of Computer Science & Eng.
University of Moratuwa
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] VisualEditor discards changes made in Wikitext editor

2017-02-20 Thread Alex Monk
One of the things that should probably be noted is that, if I recall
correctly, this was the feature that required the addition of the
wgVisualEditorFullRestbaseURL configuration - previously there was just
wgVisualEditorRestbaseURL. You'll need to set up RB and point that config
var at it.

On 20 February 2017 at 21:02, John P. New  wrote:

> On February 20, 2017 08:34:35 PM James Forrester wrote:
> > On Mon, 20 Feb 2017 at 10:42 John P. New  wrote:
> >
> > > I've set up MW 1.28 with VE/parsoid and everything is working well
> > >
> > > However, when I edit in (any) wikitext editor and try to switch to VE,
> I
> > > am presented with a dialog with only 2 choices: "Cancel" or "Discard my
> > > changes and switch". Diving into the code I found I could change
> > > ve.init.MWVESwitchConfirmDialog.js (line 58) from
> > >   modes: [ 'restbase' ]
> > > to
> > >   modes: [ 'restbase', 'simple' ]
> > >
> > > that adds "Switch" to the dialog box, but when this option is chosen,
> any
> > > changes made in the wikitext editor are lost.
> > >
> > > Is this a mis-configuration on my part or is switching from edited
> > > wikitext to VE not supported? Do I need a RESTbase server to implement
> this
> > > functionality?
> > >
> >
> > RESTbase provides the switching-with-changes ability, yes. There's a
> reason
> > VE doesn't offer switching-with-changes without it. :-) In general,
> > fiddling with the code inside an extension is always going to break.
> >
> > J.
> >
> Thanks for the clarification.
>
> Should this be noted in the setup instructions for Visual Editor? It would
> have saved me a lot of head-scratching and investigation time.
>
> And yes, I realize messing with the code will break things, but it was my
> way of finding out that I might need a RESTbase server and to point to
> where my problem was. :-)
>
> John
>
>
>
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] VisualEditor discards changes made in Wikitext editor

2017-02-20 Thread John P. New
On February 20, 2017 08:34:35 PM James Forrester wrote:
> On Mon, 20 Feb 2017 at 10:42 John P. New  wrote:
> 
> > I've set up MW 1.28 with VE/parsoid and everything is working well
> >
> > However, when I edit in (any) wikitext editor and try to switch to VE, I
> > am presented with a dialog with only 2 choices: "Cancel" or "Discard my
> > changes and switch". Diving into the code I found I could change
> > ve.init.MWVESwitchConfirmDialog.js (line 58) from
> >   modes: [ 'restbase' ]
> > to
> >   modes: [ 'restbase', 'simple' ]
> >
> > that adds "Switch" to the dialog box, but when this option is chosen, any
> > changes made in the wikitext editor are lost.
> >
> > Is this a mis-configuration on my part or is switching from edited
> > wikitext to VE not supported? Do I need a RESTbase server to implement this
> > functionality?
> >
> 
> RESTbase provides the switching-with-changes ability, yes. There's a reason
> VE doesn't offer switching-with-changes without it. :-) In general,
> fiddling with the code inside an extension is always going to break.
> 
> J.
> 
Thanks for the clarification.

Should this be noted in the setup instructions for Visual Editor? It would have 
saved me a lot of head-scratching and investigation time.

And yes, I realize messing with the code will break things, but it was my way 
of finding out that I might need a RESTbase server and to point to where my 
problem was. :-)

John



___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] VisualEditor discards changes made in Wikitext editor

2017-02-20 Thread James Forrester
On Mon, 20 Feb 2017 at 10:42 John P. New  wrote:

> I've set up MW 1.28 with VE/parsoid and everything is working well
>
> However, when I edit in (any) wikitext editor and try to switch to VE, I
> am presented with a dialog with only 2 choices: "Cancel" or "Discard my
> changes and switch". Diving into the code I found I could change
> ve.init.MWVESwitchConfirmDialog.js (line 58) from
>   modes: [ 'restbase' ]
> to
>   modes: [ 'restbase', 'simple' ]
>
> that adds "Switch" to the dialog box, but when this option is chosen, any
> changes made in the wikitext editor are lost.
>
> Is this a mis-configuration on my part or is switching from edited
> wikitext to VE not supported? Do I need a RESTbase server to implement this
> functionality?
>

RESTbase provides the switching-with-changes ability, yes. There's a reason
VE doesn't offer switching-with-changes without it. :-) In general,
fiddling with the code inside an extension is always going to break.

J.

-- 

James D. Forrester
Lead Product Manager, Editing
Wikimedia Foundation, Inc.
jforrester at wikimedia.org
 |
@jdforrester
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] VisualEditor discards changes made in Wikitext editor

2017-02-20 Thread John P. New
I've set up MW 1.28 with VE/parsoid and everything is working well

However, when I edit in (any) wikitext editor and try to switch to VE, I am 
presented with a dialog with only 2 choices: "Cancel" or "Discard my changes 
and switch". Diving into the code I found I could change 
ve.init.MWVESwitchConfirmDialog.js (line 58) from
  modes: [ 'restbase' ]
to
  modes: [ 'restbase', 'simple' ]

that adds "Switch" to the dialog box, but when this option is chosen, any 
changes made in the wikitext editor are lost.

Is this a mis-configuration on my part or is switching from edited wikitext to 
VE not supported? Do I need a RESTbase server to implement this functionality?


___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l