Edge Rewrite
// 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: a220ab55e80d452a

Jump to content

Template talk:Diff2/doc

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 13 years ago by Mathieu ottawa in topic Usage

Specifying a section but no label

[edit]

Another way of conveying the same info:

Usage

[edit]
{{Diff2|oldid}}
{{Diff2|oldid |label}}
{{Diff2|oldid |section | }}
{{Diff2|oldid |section |label}}
  • oldid – The base ID onto which the diff is generated.
  • section – (optional) The section (anchor) within the page.
  • label – (optional) Text to display as link. No label will give a numbered link.

If 3 parameters are specified (i.e. parameter {{{3}}} exists), parameter {{{2}}} is the section, and parameter {{{3}}} is the label. Otherwise, parameter {{{2}}}, if present, is the label (and the link is to the whole page).

Note the <nowiki> required to get the one with section and no label to display properly; I added <nowiki> to the other variants only so the /doc page's wikitext would be easier to read. I leave it to you which one's easier to read and understand.--Mathieu ottawa (talk) 01:31, 28 April 2013 (UTC)Reply