Template:Table/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
Adds a table, but actually adds a table.
Adds a table, but actually adds a table.
== Parameters ==
* {{Param|caption}}
* {{Param|tr}} - <tr> </tr>
* {{Param|th}} - <th> </th>
* {{Param|td}} - <td> </td>
* {{Param|colspan}}
* {{Param|cellpadding}}
* {{Param|header}}
* {{Param|width}}
* {{Param|bg}}
* {{Param|radius}} (except {{Param|tr}})
* {{Param|font-size}} (except {{Param|tr}})
* {{Param|align}}
* {{Param|color}}


== Example ==
== Example ==

Revision as of 05:09, 20 February 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.

Parameters

  • {{{caption}}}
  • {{{tr}}} - <tr> </tr>
  • {{{th}}} - <th> </th>
  • {{{td}}} - <td> </td>
  • {{{colspan}}}
  • {{{cellpadding}}}
  • {{{header}}}
  • {{{width}}}
  • {{{bg}}}
  • {{{radius}}} (except {{{tr}}})
  • {{{font-size}}} (except {{{tr}}})
  • {{{align}}}
  • {{{color}}}

Example

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


tr tr tr tr