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.

Jump to content

Template:Diff2/testcases

From Wikipedia, the free encyclopedia

Sandbox comparisons

[edit]

1. oldid

[edit]
{{Diff2|123}}

{{Diff2}}

{{Diff2/sandbox}}

2. oldid & label

[edit]
{{Diff2|123|Foo}}

{{Diff2}}

Foo

{{Diff2/sandbox}}

Foo

3. oldid & section anchor & label

[edit]
{{Diff2|123|Foo|Bar}}

{{Diff2}}

Bar

{{Diff2/sandbox}}

Bar

4. oldid & section anchor & empty label

[edit]
{{Diff2|123|Foo|}}

{{Diff2}}

{{Diff2/sandbox}}

5. oldid & empty section anchor & label

[edit]
{{Diff2|123||Bar}}

{{Diff2}}

Bar

{{Diff2/sandbox}}

Bar


Comparison of {{Diff2}}, {{Diff||}} and Special:Diff/prev/

[edit]

Examples using {{Diff2}}

[edit]
Code Output
{{Diff2|123456789}}
{{Diff2|123456789|SomeUser's edit to "Some article name"}} SomeUser's edit to "Some article name"
{{Diff2|123456789|External links|SomeUser's edit to "Some article name"}} SomeUser's edit to "Some article name"
{{Diff2|123456789|External links|}}

Examples using {{Diff}} and empty page parameter

[edit]
Code Output
{{Diff||123456789}}
{{Diff||123456789|SomeUser's edit to "Some article name"}} edit to "Some article name"
{{Diff||123456789|External links|SomeUser's edit to "Some article name"}} links SomeUser's edit to "Some article name"
{{Diff|||123456789|External links|}} links

Examples using Special:Diff//prev

[edit]
Code Output
[[Special:Diff/123456789/prev]] Special:Diff/123456789/prev
[[Special:Diff/123456789/prev|SomeUser's edit to "Some article name"]] SomeUser's edit to "Some article name"
[[Special:Diff/123456789/prev#External links|SomeUser's edit to "Some article name"]] SomeUser's edit to "Some article name"
[[Special:Diff/123456789/prev#External links]] Special:Diff/123456789/prev#External links