Difference between revisions of "Template:Closed-closed/doc"

From blackwiki
Jump to navigation Jump to search
imported>Mogism
m (Cleanup/Typo fixing, typos fixed: greek → Greek using AWB)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
Line 25: Line 25:
 
* {{tl|bracket}} encloses plain text without math formatting.
 
* {{tl|bracket}} encloses plain text without math formatting.
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- Categories and interwikis go here: -->
 
<!-- Categories and interwikis go here: -->
 
[[Category:Mathematical formatting templates|{{PAGENAME}}]]
 
[[Category:Mathematical formatting templates|{{PAGENAME}}]]
</includeonly>
+
}}</includeonly>

Latest revision as of 15:21, 24 April 2020

The closed-closed template wraps its argument in a left square bracket, right square bracket. These are used to delimit a closed-closed interval in mathematics, that is one which includes both the start and end points.

The template uses {{math}} to ensure there is no line break in the expression and format Greek characters better. It should only be used on its own in text and not within a {{math}} template.

Open-closed and closed-open intervals are liable to be misunderstood and 'fixed' to use round brackets on either side. Use of these templates should warn editors that what is there is what is meant and point to the meaning.

Usage

Use this to wrap a closed-closed interval. For example:

If the argument may be infinite the range is {{closed-closed|−π, π}}.

produces:

If the argument may be infinite the range is [−π, π].

See also

  • {{closed-open}} is a template to delimit a closed-open interval.
  • {{open-closed}} is a template to delimit an open-closed interval.
  • {{open-open}} is a template to delimit an open-open interval.
  • {{bracket}} encloses plain text without math formatting.