Difference between revisions of "Template:Table cell templates"

From Pangaea Wiki
Jump to: navigation, search
m
Line 2: Line 2:
 
:{{navbar|Table cell templates|text=Go here to edit this section: -}}
 
:{{navbar|Table cell templates|text=Go here to edit this section: -}}
 
*You put the cell-template within a "cell" of the table.  
 
*You put the cell-template within a "cell" of the table.  
*You cannot combine two templates in one cell, or add your own styling if the template does not include it.
+
*You cannot combine two templates in one cell
*You cannot add <code>style=</code> into the same cell, since it will conflict with the template. Sometimes the template itself will allow you to add styling
+
*you cannot add any styling to the cell since it will conflict with the template.
 +
*:unless the template itself provides a <code>| style=</code> parameter
 +
*to use <code>colspan</code> or <code>rowspan</code> you need to add it in front of the template
 
<pre style="width:300px;float:left;margin:20px;">
 
<pre style="width:300px;float:left;margin:20px;">
 
...
 
...

Revision as of 09:54, 12 August 2018

How to use Table Cell Templates

Go here to edit this section: - view · talk · edit
  • You put the cell-template within a "cell" of the table.
  • You cannot combine two templates in one cell
  • you cannot add any styling to the cell since it will conflict with the template.
    unless the template itself provides a | style= parameter
  • to use colspan or rowspan you need to add it in front of the template
...
!{{Yes}} ||{{No}} ||rowspan=2 {{n/a}}
|-
|colspan=2 {{Any}}
...
Yes No N/A
Any