Difference between revisions of "Template:Diff2/testcases"

From blackwiki
Jump to navigation Jump to search
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.)
(revid->oldid, anchor->section anchor & title->label)
Line 38: Line 38:
 
==Prior content before {{tld|Diff2}} vs. {{tld|Diff}} comparison was added. ==
 
==Prior content before {{tld|Diff2}} vs. {{tld|Diff}} comparison was added. ==
 
{{testcase
 
{{testcase
|id=1. revid
+
|id=1. oldid
 
|<nowiki>X{{diff2        |123}}X</nowiki>
 
|<nowiki>X{{diff2        |123}}X</nowiki>
 
|        X{{diff2        |123}}X
 
|        X{{diff2        |123}}X
Line 45: Line 45:
  
 
{{testcase
 
{{testcase
|id=2. revid & title
+
|id=2. oldid & label
 
|<nowiki>X{{diff2        |123|Foo}}X</nowiki>
 
|<nowiki>X{{diff2        |123|Foo}}X</nowiki>
 
|        X{{diff2        |123|Foo}}X
 
|        X{{diff2        |123|Foo}}X
Line 52: Line 52:
  
 
{{testcase
 
{{testcase
|id=3. revid & anchor & title
+
|id=3. oldid & section anchor & label
 
|<nowiki>X{{diff2        |123|Foo|Bar}}X</nowiki>
 
|<nowiki>X{{diff2        |123|Foo|Bar}}X</nowiki>
 
|        X{{diff2        |123|Foo|Bar}}X
 
|        X{{diff2        |123|Foo|Bar}}X
Line 59: Line 59:
  
 
{{testcase
 
{{testcase
|id=4. revid & anchor & empty title
+
|id=4. oldid & section anchor & empty label
 
|<nowiki>X{{diff2        |123|Foo|}}X</nowiki>
 
|<nowiki>X{{diff2        |123|Foo|}}X</nowiki>
 
|        X{{diff2        |123|Foo|}}X
 
|        X{{diff2        |123|Foo|}}X
Line 66: Line 66:
  
 
{{testcase
 
{{testcase
|id=5. revid & empty anchor & title
+
|id=5. oldid & empty section anchor & label
 
|<nowiki>X{{diff2        |123||Bar}}X</nowiki>
 
|<nowiki>X{{diff2        |123||Bar}}X</nowiki>
 
|        X{{diff2        |123||Bar}}X
 
|        X{{diff2        |123||Bar}}X
 
|        X{{diff2/sandbox|123||Bar}}X
 
|        X{{diff2/sandbox|123||Bar}}X
 
}}
 
}}

Revision as of 15:14, 6 September 2017

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