Template:Th/doc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (→Attributes) |
||
Line 18: | Line 18: | ||
| style="text-align:center" | {{Code|preset=1| {{param|id}} }} | | style="text-align:center" | {{Code|preset=1| {{param|id}} }} | ||
| Element ID. | | Element ID. | ||
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{th|id = my_id}}</nowiki>}} | | style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{th|id = my_id}}</nowiki>}} {{CodeBlock|<nowiki>[[My Sweet Page#my_id|My sweet page]]</nowiki>}} | ||
|- | |- | ||
| style="text-align:center" | {{Code|preset=1| {{param|class}} }} | | style="text-align:center" | {{Code|preset=1| {{param|class}} }} | ||
Line 37: | Line 37: | ||
|- | |- | ||
| colspan="3" style="background-color:#858585; text-align:center" | | | colspan="3" style="background-color:#858585; text-align:center" | | ||
==== <span style="color:#000"> Style </span> ==== | ==== <span style="color:#000"> Style </span> ==== | ||
|- | |- |
Revision as of 06:39, 12 June 2023

This is a documentation subpage for Template:Th.
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.
HTML table header with prepared style. You can also use <th></th> if desired.
Parameters and Examples
Parameter | Description | Example |
---|---|---|
{{{1}}} or {{{text}}} | Your text. | |
Attributes | ||
{{{id}}} | Element ID. | |
{{{class}}} | Custom HTML class. | |
{{{colspan}}} | Specifies values for the HTML attribute colspan. | |
{{{rowspan}}} | Specifies values for the rowspan HTML attribute. | |
{{{style}}} | Custom CSS (prepared styles are also planned). | |
Style | ||
{{{width}}} | The width of the cell. | |
{{{bgcolor}}} | Background color. | |
{{{radius}}} | The radius of the cell border. | |
{{{select}}} | Specifies the value for the CSS property user-select. | |
{{{align}}} | Text alignment. | |
{{{font-size}}} | Font size. | |
{{{color}}} | Text color. |
See Also