Template:Th/doc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Thunder4ik (talk | contribs) m (→See also: clean up, replaced: See Also → See also) |
||
(5 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{Doc/subpage}}</noinclude> | <noinclude>{{Doc/subpage}}</noinclude> | ||
HTML table header with prepared style | HTML table header with prepared style. | ||
== Parameters and Examples == | == Parameters and Examples == | ||
{| class="standard-table" style="width:100%" | {| class="standard-table" style="width:100%" | ||
|- style="position:sticky; z-index:10; top:0" | |- style="position:sticky; z-index:10; top:0" | ||
! Parameter | ! style="width:15em" | Parameter | ||
! Description | ! Description | ||
! Example | ! Example | ||
Line 17: | Line 17: | ||
|- | |- | ||
| style="text-align:center" | {{Code|preset=1| {{param|id}} }} | | style="text-align:center" | {{Code|preset=1| {{param|id}} }} | ||
| Element ID. | | Element ID. Useful for linking to a specific part of the page. | ||
| 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> ==== | ||
|- | |- | ||
Line 67: | Line 68: | ||
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{th|color = #893GVS}}</nowiki>}} | | style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{th|color = #893GVS}}</nowiki>}} | ||
|} | |} | ||
== See also == | |||
* {{tl|link=Table}} | |||
* {{tl|link=tr}} | |||
* {{tl|link=td}} | |||
{{Doc/Sandbox other| | {{Doc/Sandbox other| | ||
[[Category:Templates]] | [[Category:Templates]] | ||
}} | }} |
Latest revision as of 02:29, 12 January 2024

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.
Parameters and Examples
Parameter | Description | Example |
---|---|---|
{{{1}}} or {{{text}}} | Your text. | |
Attributes | ||
{{{id}}} | Element ID. Useful for linking to a specific part of the page. | |
{{{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