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.