Template:Th: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><onlyinclude><th bgcolor="{{{bgcolor|#253B4E}}}" {{#if:{{{colspan|}}}|colspan="{{{colspan|}}}"|}} {{#if:{{{rowspan|}}}|rowspan="{{{rowspan|}}}"|}} {{#if:{{{align|}}}|align="{{{align|}}}"|}} style="{{#if:{{{width|}}}|width:{{{width|}}};|}} {{#if:{{{radius|}}}|border-radius:{{{radius|}}};|}} {{#if:{{{font-size|}}}|font-size:{{{font-size|}}};|}} color:{{{color|#FFF}}};{{{style|}}}">{{{2|{{{text|}}}}}}</th></onlyinclude></includeonly>
{{Doc}}
<includeonly><onlyinclude><th
 
<!-- Attributes -->
{{#if:{{{id|}}}|id="{{{id|}}}"|}} {{#if:{{{class|}}}|class="{{{class|}}}"|}} {{#if:{{{colspan|}}}|colspan="{{{colspan|}}}"|}} {{#if:{{{rowspan|}}}|rowspan="{{{rowspan|}}}"|}}
 
<!-- Style -->
style="{{#if:{{{width|}}}|width:{{{width|}}};|}} background-color:{{{bgcolor|#253B4E}}}; {{#if:{{{radius|}}}|border-radius:{{{radius|}}};|}} {{#if:{{{select|}}}|user-select:{{{select|}}};|}} {{#if:{{{align|}}}|text-align:{{{align|}}};|}} {{#if:{{{font-size|}}}|font-size:{{{font-size|}}};|}} color:{{{color|#FFF}}}; {{{style|}}}"> {{{1|{{{text|}}}}}} </th></onlyinclude></includeonly>

Latest revision as of 07:01, 12 June 2023

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history

HTML table header with prepared style.

Parameters and Examples

Parameter Description Example
{{{1}}} or {{{text}}} Your text.
{{th|Hello, World!}}
{{th|text = Hello, World!}}

Attributes

{{{id}}} Element ID. Useful for linking to a specific part of the page.
{{th|id = my_id}}
[[My Sweet Page#my_id|My sweet page]]
{{{class}}} Custom HTML class.
{{th|class = myClass}}
{{{colspan}}} Specifies values for the HTML attribute colspan.
{{th|colspan = 2}}
{{{rowspan}}} Specifies values for the rowspan HTML attribute.
{{th|rowspan = 4}}
{{{style}}} Custom CSS (prepared styles are also planned).
{{th|style = background-image:linear-gradient(0deg, white, black)}}

Style

{{{width}}} The width of the cell.
{{th|width = 30%}}
{{{bgcolor}}} Background color.
{{th|bgcolor = rgb(255 255 255)}}
{{{radius}}} The radius of the cell border.
{{th|radius = 8px 2px 4px 8px}}
{{{select}}} Specifies the value for the CSS property user-select.
{{th|select = all}}
{{{align}}} Text alignment.
{{th|align = right}}
{{{font-size}}} Font size.
{{th|font-size = 1.5em}}
{{{color}}} Text color.
{{th|color = #893GVS}}

See also