قالب:Cell/doc
This is a documentation subpage for قالب:Cell It may contain usage information, categories and other content that is not part of the original قالب page. |
The {{cell}} template can be used to create a table cell with a specified background color.
Usage
تعديل
لووب القالب المحدد: قالب:Cell
The template takes one unnamed parameter as input, which is the background color of the table cell. The default content of each cell is a single thin space with a font-size of 50%. To override the content of each cell, use a second unnamed parameter. To override the default font-size, use the style=
parameter.
- Complete specification
Text
- Default
Examples
تعديلExample 1
تعديل- Code
{| width="50%" cellspacing=0 {{cell|red}}{{cell|blue}}{{cell|green}} |}
- Result
Example 2
تعديل- Code
{| width="50%" cellspacing=0 {{cell|red| }}{{cell|blue| }}{{cell|green| }} |}
- Result
Example 3
تعديل- Code
{| width="50%" cellspacing=0 {{cell|red|R|style=text-align:center}}{{cell|blue|B|style=text-align:center}}{{cell|green|G|style=text-align:center}} |}
- Result
R | B | G |
Note
تعديلThe {{cell2}} and {{cell3}} templates can be used to condense a sequence of cells of the same color.
شوف كمان
تعديل- {{cell2}} – two consecutive equal {{cell}} calls
- {{cell3}} – three consecutive equal {{cell}} calls
- {{cells}} – up to twenty consecutive equal {{cell}} calls
- {{color box}}
- {{color strip}}
- {{scarf}}
- {{cell1}} – one {{cell}} call, designed for compatibility with {{cell2}} and family