Template:Table/doc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 24: | Line 24: | ||
|- | |- | ||
| {{Param|caption}} | | {{Param|caption}} | ||
| Table caption (Not available for {{Code|<nowiki>{{ | | Table caption (Not available for {{Code|<nowiki>{{tr}}</nowiki>}}, {{Code|<nowiki>{{th}}</nowiki>}} and {{Code|<nowiki>{{Table|td}}</nowiki>}}.). | ||
|- | |- | ||
| {{Param|caption indent}} | | {{Param|caption indent}} | ||
Line 72: | Line 72: | ||
|- | |- | ||
| {{Param|sticky}} | | {{Param|sticky}} | ||
| Makes {{Code|<nowiki>{{ | | Makes {{Code|<nowiki>{{tr}}</nowiki>}} stick to the top of the screen. | ||
|} | |} | ||
Line 80: | Line 80: | ||
| caption = <span style="user-select:none"> [[File:ValveEmployee.png|link = Valve]] </span> | | caption = <span style="user-select:none"> [[File:ValveEmployee.png|link = Valve]] </span> | ||
| caption indent:bottom = 1em | | caption indent:bottom = 1em | ||
| {{ | | {{tr | ||
| {{th|radius=3px 0 0 0| Header 1 }} {{th| Header 2 }} {{th|radius=0 3px 0 0| Header 3 }} | | {{th|radius=3px 0 0 0| Header 1 }} | ||
{{th| Header 2 }} | |||
{{th|radius=0 3px 0 0| Header 3 }} | |||
}} | }} | ||
{{ | {{tr | ||
| {{ | | {{td| Cell 1 }} | ||
{{td| Cell 2 }} | |||
{{td|rowspan=2| Cell 3 }} | |||
}} | }} | ||
{{ | {{tr | ||
| {{ | | {{td|colspan=2|bgcolor=#303030| Cell 4 }} | ||
}} | }} | ||
{{ | {{tr | ||
| {{ | | {{td|radius=0 0 0 3px| Cell 6 }} | ||
{{td|colspan=2|bgcolor=#303030|radius=0 0 3px 0| Cell 7 }} | |||
}} | }} | ||
}}</nowiki>}} | }}</nowiki>}} | ||
Line 99: | Line 104: | ||
| caption = <span style="user-select:none"> [[File:ValveEmployee.png|link = Valve]] </span> | | caption = <span style="user-select:none"> [[File:ValveEmployee.png|link = Valve]] </span> | ||
| caption indent:bottom = 1em | | caption indent:bottom = 1em | ||
| {{ | | {{tr | ||
| {{th|radius=3px 0 0 0| Header 1 }} | |||
| {{th|radius=3px 0 0 0| Header 1 }} {{th| Header 2 }} {{th|radius=0 3px 0 0| Header 3 }} | {{th| Header 2 }} | ||
{{th|radius=0 3px 0 0| Header 3 }} | |||
}} | }} | ||
{{ | {{tr | ||
| {{ | | {{td| Cell 1 }} {{td| Cell 2 }} | ||
{{td|rowspan=2| Cell 3 }} | |||
}} | }} | ||
{{ | {{tr | ||
| {{ | | {{td|colspan=2|bgcolor=#303030| Cell 4 }} | ||
}} | }} | ||
{{ | {{tr | ||
| {{ | | {{td|radius=0 0 0 3px| Cell 6 }} | ||
{{td|colspan=2|bgcolor=#303030|radius=0 0 3px 0| Cell 7 }} | |||
}} | }} | ||
}} | }} |
Revision as of 07:03, 12 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.
Adds a table, but actually adds a table.
Todo: Make the documentation better.
Parameters
Parameter | Description |
---|---|
{{{id}}} | Element ID for links. |
{{{class}}} | Custom HTML class. |
{{{style}}} | Custom CSS (prepared styles are also planned). |
{{{width}}} | Element width. |
{{{caption}}} | Table caption (Not available for {{tr}}, {{th}} and {{Table|td}}.). |
{{{caption indent}}} | [Todo] |
{{{caption indent:top}}} | [Todo] |
{{{caption indent:right}}} | [Todo] |
{{{caption indent:bottom}}} | [Todo] |
{{{caption indent:left}}} | [Todo] |
{{{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. |
{{{color}}} | Color of the text. |
{{{align}}} | Alignment of a table or text. |
{{{sticky}}} | Makes {{tr}} stick to the top of the screen. |
Example
Header 1 | Header 2 | Header 3 |
---|---|---|
Cell 1 | Cell 2 | Cell 3 |
Cell 4 | ||
Cell 6 | Cell 7 |