Template:Interval/testcases
Appearance
![]() | This is the template test cases page for the sandbox of Template:Interval. 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 and parsers 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}}
|
4-5 | 4-5 |
Invalid
Code | Main | Sandbox |
---|---|---|
{{Interval|1|2|4|6}}
|
0-1 | 0-1 |