Template:Table row borders
| This template uses TemplateStyles: |
Purpose
To make it easier to control borders between table rows.
Usage
Place {{Table row borders}} above the table and then add some classes to the table.
| Class | Summary |
|---|---|
defaultnorowborders
|
Removes all borders between table rows. Technical: adds CSS |
It is anticipated that additional functionality can be added with class names applied to table rows.
Limitations
- Preview will not work unless
{{table row borders}}is in that section. But if it is placed anywhere on the page, then table alignment will occur upon publishing. So to avoid bafflement and confusion by editors previewing sections, put it directly above each table its classes are used in. This is true for any table template using TemplateStyles. - On tables using
rowspanorcolspan, using the classes may not work well on those rows because the alignment appears in wrong cells.
Example
{{Table row borders}}
{| class="wikitable defaultnorowborders"
|-
! Header !! Header !! Header !! Header
|-
| AAAAAAA
| 10000–20000
| 3–4
| 53.43
|-
| BBB
| 5–6
| 113–125
| 2563.35
|-
| CCC
| 9–10
| 7–8
| 313.00
|}
| Header | Header | Header | Header |
|---|---|---|---|
| AAAAAAA | 10000–20000 | 3–4 | 53.43 |
| BBB | 5–6 | 113–125 | 2563.35 |
| CCC | 9–10 | 7–8 | 313.00 |
See also
- {{table alignment}} – For left/center/right aligning contents by columns.
- {{table vertical alignment}} – Same, but for vertical alignment.
More template styles for tables:
- {{sticky header}} - Makes column headers stick to the top of the page while scrolling through table data.
- {{sticky table start}} - allows sticky rows and columns inside a scrollable area.
- {{sort under}} - moves the sorting arrows under the headers.
- {{row hover highlight}} - adds row hover highlighting, and option for white background.
- {{static row numbers}} - adds a column of row numbers to a table.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.