Difference between revisions of "Template:Interval/doc"
Jump to navigation
Jump to search
imported>Hyacinth (→See also: * {{tl|Infobox Interval}}) |
imported>Mr. Stradivarius (add {{lua}} and remove the part about the limitations) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| + | {{lua|Module:Interval}} | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | ||
| Line 5: | Line 6: | ||
This template determines which interval a given value lies in. | This template determines which interval a given value lies in. | ||
| − | The intervals are defined by | + | The intervals are defined by the unnamed parameters. The value to be determined is named parameter ''n''. |
=== Examples === | === Examples === | ||
Revision as of 13:48, 9 December 2013
| This is a documentation subpage for Template:Interval. It contains usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
Usage
This template determines which interval a given value lies in.
The intervals are defined by the unnamed parameters. The value to be determined is named parameter n.
Examples
Passing 2, 4 and 6 as the unnamed parameters defines the following intervals:
- -∞<x<2
- 2≤x<4
- 4≤x<6
- 6≤x<∞
Then:
{{Interval|n=1|2|4|6}}gives 0-1 because 1 is in the interval between the 0th and 1st values.{{Interval|n=4|2|4|6}}gives 2-3 because 4 is in the interval between the 2nd and 3rd values.{{Interval|n=5|2|4|6}}gives 2-3 because 5 is in the interval between the 2nd and 3rd values.{{Interval|n=6|2|4|6}}gives 3-4 because 6 is in the interval between the 3rd and 4th values.
See also
- Template:Intervals, a navbox about musical intervals.
- {{Infobox Interval}}