Re: [Wikimedia-l] New template "URL to diff"

2015-02-25 Thread Ricordisamoa

Il 25/02/2015 10:49, Andy Mabbett ha scritto:

On 25 February 2015 at 07:27, Ricordisamoa  wrote:


I'd rather suggest a global JavaScript gadget to replace those URLs with
plain Special:Diff links, since the {{diff}} template does not work in
every
wiki.

Great; let me know when you've got that working.


That's it:
https://meta.wikimedia.org/wiki/User:Ricordisamoa/DiffAutoLinker.js

So? Have you ever tried it?

No. Is it a global gadget, yet?


We don't have actual global gadgets yet, but this code will work on Meta:

importScript( 'User:Ricordisamoa/DiffAutoLinker.js' );
___
Wikimedia-l mailing list, guidelines at: 
https://meta.wikimedia.org/wiki/Mailing_lists/Guidelines
Wikimedia-l@lists.wikimedia.org
Unsubscribe: https://lists.wikimedia.org/mailman/listinfo/wikimedia-l, 


Re: [Wikimedia-l] New template "URL to diff"

2015-02-25 Thread Andy Mabbett
On 25 February 2015 at 07:27, Ricordisamoa  wrote:

 I'd rather suggest a global JavaScript gadget to replace those URLs with
 plain Special:Diff links, since the {{diff}} template does not work in
 every
 wiki.
>>>
>>> Great; let me know when you've got that working.
>>>
>> That's it:
>> https://meta.wikimedia.org/wiki/User:Ricordisamoa/DiffAutoLinker.js
>
> So? Have you ever tried it?

No. Is it a global gadget, yet?

-- 
Andy Mabbett
@pigsonthewing
http://pigsonthewing.org.uk

___
Wikimedia-l mailing list, guidelines at: 
https://meta.wikimedia.org/wiki/Mailing_lists/Guidelines
Wikimedia-l@lists.wikimedia.org
Unsubscribe: https://lists.wikimedia.org/mailman/listinfo/wikimedia-l, 


Re: [Wikimedia-l] New template "URL to diff"

2015-02-24 Thread Ricordisamoa

Il 02/01/2015 13:41, Ricordisamoa ha scritto:

Il 02/01/2015 12:45, Andy Mabbett ha scritto:
On 2 January 2015 at 10:46, Ricordisamoa 
 wrote:



Honestly, I don't think it is easier to type {{subst:url to diff}} than
[[Special:Diff]].

It's not a matter of which is eaier to type. It's a matter of which is
the easier way for non techncial editrs to convert the URL in their
clipboard to something that we prefer on-wiki.

I'd rather suggest a global JavaScript gadget to replace those URLs 
with
plain Special:Diff links, since the {{diff}} template does not work 
in every

wiki.

Great; let me know when you've got that working.

That's it: 
https://meta.wikimedia.org/wiki/User:Ricordisamoa/DiffAutoLinker.js

So? Have you ever tried it?

___
Wikimedia-l mailing list, guidelines at: 
https://meta.wikimedia.org/wiki/Mailing_lists/Guidelines
Wikimedia-l@lists.wikimedia.org
Unsubscribe: https://lists.wikimedia.org/mailman/listinfo/wikimedia-l, 


Re: [Wikimedia-l] New template "URL to diff"

2015-01-02 Thread Ricordisamoa

Il 02/01/2015 12:45, Andy Mabbett ha scritto:

On 2 January 2015 at 10:46, Ricordisamoa  wrote:


Honestly, I don't think it is easier to type {{subst:url to diff}} than
[[Special:Diff]].

It's not a matter of which is eaier to type. It's a matter of which is
the easier way for non techncial editrs to convert the URL in their
clipboard to something that we prefer on-wiki.


I'd rather suggest a global JavaScript gadget to replace those URLs with
plain Special:Diff links, since the {{diff}} template does not work in every
wiki.

Great; let me know when you've got that working.

That's it: 
https://meta.wikimedia.org/wiki/User:Ricordisamoa/DiffAutoLinker.js


___
Wikimedia-l mailing list, guidelines at: 
https://meta.wikimedia.org/wiki/Mailing_lists/Guidelines
Wikimedia-l@lists.wikimedia.org
Unsubscribe: https://lists.wikimedia.org/mailman/listinfo/wikimedia-l, 


Re: [Wikimedia-l] New template "URL to diff"

2015-01-02 Thread Andy Mabbett
On 2 January 2015 at 10:46, Ricordisamoa  wrote:

> Honestly, I don't think it is easier to type {{subst:url to diff}} than
> [[Special:Diff]].

It's not a matter of which is eaier to type. It's a matter of which is
the easier way for non techncial editrs to convert the URL in their
clipboard to something that we prefer on-wiki.

> I'd rather suggest a global JavaScript gadget to replace those URLs with
> plain Special:Diff links, since the {{diff}} template does not work in every
> wiki.

Great; let me know when you've got that working.

-- 
Andy Mabbett
@pigsonthewing
http://pigsonthewing.org.uk

___
Wikimedia-l mailing list, guidelines at: 
https://meta.wikimedia.org/wiki/Mailing_lists/Guidelines
Wikimedia-l@lists.wikimedia.org
Unsubscribe: https://lists.wikimedia.org/mailman/listinfo/wikimedia-l, 


Re: [Wikimedia-l] New template "URL to diff"

2015-01-02 Thread
On 2 Jan 2015 11:18, "Andy Mabbett"  wrote:
> > does anyone know if we have a way of centralising templates
> > that are likely to be useful or recommended for all wikis?
>
> I think sharing Lua modules, rather than the actual templates, may be
better.

