Template talk:Diff2

(Redirected from Template talk:Diff2/sandbox)
Latest comment: 7 years ago by Mathieu ottawa in topic Specifying a section but no label

Start your own template

edit

You know you could, like, start your own template. That's what I had to do because the owner of the other one didn't see the point in making something simple enough that only the revision number was needed, not the page title, not the adjacent revision, etc. Apropos of nothing, you could try fixing popups first.  CharlotteWebb 19:38, 13 April 2009 (UTC)Reply

It's still as easy to use as it was, it just has one additional feature. I do see the point of only needing the revision parameter for simple diffs, and I have no plans to change that. :)
And concerning popups, feel very free to help me out there. It's harder (read: even more confusing, and with even more potential security holes) than I hoped, and I only have so much time.
Amalthea 10:37, 14 April 2009 (UTC)Reply

Simplify?

edit

There are two things I'd like to simplify on this template but I need someone to tell me why the current form was chosen:

  1. {{SERVER}}{{SCRIPTPATH}}/index.php?{{SERVER}}?
  2. diff=prev&oldid={{{1}}}diff={{{1}}} (But that depends on what this edit summary was referring to)

Waldir talk 02:43, 30 April 2011 (UTC)Reply

Don't know about your second point, but the first change would break popups and links on the secure server. Amalthea 09:53, 30 April 2011 (UTC)Reply
But how about at least getting rid of the empty title= parameter (and the ampersand)? --Florian Blaschke (talk) 05:01, 24 December 2012 (UTC)Reply

Comparison with Diff

edit

The documentation claims: "Unlike {{Diff}}, this template does not require the page name." This isn't correct. The page name is optional in {{Diff}}. You can omit it just with an empty parameter. In the documentation examples, substituting Diff|| for Diff2| gives the same results with the same number of typed characters, except in the last 2 examples using named headers, which aren't supported by {{diff}} (see the test cases). —Salton Finneger (talk) 15:55, 20 December 2013 (UTC)Reply

Yes! I actually updated the sandbox to totally implement {{diff2}} in terms of {{diff}}. You can see comparisons in the latter parts of the test cases. If someone wants to copy the sandbox to the main template that would be great. 50.53.15.59 (talk) 14:09, 23 January 2014 (UTC)Reply

Specifying a section but no label

edit

Any thoughts on Template talk:Diff2/doc § Specifying a section but no label?

Thanks.

--Mathieu ottawa (talk) 21:30, 28 November 2016 (UTC)Reply