Template:Table/doc: Difference between revisions
Jump to navigation
Jump to search
m (→Elements) |
SirYodaJedi (talk | contribs) m (→Ready-made table code: move image) |
||
Line 112: | Line 112: | ||
| id = example_table | | id = example_table | ||
| align = center | | align = center | ||
| caption = <span style="user-select:none"> [[File: | | caption = <span style="user-select:none"> [[File:Valve icon.png|link = Valve]] </span> | ||
| caption indent:bottom = 1em | | caption indent:bottom = 1em | ||
| {{tr | | {{tr |
Revision as of 13:04, 15 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 and Examples
Parameter | Description | Example |
---|---|---|
{{{1}}} or {{{text}}} | Yout text. | |
Elements | ||
{{{caption}}} | Table caption. | |
Attributes | ||
{{{id}}} | Element ID. Useful for linking to a specific part of the page. | |
{{{class}}} | Custom HTML class. | |
{{{style}}} | Custom CSS (prepared styles are also planned). | |
Style | ||
{{{caption indent}}} | [Todo] | |
{{{caption indent:top}}} | [Todo] | |
{{{caption indent:right}}} | [Todo] | |
{{{caption indent:bottom}}} | [Todo] | |
{{{caption indent:left}}} | [Todo] | |
{{{width}}} | The width of the cell. | |
{{{bgcolor}}} | Background color. | |
{{{radius}}} | The radius of the cell border. | |
{{{align}}} | Table alignment. Available values:
|
|
{{{font-size}}} | Font size. |
Ready-made table code
Header 1 | Header 2 | Header 3 |
---|---|---|
Cell 1 | Cell 2 | Cell 3 |
Cell 4 | ||
Cell 6 | Cell 7 |