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

From blackwiki
Jump to navigation Jump to search
imported>Maschen
(UPDATE PLEASE DO NOT REVERT)
imported>Maschen
Line 1: Line 1:
;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.  
+
;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.  
  
 
;''Please do not delete it, and be very careful when editing it. Thank you.''
 
;''Please do not delete it, and be very careful when editing it. Thank you.''
  
The title is short for "delimiter extension switch". Ideally do not [[Wikipedia:Moving a page|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 9:
 
The template has the code:
 
The template has the code:
  
<code><nowiki>{{delimiter-es|a|b|c|d}}</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 top of the delimiter
 
**for left-handed square bracket extensions use '''⎡''',
 
**for right-handed square bracket extensions use '''⎤''',
 
**for left-handed round bracket extensions use '''⎛''',
 
**for right-handed round bracket extensions use '''⎞''',
 
**for vertical bar extensions use '''│''',
 
**for double vertical bar extensions '''║'''.
 
*the second parameter <code>b</code> is the glyph for the delimiter extension:
 
**for left-handed square bracket extensions use '''&#9122;''',
 
**for right-handed square bracket extensions use '''&#9125;''',
 
**for left-handed round bracket extensions use '''&#9116;''',
 
**for right-handed round bracket extensions use '''&#9119;''',
 
**for vertical bar extensions use '''│''',
 
**for double vertical bar extensions '''║'''.
 
*the third parameter <code>c</code> is the bottom of the delimiter
 
**for left-handed square bracket extensions use '''⎣''',
 
**for right-handed square bracket extensions use '''⎦''',
 
**for left-handed round bracket extensions use '''⎝''',
 
**for right-handed round bracket extensions use '''⎠''',
 
**for vertical bar extensions use '''│''',
 
**for double vertical bar extensions '''║'''.
 
*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 the <code>style="display:block;"</code>.
+
:{| class="wikitable"
 +
|-
 +
! 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 <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
 +
|⎣
 +
|⎦
 +
|⎝
 +
|⎠
 +
|│
 +
|║
 +
|-
 +
|}
  
The glyphs listed above should be copied and pasted into parameter <code>a</code> when this template is used.
+
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==

Revision as of 09:24, 26 June 2013

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