Template talk:URL to diff
Add topicSupport 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)
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)
- @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)- Many thanks. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 15:32, 3 January 2026 (UTC)