Difference between revisions of "Template:Legend stripe"
Jump to navigation
Jump to search
imported>Frietjes (move to doc) |
imported>Nihiltres m (Laid out template internals with commented linebreaks for better readability) |
||
| Line 1: | Line 1: | ||
| − | {{#if:{{{2|}}}|<div style="border-style:solid; border-width:{{{width|1px}}} 0 0 0; border-color:{{{2|}}};"></div>}}{{#if:{{{3|}}}|<div style="border-style:solid; border-width:1px 0 0 0; border-color:{{{3|}}};"></div>}}<div style="border-style:{{{border-style|solid}}}; border-width: {{{width|{{#if:{{{2|}}}|3px|6px}}}}} 0px 0px 0px; border-color:{{{1|}}};"></div>{{#if:{{{3|}}}|<div style="border-style:solid; border-width:1px 0 0 0; border-color:{{{3|}}};"></div>}}{{#if:{{{2|}}}|<div style="border-style:solid; border-width:{{{width|1px}}} 0 0 0; border-color:{{{2|}}};"></div>}}<noinclude> | + | <!-- |
| − | {{documentation}}</noinclude> | + | -->{{#if:{{{2|}}}|<div style="border-style:solid; border-width:{{{width|1px}}} 0 0 0; border-color:{{{2|}}};"></div>}}<!-- |
| + | -->{{#if:{{{3|}}}|<div style="border-style:solid; border-width:1px 0 0 0; border-color:{{{3|}}};"></div>}}<!-- | ||
| + | --><div style="<!-- | ||
| + | -->border-style:{{{border-style|solid}}};<!-- | ||
| + | -->border-width:{{{width|{{#if:{{{2|}}}|3px|6px}}}}} 0px 0px 0px;<!-- | ||
| + | -->border-color:{{{1|}}};<!-- | ||
| + | -->"></div><!-- | ||
| + | -->{{#if:{{{3|}}}|<div style="border-style:solid; border-width:1px 0 0 0; border-color:{{{3|}}};"></div>}}<!-- | ||
| + | -->{{#if:{{{2|}}}|<div style="border-style:solid; border-width:{{{width|1px}}} 0 0 0; border-color:{{{2|}}};"></div>}}<!-- | ||
| + | --><noinclude>{{documentation}}</noinclude> | ||
Latest revision as of 22:40, 3 October 2020
Usage
| Syntax | Example | Output |
|---|---|---|
{{legend stripe|color}} |
{{legend stripe|red}} |
|
{{legend stripe|border-style=double|color}} |
{{legend stripe|border-style=double|red}} |
|
{{legend stripe|width=2px|color}} |
{{legend stripe|width=2px|red}} |
|
{{legend stripe|color|border color}} |
{{legend stripe|red|blue}} |
|
{{legend stripe|color|border color|spacer color}} |
{{legend stripe|red|blue|white}} |
|
{{legend stripe|width=2px|color|border color|spacer color}} |
{{legend stripe|width=2px|red|blue|white}} |
See also
- {{legend-line}}
| The above documentation is transcluded from Template:Legend stripe/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |