Difference between revisions of "Template:Diff2/testcases"
Jump to navigation
Jump to search
Comparison of
Examples using
Examples using
(revid->oldid, anchor->section anchor & title->label) |
(reorg sections) |
||
| Line 1: | Line 1: | ||
| + | ==Sandbox comparisons== | ||
| + | {{testcase | ||
| + | |id=1. oldid | ||
| + | |<nowiki>X{{diff2 |123}}X</nowiki> | ||
| + | | X{{diff2 |123}}X | ||
| + | | X{{diff2/sandbox|123}}X | ||
| + | }} | ||
| + | |||
| + | {{testcase | ||
| + | |id=2. oldid & label | ||
| + | |<nowiki>X{{diff2 |123|Foo}}X</nowiki> | ||
| + | | X{{diff2 |123|Foo}}X | ||
| + | | X{{diff2/sandbox|123|Foo}}X | ||
| + | }} | ||
| + | |||
| + | {{testcase | ||
| + | |id=3. oldid & section anchor & label | ||
| + | |<nowiki>X{{diff2 |123|Foo|Bar}}X</nowiki> | ||
| + | | X{{diff2 |123|Foo|Bar}}X | ||
| + | | X{{diff2/sandbox|123|Foo|Bar}}X | ||
| + | }} | ||
| + | |||
| + | {{testcase | ||
| + | |id=4. oldid & section anchor & empty label | ||
| + | |<nowiki>X{{diff2 |123|Foo|}}X</nowiki> | ||
| + | | X{{diff2 |123|Foo|}}X | ||
| + | | X{{diff2/sandbox|123|Foo|}}X | ||
| + | }} | ||
| + | |||
| + | {{testcase | ||
| + | |id=5. oldid & empty section anchor & label | ||
| + | |<nowiki>X{{diff2 |123||Bar}}X</nowiki> | ||
| + | | X{{diff2 |123||Bar}}X | ||
| + | | X{{diff2/sandbox|123||Bar}}X | ||
| + | }} | ||
| + | |||
==Comparison of {{tlx|Diff2}} and {{tlx|Diff||}}== | ==Comparison of {{tlx|Diff2}} and {{tlx|Diff||}}== | ||
===Examples using {{tld|Diff2}}=== | ===Examples using {{tld|Diff2}}=== | ||
| Line 35: | Line 71: | ||
| {{Diff||123456789|External links|}} | | {{Diff||123456789|External links|}} | ||
|} | |} | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Revision as of 15:16, 6 September 2017
Contents
Sandbox comparisons
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 |