Difference between revisions of "Template:Interval/testcases"
Jump to navigation
Jump to search
imported>Theopolisme (well then) |
imported>Jdaloner m (Updated transclusion of "testcases notice" box at top of page.) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | {{ | + | {{testcases notice}} |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
=== rule = ≥ (default) === | === rule = ≥ (default) === | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | {{tlx|Interval|2=n=7|3=2|4=4|5=6}} | + | {| class="wikitable" |
| + | |- | ||
| + | ! Code | ||
| + | ! Main | ||
| + | ! Sandbox | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=1|3=2|4=4|5=6}} | ||
| + | | {{Interval|n=1|2|4|6}} | ||
| + | | {{Interval/sandbox|n=1|2|4|6}} | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=2|3=2|4=4|5=6}} | ||
| + | | {{Interval|n=2|2|4|6}} | ||
| + | | {{Interval/sandbox|n=2|2|4|6}} | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=3|3=2|4=4|5=6}} | ||
| + | | {{Interval|n=3|2|4|6}} | ||
| + | | {{Interval/sandbox|n=3|2|4|6}} | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=4|3=2|4=4|5=6}} | ||
| + | | {{Interval|n=4|2|4|6}} | ||
| + | | {{Interval/sandbox|n=4|2|4|6}} | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=5|3=2|4=4|5=6}} | ||
| + | | {{Interval|n=5|2|4|6}} | ||
| + | | {{Interval/sandbox|n=5|2|4|6}} | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=6|3=2|4=4|5=6}} | ||
| + | | {{Interval|n=6|2|4|6}} | ||
| + | | {{Interval/sandbox|n=6|2|4|6}} | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=7|3=2|4=4|5=6}} | ||
| + | | {{Interval|n=7|2|4|6}} | ||
| + | | {{Interval/sandbox|n=7|2|4|6}} | ||
| + | |} | ||
=== rule = > === | === rule = > === | ||
| − | |||
| − | |||
| − | |||
| − | {{tlx|Interval|2=n=3|3=2|4=4|5=6|6=rule=>}} | + | {| class="wikitable" |
| + | |- | ||
| + | ! Code | ||
| + | ! Main | ||
| + | ! Sandbox | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=1|3=2|4=4|5=6|6=rule=>}} | ||
| + | | {{Interval|n=1|2|4|6|rule=>}} | ||
| + | | {{Interval/sandbox|n=1|2|4|6|rule=>}} | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=2|3=2|4=4|5=6|6=rule=>}} | ||
| + | | {{Interval|n=2|2|4|6|rule=>}} | ||
| + | | {{Interval/sandbox|n=2|2|4|6|rule=>}} | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=3|3=2|4=4|5=6|6=rule=>}} | ||
| + | | {{Interval|n=3|2|4|6|rule=>}} | ||
| + | | {{Interval/sandbox|n=3|2|4|6|rule=>}} | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=4|3=2|4=4|5=6|6=rule=>}} | ||
| + | | {{Interval|n=4|2|4|6|rule=>}} | ||
| + | | {{Interval/sandbox|n=4|2|4|6|rule=>}} | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=5|3=2|4=4|5=6|6=rule=>}} | ||
| + | | {{Interval|n=5|2|4|6|rule=>}} | ||
| + | | {{Interval/sandbox|n=5|2|4|6|rule=>}} | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=6|3=2|4=4|5=6|6=rule=>}} | ||
| + | | {{Interval|n=6|2|4|6|rule=>}} | ||
| + | | {{Interval/sandbox|n=6|2|4|6|rule=>}} | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=7|3=2|4=4|5=6|6=rule=>}} | ||
| + | | {{Interval|n=7|2|4|6|rule=>}} | ||
| + | | {{Interval/sandbox|n=7|2|4|6|rule=>}} | ||
| + | |} | ||
| − | + | === Many numbers === | |
| − | { | + | {| class="wikitable" |
| − | + | |- | |
| − | + | ! Code | |
| − | + | ! Main | |
| − | {{tlx|Interval|2=n= | + | ! Sandbox |
| − | + | |- | |
| − | + | | {{tlx|Interval|2=n=14|3=2|4=4|5=6|6=8|7=9|8=10}} | |
| − | {{ | + | | {{Interval|n=14|2|4|6|8|9|10}} |
| + | | {{Interval/sandbox|n=14|2|4|6|8|9|10}} | ||
| + | |} | ||
===Example with timestamp=== | ===Example with timestamp=== | ||
| − | |||
| − | {{tlx|interval | + | {| class="wikitable" |
| + | |- | ||
| + | ! Code | ||
| + | ! Main | ||
| + | ! Sandbox | ||
| + | |- | ||
| + | | {{tlx|interval|3=14 October|4=24 October|5=29 October|6=7 December|7=format=time}} | ||
| + | | {{interval|14 October|24 October|29 October|7 December|format=time}} | ||
| + | | {{interval/sandbox|14 October|24 October|29 October|7 December|format=time}} | ||
| + | |} | ||
=== Invalid === | === Invalid === | ||
| − | |||
| − | |||
| − | {{ | + | {| class="wikitable" |
| + | |- | ||
| + | ! Code | ||
| + | ! Main | ||
| + | ! Sandbox | ||
| + | |- | ||
| + | | {{tlx|Interval|2=1|3=2|4=4|5=6}} | ||
| + | | {{Interval|1|2|4|6}} | ||
| + | | {{Interval/sandbox|1|2|4|6}} | ||
| + | |} | ||
Latest revision as of 00:20, 12 February 2015
| This is the template test cases page for the sandbox of Template:Interval. 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: |
rule = ≥ (default)
| Code | Main | Sandbox |
|---|---|---|
{{Interval|n=1|2|4|6}}
|
0-1 | 0-1 |
{{Interval|n=2|2|4|6}}
|
1-2 | 1-2 |
{{Interval|n=3|2|4|6}}
|
1-2 | 1-2 |
{{Interval|n=4|2|4|6}}
|
2-3 | 2-3 |
{{Interval|n=5|2|4|6}}
|
2-3 | 2-3 |
{{Interval|n=6|2|4|6}}
|
3-4 | 3-4 |
{{Interval|n=7|2|4|6}}
|
3-4 | 3-4 |
rule = >
| Code | Main | Sandbox |
|---|---|---|
{{Interval|n=1|2|4|6|rule=>}}
|
0-1 | 0-1 |
{{Interval|n=2|2|4|6|rule=>}}
|
0-1 | 0-1 |
{{Interval|n=3|2|4|6|rule=>}}
|
1-2 | 1-2 |
{{Interval|n=4|2|4|6|rule=>}}
|
1-2 | 1-2 |
{{Interval|n=5|2|4|6|rule=>}}
|
2-3 | 2-3 |
{{Interval|n=6|2|4|6|rule=>}}
|
2-3 | 2-3 |
{{Interval|n=7|2|4|6|rule=>}}
|
3-4 | 3-4 |
Many numbers
| Code | Main | Sandbox |
|---|---|---|
{{Interval|n=14|2|4|6|8|9|10}}
|
6-7 | 6-7 |
Example with timestamp
| Code | Main | Sandbox |
|---|---|---|
{{interval|14 October|24 October|29 October|7 December|format=time}}
|
4-5 | 4-5 |
Invalid
| Code | Main | Sandbox |
|---|---|---|
{{Interval|1|2|4|6}}
|
0-1 | 0-1 |