Πρότυπο:Brace2

Από Βικιθήκη
Πήδηση στην πλοήγηση Πήδηση στην αναζήτηση

Τεκμηρίωση προτύπου[προβολή] [επεξεργασία] [ιστορικό] [ανανέωση]

Πίνακας περιεχομένων

Usage[Επεξεργασία]

The template generates a variable height brace using LaTeX math markup. These are especially useful in tables where they are used to group items.

Parameters
  • Πρότυπο:Parameter: the height of the brace in lines (this is not necessarily the same as lines of text, you may need to tweak it). Optional, default: 1
  • Πρότυπο:Parameter: the direction of the brace ("up", "u", "down", "d", "left", "l", "right" or "r"). Optional, default: right.

Examples[Επεξεργασία]

Plain use[Επεξεργασία]

{{brace2|}}
{{brace2|2}}
{{brace2|4|r}}
{{brace2|1|l}}
{{brace2|3|l}}
{{brace2|1|u}}
{{brace2|6|u}}
{{brace2|1|d}}
{{brace2|6|d}}

Formatting with tables[Επεξεργασία]

{|
| Item 1
| rowspan=2|{{brace2|2|r}}
|-
| Item 2
|}
Item 1
Item 2

For putting a line on the right side of the brace, as well as for creating this brace in case of Non-English Wikisource if this template is not present, see example here. However, if the line on right is to be put immediately after or at slight gap from the brace, it can be done as per here.

See also[Επεξεργασία]