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

From blackwiki
Jump to navigation Jump to search
imported>Maschen
imported>Maschen
(UPDATE PLEASE DO NOT REVERT)
Line 9: Line 9:
 
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 two parameters:
 
+
*the first parameter <code>a</code> is the top of the delimiter
*the first parameter <code>a</code> is the number of stories for the expression, and equals one of the values '''2, 3, 4, 5'''.
+
**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:
 
*the second parameter <code>b</code> is the glyph for the delimiter extension:
 
**for left-handed square bracket extensions use '''&#9122;''',  
 
**for left-handed square bracket extensions use '''&#9122;''',  
Line 21: Line 26:
 
**for vertical bar extensions use '''│''',
 
**for vertical bar extensions use '''│''',
 
**for double vertical bar extensions '''║'''.
 
**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>.  
 
Each line corresponds to inserting a glyph in a new line of the <code>< span ></code> using the <code>style="display:block;"</code>.  

Revision as of 08:28, 26 June 2013

This template contains the switch function for use in {{ldelim}} and {{rdelim}}, to change the height of 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 do not move it.

Syntax

The template has the code:

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

containing two parameters:

  • the first parameter a 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 b is the glyph for the delimiter extension:
    • 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 third parameter c 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 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 the style="display:block;".

The glyphs listed above should be copied and pasted into parameter a when this template is used.

External sites