Difference between revisions of "Template:Interval/testcases"
imported>MSGJ (→Example with timestamp: n not needed) |
imported>Theopolisme (+sandbox) |
||
| Line 33: | Line 33: | ||
===Example with timestamp=== | ===Example with timestamp=== | ||
{{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}} | {{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}} | ||
| + | |||
| + | == Sandbox testcases == | ||
| + | {{template testcases}} | ||
| + | |||
| + | === rule = ≥ (default) === | ||
| + | {{tlx|Interval|2=n=1|3=2|4=4|5=6}}: {{Interval/sandbox|n=1|2|4|6}} | ||
| + | |||
| + | {{tlx|Interval|2=n=2|3=2|4=4|5=6}}: {{Interval/sandbox|n=2|2|4|6}} | ||
| + | |||
| + | {{tlx|Interval|2=n=3|3=2|4=4|5=6}}: {{Interval/sandbox|n=3|2|4|6}} | ||
| + | |||
| + | {{tlx|Interval|2=n=4|3=2|4=4|5=6}}: {{Interval/sandbox|n=4|2|4|6}} | ||
| + | |||
| + | {{tlx|Interval|2=n=5|3=2|4=4|5=6}}: {{interval/sandbox|n=5|2|4|6}} | ||
| + | |||
| + | {{tlx|Interval|2=n=6|3=2|4=4|5=6}}: {{Interval/sandbox|n=6|2|4|6}} | ||
| + | |||
| + | {{tlx|Interval|2=n=7|3=2|4=4|5=6}}: {{Interval/sandbox|n=7|2|4|6}} | ||
| + | |||
| + | === rule = > === | ||
| + | {{tlx|Interval|2=n=1|3=2|4=4|5=6|6=rule=>}}: {{Interval/sandbox|n=1|2|4|6|rule=>}} | ||
| + | |||
| + | {{tlx|Interval|2=n=2|3=2|4=4|5=6|6=rule=>}}: {{Interval/sandbox|n=2|2|4|6|rule=>}} | ||
| + | |||
| + | {{tlx|Interval|2=n=3|3=2|4=4|5=6|6=rule=>}}: {{Interval/sandbox|n=3|2|4|6|rule=>}} | ||
| + | |||
| + | {{tlx|Interval|2=n=4|3=2|4=4|5=6|6=rule=>}}: {{Interval/sandbox|n=4|2|4|6|rule=>}} | ||
| + | |||
| + | {{tlx|Interval|2=n=5|3=2|4=4|5=6|6=rule=>}}: {{Interval/sandbox|n=5|2|4|6|rule=>}} | ||
| + | |||
| + | {{tlx|Interval|2=n=6|3=2|4=4|5=6|6=rule=>}}: {{Interval/sandbox|n=6|2|4|6|rule=>}} | ||
| + | |||
| + | {{tlx|Interval|2=n=7|3=2|4=4|5=6|6=rule=>}}: {{Interval/sandbox|n=7|2|4|6|rule=>}} | ||
| + | |||
| + | ===Example with timestamp=== | ||
| + | {{tlx|interval|3=14 October|4=24 October|5=29 October|6=7 December|7=format=time}}: {{Interval/sandbox|14 October|24 October|29 October|7 December|format=time}} | ||
Revision as of 23:59, 7 December 2013
Contents
rule = ≥ (default)
{{Interval|n=1|2|4|6}}: 0-1
{{Interval|n=2|2|4|6}}: 1-2
{{Interval|n=3|2|4|6}}: 1-2
{{Interval|n=4|2|4|6}}: 2-3
{{Interval|n=5|2|4|6}}: 2-3
{{Interval|n=6|2|4|6}}: 3-4
{{Interval|n=7|2|4|6}}: 3-4
rule = >
{{Interval|n=1|2|4|6|rule=>}}: 0-1
{{Interval|n=2|2|4|6|rule=>}}: 0-1
{{Interval|n=3|2|4|6|rule=>}}: 1-2
{{Interval|n=4|2|4|6|rule=>}}: 1-2
{{Interval|n=5|2|4|6|rule=>}}: 2-3
{{Interval|n=6|2|4|6|rule=>}}: 2-3
{{Interval|n=7|2|4|6|rule=>}}: 3-4
Example with timestamp
{{interval|14 October|24 October|29 October|7 December|format=time}}: 4-5
Sandbox testcases
rule = ≥ (default)
{{Interval|n=1|2|4|6}}: 0-1
{{Interval|n=2|2|4|6}}: 1-2
{{Interval|n=3|2|4|6}}: 1-2
{{Interval|n=4|2|4|6}}: 2-3
{{Interval|n=5|2|4|6}}: 2-3
{{Interval|n=6|2|4|6}}: 3-4
{{Interval|n=7|2|4|6}}: 3-4
rule = >
{{Interval|n=1|2|4|6|rule=>}}: 0-1
{{Interval|n=2|2|4|6|rule=>}}: 0-1
{{Interval|n=3|2|4|6|rule=>}}: 1-2
{{Interval|n=4|2|4|6|rule=>}}: 1-2
{{Interval|n=5|2|4|6|rule=>}}: 2-3
{{Interval|n=6|2|4|6|rule=>}}: 2-3
{{Interval|n=7|2|4|6|rule=>}}: 3-4
Example with timestamp
{{interval|14 October|24 October|29 October|7 December|format=time}}: 4-5