Difference between revisions of "Category:Table cell templates"

From LFS Manual
Jump to navigationJump to search
(intro)
m
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.
 
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:
+
Important! If you want to use other attributes for the table cells, e.g. <code>colspan</code>, <code>rowspan</code>, or <code>style</code>, 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:
  
 
  ...
 
  ...

Revision as of 00:33, 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}} 
...