Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template talk:URL to diff

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 6 months ago by Pigsonthewing in topic Issue on Wikispecies

Support Special:ComparePages

[edit]

Special:ComparePages also produces diffs and has an equivalent to {{Diff}} in the form of {{Compare pages}}. An example of where it's found is in the links generated by {{Documentation}} to compare templates to their sandboxes: https://en.wikipedia.org/w/index.php?title=Special%3AComparePages&page1=Module%3AString&page2=Module%3AString%2Fsandbox  —wqnvlz (talk·contribs);  21:06, 4 April 2022 (UTC)Reply

Issue on Wikispecies

[edit]

On Wikispecies, {{Subst:URL to diff|url=https://species.wikimedia.org/w/index.php?title=Template%3AArambourg%2C_1979&diff=10934113&oldid=10933400|label=in this edit}} fails, producing link text of 1979&oldid=10933400 in this edit

The URL input is: https://species.wikimedia.org/w/index.php?title=Template%3AArambourg%2C_1979&diff=10934113&oldid=10933400

It thus seems to break at "_".

I've synced the template on Wikispecies with the code here, including subtemplates and modules, so that's not the issue.

Can anyone assist, please? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 13:59, 3 January 2026 (UTC)Reply

@Pigsonthewing: It produces {{diff|Template:Arambourg, 1979|10934113|10933400|in this edit}} which renders correctly as in this edit when it's copied here to Wikipedia. The problem is that species:Template:Diff swaps the diff and page/title parameters compared to our Template:Diff. I have made the corresponding swap in species:Module:ConvertDiff. Your example works now. PrimeHunter (talk) 15:23, 3 January 2026 (UTC)Reply
Many thanks. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 15:32, 3 January 2026 (UTC)Reply