• Home
  • Random
  • એકત્ર ગ્રંથાલય
  • Log in
  • Settings
  • About Ekatra Foundation
  • Disclaimers
Ekatra Foundation

Template:Brace

  • Language
  • Watch
  • View source

Template documentationviewedithistorypurge

This template inserts a "brace segment": part of a brace (curly bracket) that can be put into a table to span multiple items.

Usage

  • Parameter 1 determines the orientation of the brace: l (left - { ), r (right - } ), o (over - ⏞ ) or u (under - ⏟⏟ ).
  • Parameter 2 determines the part of the brace:
  • t: top end:
  • b: bottom end:
  • m: middle (for braces with odd number of sections):
  • mt: middle, top (for braces with even numbers of segments):
  • mb: middle, bottom (for braces with even numbers of segments):
  • s: span (between middle and end):
  • ht: half-brace top (for 2-segment braces)
  • hb: half-brace bottom (for 2-segment braces)
  • l: left end:
  • r: right end:
  • ml: middle, left (for braces with even numbers of segments):
  • mr: middle, right (for braces with even numbers of segments):
  • hl: half-brace left (for 2-segment braces)
  • hr: half-brace right (for 2-segment braces)
  • Parameter 3 is an optional width for the segment tiles (default is 25) in pixels. All tiles in one brace must be the same for alignment.
  • Note that the table needs to have zero padding and cell spacing. The template {{brace table parameters}} will set these for you.
  • In the case of horizontal (under and over) brace, left is the "top" and right the "bottom"

Example

Foo {{brace|r|t}}
Bar {{brace|r|s}}
Spam {{brace|r|mt}}
Eggs {{brace|r|mb}}
Bread {{brace|r|s}}
Text {{brace|r|m}}
Text {{brace|r|b}}
Stuff {{brace|r|ht}}
Things {{brace|r|hb}}

See also

  • {{brace table parameters}}
  • {{brace2}} - Uses LaTeX math markup
  • {{brace3}} - Uses CSS, allows positioning of the bracket point

de:Template:Brace


The above documentation is transcluded from Template:Brace/doc. (edit | history)
Editors can experiment in this template’s sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://wiki.ekatrafoundation.org/index.php?title=Template:Brace&oldid=80515"
Last edited on 8 November 2024, at 02:09

Languages

    This page is not available in other languages.

    Ekatra Foundation
    • Powered by MediaWiki
    • This page was last edited on 8 November 2024, at 02:09.
    • This page has been accessed 583 times.
    • Privacy policy
    • About Ekatra Foundation
    • Disclaimers
    • Desktop