# Template:Rdelim

"Template:Rightdelimiter" and "Template:Rightdelimiter/doc" redirects to here.

This is for producing tall right-handed delimiters for multiline expressions (usually mathematical) in HTML, together with {{ldelim}}, compatible with {{math}}, as an alternative to LaTeX. Up to 5 lines are possible. The name "rdelim" is a shorthand for "right-handed delimiter".

This template uses {{delimiter-es}}, and is used in {{dsqbracket}} and {{drndbracket}}.

## Syntax

The template has the code:

`{{rdelim|a|b|sup=|sub=}}`

containing principal two parameters:

• the first parameter `a` is
• square for square brackets [ ],
• round for round brackets ( ),
• vert for vertical bars | |,
• doublevert for double vertical bars || ||,
• the second parameter `b` is the number of lines for the expression, and equals one of the values 2, 3, 4, 5.

and two optional parameters:

• sup for superscripts outside of the delimiter,
• sub for subscripts outside of the delimiter.

Without the superscript and subscript parameters, the `< sup >` or `< sub >` tags alone will not position the superscripts or subscripts correctly.

## Examples

### No template:math

Lorentz factor
γ(v) = 11 − vc
Absolute value of a fraction
a + 12b + c
Norm of a vector with scalar fractions
p2 + 1a3 + bA + q2 − 1a + b3B
A representation of the Lorentz group
12, 00, 12
Ampère's circuital law with Maxwell's correction

S
Bdx =
S
μ0J + 1c2EtdS

### template:math

Lorentz factor
γ(v) = 11 − vc
Absolute value of a fraction
a + 12b + c
Norm of a vector with scalar fractions
p2 + 1a3 + bA + q2 − 1a + b3B
A representation of the Lorentz group
12, 00, 12
Ampère's circuital law with Maxwell's correction

S
Bdx =
S
μ0J + 1c2EtdS