Template:Table/doc

From Valve Developer Community
Jump to navigation Jump to search
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

Todo: Make the documentation better.

Parameters

  • {{{id}}} - Element ID for links.
  • {{{width}}} - Element width.
  • {{{caption}}} - Table caption (Not available for {{Table|tr}}, {{Table|th}} and {{Table|td}}.).
  • {{{tr}}} - <tr></tr>
  • {{{th}}} - <th></th>
  • {{{td}}} - <td></td>
  • {{{colspan}}} - [Todo]
  • {{{cellpadding}}} - [Todo]
  • {{{bgcolor}}} - Background color.
  • {{{radius}}} - The radius of the cell border.
  • {{{font-size}}} - Font size.
  • {{{align}}} - Alignment of a table or text.
  • {{{color}}} - Color of the text.
  • {{{class}}} - Custom HTML class.
  • {{{style}}} - Custom CSS (prepared styles are also planned).

Example

{{Table | align = center | caption = <span style="user-select:none"> [[File:ValveEmployee.png|link = Valve]] </span> | caption margin:bottom = 1em | {{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|rowspan=2| Cell 3 }} }} {{Table|tr | {{Table|td|colspan=2|bgcolor=#303030| Cell 4 }} }} {{Table|tr | {{Table|td|radius=0 0 0 3px| Cell 6 }} {{Table|td|colspan=2|bgcolor=#303030|radius=0 0 3px 0| Cell 7 }} }} }}
tr tr tr tr