Template:Table/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 19: Line 19:
* {{Param|align}}
* {{Param|align}}
* {{Param|color}}
* {{Param|color}}
* {{Param|class}}
* {{Param|style}} - Custom CSS (prepared styles are also planned)
* {{Param|style}} - Custom CSS (prepared styles are also planned)



Revision as of 21:24, 9 April 2023

Edit-copy.png
This is a documentation subpage for Template:Table.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

Adds a table, but actually adds a table.

Template:ModernNote


Parameters

  • {{{width}}}
  • {{{caption}}}
  • {{{tr}}} - <tr> </tr>
  • {{{th}}} - <th> </th>
  • {{{td}}} - <td> </td>
  • {{{colspan}}}
  • {{{cellpadding}}}
  • {{{bgcolor}}}
  • {{{radius}}}
  • {{{font-size}}}
  • {{{align}}}
  • {{{color}}}
  • {{{class}}}
  • {{{style}}} - Custom CSS (prepared styles are also planned)

Example

<center> {{Table | caption = [[File:ValveEmployee.png]]<br><br> | {{Table|tr | {{Table|th|radius=3px 0 0 0| Header 1 }} {{Table|th| Header 2 }} {{Table|th|radius=0 3px 0 0| Header 3 }} }} {{Table|tr | {{Table|td| Cell 1 }} {{Table|td| Cell 2 }} {{Table|td| Cell 3 }} }} {{Table|tr | {{Table|td|colspan=2|bgcolor=#303030| Cell 4 }} {{Table|td| Cell 5 }} }} {{Table|tr | {{Table|td|radius=0 0 0 3px| Cell 6 }} {{Table|td|colspan=2|bgcolor=#303030|radius=0 0 3px 0| Cell 7 }} }} }} </center>


tr tr tr tr