แม่แบบ:ปีกกา
หน้าตา
(เปลี่ยนทางจาก แม่แบบ:Brace)
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)

- t: top end:
- 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
[แก้ไข]
| The above คู่มือการใช้งานเป็นการรวมข้ามจากแม่แบบ:Brace/doc. (แก้ | ประวัติ) ผู้แก้ไขสามารถทำการทดลองได้ที่มอดูล (สร้าง | คัดลอก) และชุดทดสอบ (สร้าง) ของแม่แบบนี้ หน้าย่อยของแม่แบบนี้. |