Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a21d5211b879d806

Jump to content

Template:Diff4/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

{{Diff4|diff|old: oldid|label|section=section name}}

  • diff  The ID or keyword that is used against the base ID (required). Possible keywords are:
    cur  Compare with the current version of a page.
    prev  Compare with the previous version of a page.
    next  Compare with the next version of a page.
    id  This should be larger than oldid (when oldid is specified).
  • |old=oldid
    oldid  The base ID onto which the diff is generated (optional). Parameter name |old= must be specified.
  • label  Text to display as link (optional). No label will generate a numbered link as the label.
  • |section=section name
    section name  The name of the section or anchor (optional) within the page intended to be the target of the link. Parameter name |section= must be specified.

Examples

[edit]
Code Output
{{Diff4|123456789}}
{{Diff4|123456789|An edit by User:Pgp688}} An edit by User:Pgp688
{{Diff4|123456789|Same edit as above but links to "External links" section|section=External links}} Same edit as above but links to "External links" section
{{Diff4|4611964|old=123456789|All changes at article leading up to Pgp688's edit}} All changes at article leading up to Pgp688's edit

Unlike {{Diff2}}, this template does not automatically determine the user's intended target when diff and oldid are both specified. Be sure to use correct numbers. If the IDs belong to different pages, the link will not work.

See below:

Code Output
{{diff4|123456788|old=123456789|Changes between revisions 123456788 and 123456789}} Changes between revisions 123456788 and 123456789

See also

[edit]