Jump to content

Template:URL to diff/doc

From Wikispecies
Note: this discussion before re-importing from another wiki!

This template converts a diff URL to use the {{Diff}} template. Diff URLs must be from the host "species.wikimedia.org", and they must contain one of the query strings |title=, |diff= or |oldid=. In other words, they must be of the format en.wikipedia.org/w/index.php?query. URLs of the format en.wikipedia.org/wiki/Page name will not work.

Usage

[edit]
{{subst:URL to diff|url=url|label=label}}

Parameters

[edit]
  • url - the diff URL (required).
  • label - a label for the diff link (optional). If this is not specified, the {{Diff}} template will produce a numbered link.

Examples

[edit]
Code Result
{{subst:URL to diff|url=https://en.wikipedia.org/w/index.php?title=Main_Page&diff=472180272&oldid=471996095}}
{{subst:URL to diff|url=https://en.wikipedia.org/w/index.php?title=Main_Page&diff=472180272&oldid=471996095|label=a diff with a label}}
{{subst:URL to diff|url=https://en.wikipedia.org/w/index.php?title=Main_Page&diff=472180272&oldid=471996095|label=a diff with a label containing an equals sign (=)}}
{{subst:URL to diff|url=https://en.wikipedia.org/w/index.php?title=Main_Page&diff=prev&oldid=1225315602|label=a diff versus previous}}

See also

[edit]
  • {{Urltowiki}}, for formatting URLs as wikilinks