Template:Table: Difference between revisions
Jump to navigation
Jump to search
(New parameters and Replacement of some deprecated attributes) |
No edit summary |
||
Line 14: | Line 14: | ||
}}{{#switch:{{{1|}}} | }}{{#switch:{{{1|}}} | ||
| tr = <tr {{#if:{{{id|}}}|id="{{{id|}}}"|}} style="background-color:{{{bgcolor|#3A3A3A}}}">{{{2|}}}</tr> | | tr = <tr {{#if:{{{id|}}}|id="{{{id|}}}"|}} style="background-color:{{{bgcolor|#3A3A3A}}}; {{#switch:{{{sticky|}}}|true=box-shadow:0 2px 0 #262626; position:sticky; z-index:10; top:0;|}} {{{style|}}}">{{{2|}}}</tr> | ||
| th = <th {{#if:{{{id|}}}|id="{{{id|}}}"|}} {{#if:{{{colspan|}}}|colspan="{{{colspan|}}}"|}} {{#if:{{{rowspan|}}}|rowspan="{{{rowspan|}}}"|}} 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|}}}">{{{2|{{{text|}}}}}}</th> | | th = <th {{#if:{{{id|}}}|id="{{{id|}}}"|}} {{#if:{{{colspan|}}}|colspan="{{{colspan|}}}"|}} {{#if:{{{rowspan|}}}|rowspan="{{{rowspan|}}}"|}} 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|}}}">{{{2|{{{text|}}}}}}</th> | ||
| td = <td {{#if:{{{id|}}}|id="{{{id|}}}"|}} {{#if:{{{colspan|}}}|colspan="{{{colspan|}}}"|}} {{#if:{{{rowspan|}}}|rowspan="{{{rowspan|}}}"|}} style="{{#if:{{{width|}}}|width:{{{width|}}};|}} {{#if:{{{dark|}}}|background-color:#303030;|{{#if:{{{bgcolor|}}}|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|}}};|}} {{#if:{{{color|}}}|color:{{{color|}}};|}}{{{style|}}}">{{{2|{{{text|}}}}}}</td> | | td = <td {{#if:{{{id|}}}|id="{{{id|}}}"|}} {{#if:{{{colspan|}}}|colspan="{{{colspan|}}}"|}} {{#if:{{{rowspan|}}}|rowspan="{{{rowspan|}}}"|}} style="{{#if:{{{width|}}}|width:{{{width|}}};|}} {{#if:{{{dark|}}}|background-color:#303030;|{{#if:{{{bgcolor|}}}|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|}}};|}} {{#if:{{{color|}}}|color:{{{color|}}};|}} {{{style|}}}">{{{2|{{{text|}}}}}}</td> | ||
}}</onlyinclude></includeonly> | }}</onlyinclude></includeonly> |
Revision as of 23:36, 11 June 2023
The above documentation is transcluded from Template:Table/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.