แม่แบบ:Brace

จาก วิกิซอร์ซ
ไปยังการนำทาง ไปยังการค้นหา

{{{3}}}px

Documentation icon คู่มือการใช้งานแม่แบบ[ดู] [แก้] [ประวัติ] [ล้างแคช]

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: {{{3}}}px
  • b: bottom end: {{{3}}}px
  • m: middle (for braces with odd number of sections): {{{3}}}px
  • mt: middle, top (for braces with even numbers of segments): {{{3}}}px
  • mb: middle, bottom (for braces with even numbers of segments): {{{3}}}px
  • s: span (between middle and end): {{{3}}}px
  • ht: half-brace top (for 2-segment braces) {{{3}}}px
  • hb: half-brace bottom (for 2-segment braces) {{{3}}}px
  • 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 {{{3}}}px {{brace|r|t}}
Bar {{{3}}}px {{brace|r|s}}
Spam {{{3}}}px {{brace|r|mt}}
Eggs {{{3}}}px {{brace|r|mb}}
Bread {{{3}}}px {{brace|r|s}}
Text {{{3}}}px {{brace|r|m}}
Text {{{3}}}px {{brace|r|b}}
Stuff {{{3}}}px {{brace|r|ht}}
Things {{{3}}}px {{brace|r|hb}}

See also[แก้ไข]