Difference between revisions of "Template:Diff2/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Amalthea
(testcases are a bit misleading with automatic link numbering, but please note that 2 and 4 currently produce different results!)
imported>Salton Finneger
(Added test comparing template:diff2 with template:diff using a blank page name parameter (checking documentation claim that template:diff requires a page name.)
Line 1: Line 1:
 +
==Comparison of {{tlx|Diff2}} and {{tlx|Diff||}}==
 +
===Examples using {{tld|Diff2}}===
 +
{| class="wikitable"
 +
! Code
 +
! Output
 +
|-
 +
| {{tlx|Diff2|123456789}}
 +
| {{Diff2|123456789}}
 +
|-
 +
| {{tlx|Diff2|123456789|SomeUser's edit to "Some article name"}}
 +
| {{Diff2|123456789|SomeUser's edit to "Some article name"}}
 +
|-
 +
| {{tlx|Diff2|123456789|External links|SomeUser's edit to "Some article name"}}
 +
| {{Diff2|123456789|External links|SomeUser's edit to "Some article name"}}
 +
|-
 +
| {{tlx|Diff2|123456789|External links|<nowiki></nowiki>}}
 +
| {{Diff2|123456789|External links|}}
 +
|}
 +
 +
===Examples using {{tld|Diff}} and empty page parameter===
 +
{| class="wikitable"
 +
! Code
 +
! Output
 +
|-
 +
| {{tlx|Diff|&#124;123456789}}
 +
| {{Diff||123456789}}
 +
|-
 +
| {{tlx|Diff|&#124;123456789|SomeUser's edit to "Some article name"}}
 +
| {{Diff||123456789|SomeUser's edit to "Some article name"}}
 +
|-
 +
| {{tlx|Diff|&#124;123456789|External links|SomeUser's edit to "Some article name"}}
 +
| {{Diff||123456789|External links|SomeUser's edit to "Some article name"}}
 +
|-
 +
| {{tlx|Diff|&#124;|123456789|External links|<nowiki></nowiki>}}
 +
| {{Diff||123456789|External links|}}
 +
|}
 +
 +
==Prior content before {{tld|Diff2}} vs. {{tld|Diff}} comparison was added. ==
 
{{testcase
 
{{testcase
 
|id=1. revid
 
|id=1. revid

Revision as of 15:54, 20 December 2013

Comparison of {{Diff2}} and {{Diff||}}

Examples using {{Diff2}}

Code Output
{{Diff2|123456789}} [1]
{{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|}} [2]

Examples using {{Diff}} and empty page parameter

Code Output
{{Diff||123456789}} [3]
{{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

Prior content before {{Diff2}} vs. {{Diff}} comparison was added.

Template:Testcase

Template:Testcase

Template:Testcase

Template:Testcase

Template:Testcase