Difference between revisions of "Category:Table cell templates"

From LFS Manual
Jump to navigationJump to search
m
(intro)
Line 1: Line 1:
 +
The templates in this series are designed to be used in a table to make a cell with text in that cell, with an appropriately colored background. Most of these templates should not be used simply to produce a background color, use them according to their meaning.
 +
 +
Important! If you want to use other attributes for the table cells, e.g. colspan, rowspan, or style, they need to be put before the template call, and there must be '''no vertical bar (aka pipe: <code>|</code>)''' in-between them! The following is correct:
 +
 +
...
 +
!{{tl|Yes}} ||{{tl|No}} ||rowspan=2 {{tl|N/A}}
 +
|-
 +
|colspan=2 style="border:solid 3px Maroon" {{tl|TBA}}
 +
...
 +
 
[[Category:Table templates]]
 
[[Category:Table templates]]

Revision as of 01:31, 26 January 2024

The templates in this series are designed to be used in a table to make a cell with text in that cell, with an appropriately colored background. Most of these templates should not be used simply to produce a background color, use them according to their meaning.

Important! If you want to use other attributes for the table cells, e.g. colspan, rowspan, or style, they need to be put before the template call, and there must be no vertical bar (aka pipe: |) in-between them! The following is correct:

...
!{{Yes}} ||{{No}} ||rowspan=2 {{N/A}}
|-
|colspan=2 style="border:solid 3px Maroon" {{TBA}} 
...