Difference between revisions of "Template:Table cell templates"

From Pangaea Wiki
Jump to: navigation, search
Line 1: Line 1:
 
==How to use Table Cell Templates==
 
==How to use Table Cell Templates==
 
:{{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 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 <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;">
 
...
 
...
Line 19: Line 15:
 
|}
 
|}
 
{{clear}}
 
{{clear}}
 +
 +
*You put the cell-template within a "cell" of the table.
 +
*to use <code>colspan</code> or <code>rowspan</code> with it you need to add it in front of the template
 +
*You cannot combine two templates in one cell
 +
*you cannot add any styling to the cell since it will conflict with the template.
 +
*Each cell-template has it's own parameters, these are some common ones that might apply:
 +
*:<code>| 1 =</code> (the first parameter) allows you to replace the default text
 +
*:<code>| align =</code> sets the text alignment
 +
*:<code>| style =</code> allows you to add custom styling

Revision as of 10:04, 12 August 2018

How to use Table Cell Templates

Go here to edit this section: - view · talk · edit
...
!{{Yes}} ||{{No}} ||rowspan=2 {{n/a}}
|-
|colspan=2 {{Any}}
...
Yes No N/A
Any
  • You put the cell-template within a "cell" of the table.
  • to use colspan or rowspan with it you need to add it in front of the template
  • You cannot combine two templates in one cell
  • you cannot add any styling to the cell since it will conflict with the template.
  • Each cell-template has it's own parameters, these are some common ones that might apply:
    | 1 = (the first parameter) allows you to replace the default text
    | align = sets the text alignment
    | style = allows you to add custom styling