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

From blackwiki
Jump to navigation Jump to search
imported>Maschen
imported>Maschen
(update)
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.  
+
;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.  
  
<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 do not [[Wikipedia:Moving a page|move]] it.
  
 
==Syntax==
 
==Syntax==
Line 14: Line 14:
  
 
*the first parameter <code>a</code> is the number of stories for the expression, and equals one of the values '''2, 3, 4, 5'''.
 
*the first parameter <code>a</code> is the number of stories for the expression, and equals one of the values '''2, 3, 4, 5'''.
*the second parameter <code>b</code> is the glyph for the delimiter stack:
+
*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;''',  
 
**for right-handed square bracket extensions use '''&#9125;''',  
 
**for right-handed square bracket extensions use '''&#9125;''',  
Line 22: Line 22:
 
**for double vertical bar extensions '''║'''.
 
**for double vertical bar extensions '''║'''.
  
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.
+
Each line corresponds to inserting a glyph in a new line of the <code>< span ></code> using the <code>style="display:block;"</code>.
 +
 
 +
The glyphs listed above should be copied and pasted into parameter <code>b</code> when this template is used.
  
 
==External sites==
 
==External sites==

Revision as of 22:56, 25 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}}

containing two parameters:

  • the first parameter a is the number of stories for the expression, and equals one of the values 2, 3, 4, 5.
  • 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 .

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 b when this template is used.

External sites