Template:Diff
Appearance
Usage
[edit]Syntax: {{diff|diff|page|oldid|label}}
Instructions
[edit]- Open the history tab for the page in question.
- Click the "(prev)" link for the preferred diff.
- Add
{{diff|diff|page|oldid|label}}
where diff number is the number after "&diff=" in your address bar.
Example
[edit]{{diff|2986565||1884091|test diff}}
=> test diff
Named parameters
[edit]Besides the traditionally used positional parameters, the template also supports named parameters:
page
: the name of the page from where the diff iscur
: same as diff (may also be the number after "&cur=" in the URL)diff
: the number after "&diff=" as described aboveoldid
: the number after "&oldid="label
: the text to display for the diff linkserver
: default if not provided is//meta.wikimedia.org
as taken from the {{SERVER}} magic word (for easier interwiki diffs see{{xdiff}}
)scriptpath
: default if not provided is/w
as taken from the {{SCRIPTPATH}} magic word (for easier interwiki diffs see{{xdiff}}
)
See also
[edit]{{xdiff}}
{{Foundation Diff}}