Difference between revisions of "Category:Table cell templates"

From LFS Manual
Jump to navigationJump to search
m
m (warning logo)
 
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. <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:
+
[[Image:Caution.png|18px]] '''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:
  
 
  ...
 
  ...

Latest revision as of 00:36, 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.

Caution.png 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}} 
...