Difference between revisions of "Template:Delimiter-es/doc"

From blackwiki
Jump to navigation Jump to search
imported>Maschen
imported>Vanisaac
m (→‎External sites: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This template is used in {{tl|ldelim}} and {{tl|rdelim}} containing the switch function for changing glyphs in the delimiter stack.  
+
{{documentation subpage}}
 +
;This template contains the [[Help:Magic words#Conditional expressions|switch function]] for use in {{tl|ldelim}} and {{tl|rdelim}}, to change the height of the delimiters and store the glyphs that make up the delimiters.  
  
<center>'''''Please do not delete it, and be careful when editing it'''''.</center>
+
;''Please do not delete it, and be very careful when editing it. Thank you.''
  
The title is short for "delimiter extension switch". Please do not move it.
+
The title is short for "delimiter extension switch". Ideally please do not [[Wikipedia:Moving a page|move]] it.
  
 
==Syntax==
 
==Syntax==
Line 9: Line 10:
 
The template has the code:
 
The template has the code:
  
<code><nowiki>{{delimiter-es|a|b}}</nowiki></code>
+
:<code><nowiki>{{delimiter-es|a|b|c|d}}</nowiki></code>
  
containing two parameters:
+
containing four parameters.
  
*the first parameter <code>a</code> is the number of stories for the expression, and equals one of the values '''2, 3, 4, 5'''.
+
:{| class="wikitable"
*the second parameter <code>b</code> is the glyph for the delimiter stack:
+
|-
**for left-handed square bracket extensions use '''&#9122;''',
+
! Parameter function
**for right-handed square bracket extensions use '''&#9125;''',
+
! Left-handed square bracket
**for left-handed round bracket extensions use '''&#9116;''',
+
! Right-handed square bracket
**for right-handed round bracket extensions use '''&#9119;''',
+
! Left-handed round bracket
**for vertical bar extensions use '''''',
+
! Right-handed round bracket
**for double vertical bar extensions ''''''.
+
! Vertical bars
 +
! Double vertical bars
 +
|-
 +
| The first parameter <code>a</code> is the top of the delimiter
 +
|⎡
 +
|⎤
 +
|⎛
 +
|⎞
 +
|│
 +
|║
 +
|-
 +
|The second parameter <code>b</code> is the glyph for the delimiter extension:
 +
|&#9122;
 +
|&#9125;
 +
|&#9116;
 +
|&#9119;
 +
|│
 +
|║
 +
|-
 +
|The third parameter <code>c</code> is the bottom of the delimiter
 +
|⎣
 +
|⎦
 +
|⎝
 +
|⎠
 +
|
 +
|
 +
|-
 +
|}
  
To avoid many switching functions within this template as well as those in {{tl|ldelim}} and {{tl|rdelim}}, it's better to copy and paste the above glyphs when using this template.
+
The fourth parameter <code>d</code> is the number of lines for the expression, and equals one of the values '''2, 3, 4, 5'''. The default is 2.
 +
 
 +
Each line corresponds to inserting a glyph in a new line of the <code>< span ></code> using <code>style="display:block;"</code>.
 +
 
 +
The glyphs listed above should be copied and pasted into the parameters <code>a</code>, <code>b</code>, <code>c</code> when this template is used.
  
 
==External sites==
 
==External sites==
Line 29: Line 61:
 
*[http://graphemica.com/%E2%8E%9F ''Graphemica'']
 
*[http://graphemica.com/%E2%8E%9F ''Graphemica'']
  
 +
<includeonly>{{Sandbox other||
 
[[Category:Mathematical formatting templates]]
 
[[Category:Mathematical formatting templates]]
 +
}}</includeonly>

Latest revision as of 23:14, 24 April 2020

This template contains the switch function for use in {{ldelim}} and {{rdelim}}, to change the height of the delimiters and store the glyphs that make up the delimiters.
Please do not delete it, and be very careful when editing it. Thank you.

The title is short for "delimiter extension switch". Ideally please do not move it.

Syntax

The template has the code:

{{delimiter-es|a|b|c|d}}

containing four parameters.

Parameter function Left-handed square bracket Right-handed square bracket Left-handed round bracket Right-handed round bracket Vertical bars Double vertical bars
The first parameter a is the top of the delimiter
The second parameter b is the glyph for the delimiter extension:
The third parameter c is the bottom of the delimiter

The fourth parameter d is the number of lines for the expression, and equals one of the values 2, 3, 4, 5. The default is 2.

Each line corresponds to inserting a glyph in a new line of the < span > using style="display:block;".

The glyphs listed above should be copied and pasted into the parameters a, b, c when this template is used.

External sites