Difference between revisions of "Template:Table cell templates"

From Pangaea Wiki
Jump to: navigation, search
m
Line 19: Line 19:
 
*you cannot add any styling to the cell since it will conflict with the template.
 
*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:
 
*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>| 1 =</code> (the first parameter) allows you to replace the default text <code><nowiki>{{yes|custom text}}</nowiki></code>
 
*:<code>| align =</code> sets the text alignment
 
*:<code>| align =</code> sets the text alignment
 +
*:<code>| style =</code> allows you to add custom styling
 +
 +
===Cell-templates on pangaea wiki===
 +
{| class=wikitable
 +
!template || example
 +
|-
 +
|{{tl|yes}} || {{yes}}
 +
|-
 +
|{{tl|no}} || {{no}}
 +
|-
 +
|{{tl|any}} || {{any}}
 +
|-
 +
|{{tl|some}} || {{some}}
 +
|-
 +
|{{tl|n/a}} || {{n/a}}
 +
|}

Revision as of 10:41, 12 August 2018

How to use Table Cell Templates

...
!{{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 the template you need to add them 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 {{yes|custom text}}
    | align = sets the text alignment
    | style = allows you to add custom styling

Cell-templates on pangaea wiki

template example
{{yes}} Yes
{{no}} No
{{any}} Any
{{some}} Template:Some
{{n/a}} N/A