As far as I am aware we have no recommended central repository, such as on
the mediawiki site. How should we do it, or do all other wiki's look to the
English Wikipedia as their test bed? :-)

Fae
___
Wikimedia-l mailing list, guidelines at: 
https://meta.wikimedia.org/wiki/Mailing_lists/Guidelines
Wikimedia-l@lists.wikimedia.org
Unsubscribe: https://lists.wikimedia.org/mailman/listinfo/wikimedia-l, 


Re: [Wikimedia-l] New template "URL to diff"

2015-01-02 Thread Andy Mabbett
On 2 January 2015 at 10:18, Fæ  wrote:
> I would be cautious of changing URLs to templates for larger reports.
[...]

Fair points, but there are 12842 transclusions of "{{Diff}}" on en.WP;
this template will make life easier for the people who use it.

> I have had to remove templates from pages where they run into
> the too many templates problem

If template trasclusion numbers are too high, "{{Diff}}" can be
"Subst:", leaving an internal, not external, link behind.

> does anyone know if we have a way of centralising templates
> that are likely to be useful or recommended for all wikis?

I think sharing Lua modules, rather than the actual templates, may be better.

-- 
Andy Mabbett
@pigsonthewing
http://pigsonthewing.org.uk

___
Wikimedia-l mailing list, guidelines at: 
https://meta.wikimedia.org/wiki/Mailing_lists/Guidelines
Wikimedia-l@lists.wikimedia.org
Unsubscribe: https://lists.wikimedia.org/mailman/listinfo/wikimedia-l, 


Re: [Wikimedia-l] New template "URL to diff"

2015-01-02 Thread Ricordisamoa

Il 02/01/2015 10:30, Andy Mabbett ha scritto:

A new, Lua based template:

https://en.wikipedia.org/wiki/Template:Url_to_diff

has been made (at my request) for teh English Wikipedia.

Given a URL like:


https://en.wikipedia.org/w/index.php?title=Wikipedia%3AVillage_pump_%28technical%29&diff=640631079&oldid=640620995

and label text (say "example")

it returns a formatted "Diff" template like:

{{diff|Wikipedia:Village pump (technical)|640631079|640620995|example}}

You may wish to import it into other Wikis.

Honestly, I don't think it is easier to type {{subst:url to diff}} than 
[[Special:Diff]].

And the system of importing templates into other wikis is broken.
I'd rather suggest a global JavaScript gadget to replace those URLs with 
plain Special:Diff links, since the {{diff}} template does not work in 
every wiki.


___
Wikimedia-l mailing list, guidelines at: 
https://meta.wikimedia.org/wiki/Mailing_lists/Guidelines
Wikimedia-l@lists.wikimedia.org
Unsubscribe: https://lists.wikimedia.org/mailman/listinfo/wikimedia-l, 


Re: [Wikimedia-l] New template "URL to diff"

2015-01-02 Thread
A useful feature, thanks Andy, and the developer who knocked it out. ☺

I would be cautious of changing URLs to templates for larger reports. For
example I have created lists of diff's when matching edit histories against
a pattern. I have had to remove templates from pages where they run into
the too many templates problem. Some reports are also better with URLs if
they are likely to be shared cross wiki or emailed. Something worth
mentioning in the usage document, though for most discussions onwiki this
will never be a problem.

By the way, does anyone know if we have a way of centralising templates
that are likely to be useful or recommended for all wikis?

Fae
On 2 Jan 2015 09:31, "Andy Mabbett"  wrote:

> A new, Lua based template:
>
>https://en.wikipedia.org/wiki/Template:Url_to_diff
>
> has been made (at my request) for teh English Wikipedia.
>
> Given a URL like:
>
>
> https://en.wikipedia.org/w/index.php?title=Wikipedia%3AVillage_pump_%28technical%29&diff=640631079&oldid=640620995
>
> and label text (say "example")
>
> it returns a formatted "Diff" template like:
>
>{{diff|Wikipedia:Village pump (technical)|640631079|640620995|example}}
>
> You may wish to import it into other Wikis.
>
> --
> Andy Mabbett
> @pigsonthewing
> http://pigsonthewing.org.uk
>
> ___
> Wikimedia-l mailing list, guidelines at:
> https://meta.wikimedia.org/wiki/Mailing_lists/Guidelines
> Wikimedia-l@lists.wikimedia.org
> Unsubscribe: https://lists.wikimedia.org/mailman/listinfo/wikimedia-l,
> 
___
Wikimedia-l mailing list, guidelines at: 
https://meta.wikimedia.org/wiki/Mailing_lists/Guidelines
Wikimedia-l@lists.wikimedia.org
Unsubscribe: https://lists.wikimedia.org/mailman/listinfo/wikimedia-l, 


[Wikimedia-l] New template "URL to diff"

2015-01-02 Thread Andy Mabbett
A new, Lua based template:

   https://en.wikipedia.org/wiki/Template:Url_to_diff

has been made (at my request) for teh English Wikipedia.

Given a URL like:

   
https://en.wikipedia.org/w/index.php?title=Wikipedia%3AVillage_pump_%28technical%29&diff=640631079&oldid=640620995

and label text (say "example")

it returns a formatted "Diff" template like:

   {{diff|Wikipedia:Village pump (technical)|640631079|640620995|example}}

You may wish to import it into other Wikis.

-- 
Andy Mabbett
@pigsonthewing
http://pigsonthewing.org.uk

___
Wikimedia-l mailing list, guidelines at: 
https://meta.wikimedia.org/wiki/Mailing_lists/Guidelines
Wikimedia-l@lists.wikimedia.org
Unsubscribe: https://lists.wikimedia.org/mailman/listinfo/wikimedia-l,