Difference between revisions of "Template:Diff2/testcases"
Jump to navigation
Jump to search
Comparison of
Examples using
Examples using
(reorg sections) |
imported>Bsherr m (as found, replacing Template:Tld with Template:Tlc or adding/updating category placement comments, plus general and typo fixes) |
||
| (3 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
| + | {{template test cases notice}} | ||
| + | |||
==Sandbox comparisons== | ==Sandbox comparisons== | ||
{{testcase | {{testcase | ||
| Line 35: | Line 37: | ||
}} | }} | ||
| − | ==Comparison of {{tlx|Diff2}} | + | ==Comparison of {{tlx|Diff2}}, {{tlx|Diff||}} and [[Special:Diff/prev/]]== |
| − | ===Examples using {{ | + | ===Examples using {{tlc|Diff2}}=== |
{| class="wikitable" | {| class="wikitable" | ||
! Code | ! Code | ||
| Line 54: | Line 56: | ||
|} | |} | ||
| − | ===Examples using {{ | + | ===Examples using {{tlc|Diff}} and empty page parameter=== |
{| class="wikitable" | {| class="wikitable" | ||
! Code | ! Code | ||
| Line 70: | Line 72: | ||
| {{tlx|Diff|||123456789|External links|<nowiki></nowiki>}} | | {{tlx|Diff|||123456789|External links|<nowiki></nowiki>}} | ||
| {{Diff||123456789|External links|}} | | {{Diff||123456789|External links|}} | ||
| + | |} | ||
| + | |||
| + | ===Examples using [[Special:Diff//prev]]=== | ||
| + | {| class="wikitable" | ||
| + | ! Code | ||
| + | ! Output | ||
| + | |- | ||
| + | | <code><nowiki>[[Special:Diff/123456789/prev]]</nowiki></code> | ||
| + | | [[Special:Diff/123456789/prev]] | ||
| + | |- | ||
| + | | <code><nowiki>[[Special:Diff/123456789/prev|SomeUser's edit to "Some article name"]]</nowiki></code> | ||
| + | | [[Special:Diff/123456789/prev|SomeUser's edit to "Some article name"]] | ||
| + | |- | ||
| + | | <code><nowiki>[[Special:Diff/123456789/prev#External links|SomeUser's edit to "Some article name"]]</nowiki></code> | ||
| + | | [[Special:Diff/123456789/prev#External links|SomeUser's edit to "Some article name"]] | ||
| + | |- | ||
| + | | <code><nowiki>[[Special:Diff/123456789/prev#External links]]</nowiki></code> | ||
| + | | [[Special:Diff/123456789/prev#External links]] | ||
|} | |} | ||
Latest revision as of 23:13, 9 August 2020
| This is the template test cases page for the sandbox of Template:Diff2. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Contents
Sandbox comparisons
Comparison of {{Diff2}}, {{Diff||}} and Special:Diff/prev/
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 |
Examples using Special:Diff//prev
| 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 |