Template:Cell1/doc
| This is a documentation subpage for Template:Cell1. It may contain usage information, categories and other content that is not part of the original template page. |
The {{cell1}} template can be used to create a single consecutive table cell with a specified background color. It is designed for compatibility with {{cell2}}, {{cell3}} and {{cells}} (together, "the {{cell2}} family").
By default, {{cell}} has an internal font size of 50%. However, the {{cell2}} family overrides this, and have a default internal font size of 100%. Therefore a series containing only {{cell}}s will be half the height of a series containing at least one member of the {{cell2}} family. {{cell1}} is designed to emulate the behaviour of the {{cell2}} family, but for a single cell.
Usage
{{Cell1|COLOR}}
The template takes one unnamed parameter as input, which is the background color of the table cells.
Examples
Example 1: using {{cell}}
{| width="50%" cellspacing=0
{{cell|red}}{{cell|blue}}{{cell|green}}
|}
Example 2: using {{cell1}}
{| width="50%" cellspacing=0
{{cell1|red}}{{cell1|blue}}{{cell1|green}}
|}
Note
The {{cell2}} and {{cell3}} template can be used for a sequence of two or three cells of the same color. For more than three cells, use {{cells}}.
See also
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.