GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing en.wikipedia.org — Help:Diff - Wikipedia
A diff (from the word "difference") is a presentation of the difference between one version and another of a Wikipedia page. A particular version of a page is called a "revision". Each revision has a date and time of creation, and an author, which can be seen in the page history. Clicking a "diff" link in a page's history, or selecting two revisions with the radio controls and clicking on the "compare selected revisions" button, will display the diff between the two revisions. (Clicking on the timestamp link in the page history will alternatively display the page as it was at that point in time). Links to diffs are found on various special pages other than page histories, including the User contributions page of every user, Recent changes, Related changes, and watchlists. Using the history of a page, it is possible to generate a diff between any two versions – select the left radio button for the older version, the right radio button for the newer version, and click Compare selected revisions. While editing a page, the Show changes button displays the changes you are about to make. The diff is also shown during an edit conflict. Edit summary (Briefly describe your changes)
By publishing changes, you agree to the Terms of Use, and you irrevocably agree to release your contribution under the CC BY-SA 4.0 License and the GFDL. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license. How it looksThis example shows what a diff page looks like (excluding any page preview that may normally appear at the bottom; some of the links are dummies). The older revision is presented on the left, while the newer revision is presented on the right.
Explanation of coloursUnchanged paragraphs appear with a subtle grey background and a grey border. (Note that not all paragraphs are shown; only some of those surrounding the changes). Modified, moved, deleted, and inserted paragraphs all have a transparent background, a coloured border, and a symbol to the left of them. Such paragraphs on the left (from the older version) are given a yellow border colour, and carry a minus symbol (−), with the exception of moved paragraphs which carry a right-facing arrow symbol (↪). Similarly, such paragraphs on the right (from the newer version) are given a blue border colour and carry a plus symbol (+), unless it's a moved paragraph, in which case it carries a left-facing arrow symbol (↩). Note that these arrow symbols can be clicked on to jump between the moved-to and moved-from locations. When a paragraph is recognised as having been modified or moved, any text deleted from the original paragraph is highlighted in bold-yellow on the left, and any text inserted is highlighted in bold-blue on the right. Where an old paragraph is deleted entirely, or an entirely new paragraph is inserted, no such bold-colour highlighting is done to its entire text. New, deleted, and moved paragraphs will be seen to have an empty entry opposite them. Beware that diff algorithms are not perfect. Presenting perfect diffs for every possible combination of changes is difficult, with compromises often having to be made. Consequently sometimes changes may fail to be recognised as a modification or move of an existing paragraph, and thus appearing instead as a pair of deleted and inserted paragraphs.
Controls and linksThe links "Revision as of date" link to each version. If the newer version is the latest one, the link will be to the usual page and the wording will be "Current revision (date)" instead. The "(edit)" link will take you to the page for editing that version. You may be warned that you are editing an out-of-date revision; if you ignore this and continue, you will revert all the edits made since that revision. The "(undo)" link on the newer revision's side will revert that specific edit. When you click the link, you can check the diff page of the edit you are going to make, and the edit summary will be automatically filled in with the phrase of MediaWiki:undo-summary (Undid revision $1 by $2 (talk)). This summary can be edited before you submit your edit. When you are undoing several edits at once, the auto-summary may not work. Though the link exists on all diff pages, it does not function when the revisions conflict. Often, versions older than the current one cannot be undone in this way. If it does not work, you will be told that the edit could not be undone and end up on the regular editing page of the current version. The "(thank)" link is only displayed when both the viewer and editor are registered users. It can be used to thank the editor. Below that are links to the user page and talk page of each user who edited the older or the newer versions. Links to the users' contribution lists are also shown. For administrators and rollbackers, a "[rollback]" button also appears where applicable, allowing them to revert all the edits made by that user. Then the edit summaries are shown in parentheses. If the user has used links in their edit summary, these act as links on the diff page as well. If the editor marked the edit as a minor edit, m appears before the summary. The "Previous edit" and "Next edit" links lead to earlier or later diffs. When you are viewing the diff between two non-consecutive versions of a page, you will also see the message "(x intermediate revisions not shown.)". After the table of differences, the latest of the two compared versions is shown fully, unless you have specified in your preferences that this is not to be done. Direction of comparisonTypically the revision shown on the left of a diff page will be the older of the two revisions. Technically however, strictly speaking this may not necessarily always be the case. For prev, next, and cur forms of diffs, or diffs resulting from the radio controls in a page's history, the older of the two revisions is indeed always going to be on the left. However, things can get less certain when it comes to user generated diff links, since it's easy to make mistakes, and the behaviour of the diff page may be surprising. As discussed later in the linking section, fundamentally, the diff page shows a difference with respect to a base revision specified via an Linking to a diffFor Linking to an old version of a page, see Help:Permlink.
If you find yourself needing to provide a link to a diff, under certain circumstances it may suffice to simply copy and paste the URL of the diff page (which of course can be done by either copying the URL from the address bar in your web browser, or right clicking on a diff link and selecting 'copy link'). However, when providing a diff link within wikipedia pages (for example in a talk page), it is preferable to use one of the alternatives discussed later, which are both neater, and make links work on our mobile site. Understanding diff linksUse of diff links does not necessitate understanding of them, but understanding them may aid you in producing correct links that show what you intended for them to show, especially with the preferred link construction methods to be used within wikipedia, and it's more simple than you might realise. There are three key parameters relevant to diffs:
The values A diff is not limited to comparing just a pair of revisions that are directly adjacent in history; it can compare any singular revision with any other. When Note that diff comparisons are not even limited to revisions from the same page. A revision ID from a different page can be specified in If either Full links (URLs)For linking to a diff from outside of wikipedia, or where otherwise permissible within wikipedia, full links (URLs) take the example forms below. When exploring page history these can be copied directly from the address bar in a web browser, or from right clicking on a diff link and selecting 'copy link'. Note that, as mentioned above, within wikipedia it's preferable to avoid full URLs whenever possible, using the alternative internal linking methods discussed below instead. Beware that if/when using a full URL within wikipedia, if you just paste the raw link, the full URL will be used as the display text for the link (e.g. https://en.wikipedia.org/w/index.php?title=apple). These can be long and unwieldy. If you put a pair of square brackets around it, like The following examples use
Special linksDiff links can be created within wikipedia using the special
As demonstrated in the examples, when a URL has The {{Diff}} templateThe {{diff}} template provides an alternative to the special diff links just described. These may appear cleaner, and may be easier to memorise, however beware that they do not work within edit summaries (templates are not expanded within edit summaries, instead just appearing as written). The general syntax is:
The The {{URL to diff}} templateThe {{URL to diff}} template provides a means of creating an instance of a {{diff}} template directly from a full diff URL, without having to manually construct one by extracting parameter values. The syntax is:
Where Note that as demonstrated, use of this template needs to be substituted. As an example, Searching revisionsIf you're trying to find the point in a page's history where a particular change was made, and searching the edit summaries does not help, try taking the diff between points roughly 1/3 and 2/3 of the way through the history. From this diff, you can work out in which of the three parts of the history the change occurred. Repeat this process, narrowing the "search space" by a factor of three each time, until the precise edit where the change was made is identified. You can alternatively use the external WikiBlame tool, which automates this searching process. Deleted revisionsMain page: Wikipedia:Revision deletion
A deleted revision is a version of an article that for some reason has been made "invisible" to the general public. This is occasionally done for reasons like significant copyright violations, disruption, or personal attacks on other Wikipedia contributors. An administrator can see deleted revisions and related diffs, but those diffs can only be shared with other administrators. In order to allow all users to view the diff, the revisions in question need to be visible to them. It is possible for an administrator to restore a deleted revision if warranted. Weave diffsWhen moving or copying a piece of text within a page or from another page, and also making other edits in the same revision, the diff can still compare moved paragraphs, even if they were moved over 20 paragraphs away. Before August 2018, a diff could be kept clearer (simpler) by first using a separate edit to insert blank lines plus move the text paragraphs, then after saving, in further revisions, add or change text within the moved paragraphs. Only if paragraphs are both split and reworded in the same revision can the specific new words be individually highlighted as different from the prior revision. A split paragraph will typically highlight the 2nd part(s) as if new text on the page. The weave-diff can compare paragraphs word-for-word if moved, but not if split. A diff shows differences per line, so it synchronizes between revisions by matching the newlines and unchanged lines. Some editors find that having additional line breaks to break up the text improves the diff function. Otherwise, those large, massive globs of text can be difficult to compare after a split. Keep sentences limited in length, such as with four prepositions, and seek shorter paragraphs. Long wp:reftag footnotes ( See alsoThis page is referenced in the Wikipedia Glossary.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||