Template:Table/doc: Difference between revisions
Jump to navigation
Jump to search
tr
tr
tr
tr
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{ | {{Doc/subpage}} | ||
{{Todo|Make the documentation better.}} | |||
Adds a table, but actually adds a table. | Adds a table, but actually adds a table. | ||
Line 6: | Line 7: | ||
== Parameters == | == Parameters == | ||
* {{Param| | * {{Param|id}} - Element ID for links. | ||
* {{Param|colspan}} | * {{Param|width}} - Element width. | ||
* {{Param|cellpadding}} | * {{Param|caption}} - Table caption (Not available for {{Code|<nowiki>{{Table|tr}}</nowiki>}}, {{Code|<nowiki>{{Table|th}}</nowiki>}} and {{Code|<nowiki>{{Table|td}}</nowiki>}}.). | ||
* {{Param|bgcolor}} | * {{Param|tr}} - {{Code|<tr></tr>}} | ||
* {{Param|radius}} | * {{Param|th}} - {{Code|<th></th>}} | ||
* {{Param|font-size}} | * {{Param|td}} - {{Code|<td></td>}} | ||
* {{Param|align}} | |||
* {{Param|color}} | * {{Param|colspan}} - {{Todo}} | ||
* {{Param|class}} | * {{Param|cellpadding}} - {{Todo}} | ||
* {{Param|style}} - Custom CSS (prepared styles are also planned) | * {{Param|bgcolor}} - Background color. | ||
* {{Param|radius}} - The radius of the cell border. | |||
* {{Param|font-size}} - Font size. | |||
* {{Param|align}} - Alignment of a table or text. | |||
* {{Param|color}} - Color of the text. | |||
* {{Param|class}} - Custom HTML class. | |||
* {{Param|style}} - Custom CSS (prepared styles are also planned). | |||
== Example == | == Example == | ||
{{CodeBlock|<nowiki> | {{CodeBlock|<nowiki>{{Table | ||
{{Table | | align = center | ||
| caption = [[File:ValveEmployee.png]]< | | caption = <span style="user-select:none"> [[File:ValveEmployee.png|link = Valve]] </span> | ||
| caption margin:bottom = 1em | |||
| {{Table|tr | | {{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|th|radius=3px 0 0 0| Header 1 }} {{Table|th| Header 2 }} {{Table|th|radius=0 3px 0 0| Header 3 }} | ||
Line 38: | Line 43: | ||
| {{Table|td|radius=0 0 0 3px| Cell 6 }} {{Table|td|colspan=2|bgcolor=#303030|radius=0 0 3px 0| Cell 7 }} | | {{Table|td|radius=0 0 0 3px| Cell 6 }} {{Table|td|colspan=2|bgcolor=#303030|radius=0 0 3px 0| Cell 7 }} | ||
}} | }} | ||
}} | }}</nowiki>}} | ||
{{Table | {{Table | ||
| caption = [[File:ValveEmployee.png]]< | | align = center | ||
| caption = <span style="user-select:none"> [[File:ValveEmployee.png|link = Valve]] </span> | |||
| caption margin:bottom = 1em | |||
| {{Table|tr | | {{Table|tr | ||
| header = 1 | | header = 1 | ||
Line 59: | Line 63: | ||
}} | }} | ||
}} | }} | ||
{{Doc/Sandbox other| | |||
[[Category:Templates]] | |||
[[Category:Formatting templates]] | |||
}} |
Revision as of 23:15, 11 June 2023

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.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Todo: Make the documentation better.
Adds a table, but actually adds a table.
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