Template:Tb-legend: Difference between revisions
From Electrical Installation Guide
m (1 revision imported: Import all new templates etc (exported from PPR)) |
(add one extra option (tb-square) - required - tested and copied from DEV-FR) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{{bg1|}}} | {{#vardefine:space | }} | <includeonly>{{#if: {{{bg1|}}} | {{#vardefine:space | }}{{#vardefine:tbsquare | {{tb-square}} }} | ||
{{tb-start}} | {{tb-start}} | ||
{{{!}} class="wikitable" | {{{!}} class="wikitable" | ||
Line 7: | Line 7: | ||
| HC2 = {{!}} {{tb-HC2}} {{!}} {{#var:space}} {{!}}{{!}} {{{tx1}}} | | HC2 = {{!}} {{tb-HC2}} {{!}} {{#var:space}} {{!}}{{!}} {{{tx1}}} | ||
| white = {{!}} class="legend-white" {{!}} {{#var: space}} {{!}}{{!}} {{{tx1}}} | | white = {{!}} class="legend-white" {{!}} {{#var: space}} {{!}}{{!}} {{{tx1}}} | ||
| tb-square = {{!}} {{#var: tbsquare}} {{!}}{{!}} {{{tx1}}} | |||
}}{{#if: {{{bg2|}}}|<nowiki/> | }}{{#if: {{{bg2|}}}|<nowiki/> | ||
{{!}}- | {{!}}- | ||
Line 13: | Line 14: | ||
| HC2 = {{!}} {{tb-HC2}} {{!}} {{#var:space}} {{!}}{{!}} {{{tx2}}} | | HC2 = {{!}} {{tb-HC2}} {{!}} {{#var:space}} {{!}}{{!}} {{{tx2}}} | ||
| white = {{!}} class="legend-white" {{!}} {{#var:space}} {{!}}{{!}} {{{tx2}}} | | white = {{!}} class="legend-white" {{!}} {{#var:space}} {{!}}{{!}} {{{tx2}}} | ||
| tb-square = {{!}} {{#var: tbsquare}} {{!}}{{!}} {{{tx2}}} | |||
}}}}{{#if: {{{bg3|}}}|<nowiki/> | }}}}{{#if: {{{bg3|}}}|<nowiki/> | ||
{{!}}- | {{!}}- | ||
Line 19: | Line 21: | ||
| HC2 = {{!}} {{tb-HC2}} {{!}} {{#var:space}} {{!}}{{!}} {{{tx3}}} | | HC2 = {{!}} {{tb-HC2}} {{!}} {{#var:space}} {{!}}{{!}} {{{tx3}}} | ||
| white = {{!}} class="legend-white" {{!}} {{#var: space}} {{!}}{{!}} {{{tx3}}} | | white = {{!}} class="legend-white" {{!}} {{#var: space}} {{!}}{{!}} {{{tx3}}} | ||
| tb-square = {{!}} {{#var: tbsquare}} {{!}}{{!}} {{{tx3}}} | |||
}}}} | }}}} | ||
{{!}}} | {{!}}} | ||
Line 32: | Line 35: | ||
"label": "Background color 1", | "label": "Background color 1", | ||
"description": "Background color of this legend entry", | "description": "Background color of this legend entry", | ||
"example": "HC1, HC2 or | "example": "HC1, HC2, white or tb-square", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true |
Latest revision as of 15:49, 12 January 2020
This template is used to add a legend to a table, to explain the meaning of specific background colors added in some cells in this table
Parameter | Description | Type | Status | |
---|---|---|---|---|
Background color 1 | bg1 | Background color of this legend entry
| String | suggested |
Legend entry text 1 | tx1 | Text of this legend entry
| Unbalanced wikitext | suggested |
Background color 2 | bg2 | Background color of this legend entry
| String | suggested |
Legend entry text 2 | tx2 | Text of this legend entry
| Unbalanced wikitext | suggested |
Background color 3 | bg3 | Background color of this legend entry
| String | suggested |
Legend entry text 3 | tx3 | Text of this legend entry
| Unbalanced wikitext | suggested |