Template:Table: Difference between revisions
Jump to navigation
Jump to search
Mailmanmicky (talk | contribs) mNo edit summary |
(New parameters and Replacement of some deprecated attributes) |
||
Line 1: | Line 1: | ||
{{Doc}}<includeonly><onlyinclude><!-- | {{Doc}} | ||
<includeonly><onlyinclude><!-- | |||
-->{{#switch: {{{1|}}} | tr | th | td = | #default = | -->{{#switch:{{{1|}}}| tr | th | td = | #default = | ||
<table {{#if:{{{id|}}}|id="{{{id|}}}"|}} class="plainlinks {{{class|}}}" cellpadding="{{{cellpadding|4px}}}" {{#if:{{{cellspacing|}}}|cellspacing="{{{cellspacing}}}"}} style="background:{{{bgcolor|#202020}}}; {{#if:{{{width|}}}|width:{{{width}}};}} border:2px solid #525252; border-radius:{{{radius|6px}}}; {{#if:{{{font-size|}}}|font-size:{{{font-size}}};}} {{#if:{{{align|}}}|margin:{{#switch:{{{align}}}|center=auto|right=0 0 0 auto}};}} {{{style|}}}"> | |||
{{{ | {{#if:{{{caption|}}}|<caption style="{{#if:{{{caption indent|}}}|margin:{{{caption indent|}}};|}} {{#if:{{{caption indent:top|}}}|margin-top:{{{caption indent:top|}}};|}} {{#if:{{{caption indent:right|}}}|margin-rght:{{{caption indent:right|}}};|}} {{#if:{{{caption indent:bottom|}}}|margin-bottom:{{{caption indent:bottom|}}};|}} {{#if:{{{caption indent:left|}}}|margin-left:{{{caption indent:left|}}};|}}">{{{caption|}}}</caption>|}} | ||
{{{1|}}} | |||
</table> | |||
--></onlyinclude></includeonly> | }}{{#switch:{{{1|}}} | ||
| tr = <tr {{#if:{{{id|}}}|id="{{{id|}}}"|}} style="background-color:{{{bgcolor|#3A3A3A}}}">{{{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> | |||
| 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> |
Revision as of 23:29, 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.