Difference between revisions of "Template:Diff2/testcases"
Jump to navigation
Jump to search
Comparison of
Examples using
Examples using
Prior content before
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. | + | |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. | + | |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. | + | |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. | + | |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. | + | |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
Contents
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 |