Template talk:Diff2/doc

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

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]