RogerDodger (talk | contribs) (Created page with "<table {{#if:{{{float|}}}|class="float{{{float}}}|}}">{{#if:{{{blue|}}}| <tr> <td style="width: 1.5em" class="bg-blue pattern"></td> <td>{{{blue}}}</td> </tr>}}{{#if:{{{red|}}...") |
RogerDodger (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<table {{#if:{{{float|}}}|class="float{{{float}}}|}}">{{#if:{{{blue|}}}| | <includeonly><table {{#if:{{{float|}}}|class="float{{{float}}}|}}">{{#if:{{{blue|}}}| | ||
<tr> | <tr> | ||
<td style="width: 1.5em" class="bg-blue pattern"></td> | <td style="width: 1.5em" class="bg-blue pattern"></td> | ||
Line 28: | Line 28: | ||
<td>{{{purple}}}</td> | <td>{{{purple}}}</td> | ||
</tr>}} | </tr>}} | ||
</table> | </table></includeonly><noinclude>{{documentation}}</noinclude> |
Latest revision as of 14:50, 9 January 2021
This template is used to indicate what colors mean in a certain context. It's often paired with Template:FrameTable.
The order of the colors is fixed, but this behavior might change and shouldn't be relied on.
Usage
{{Legend
|float=right
|blue=Neutral
|green=Crouch
}}
Parameters
Parameter | Default | Description |
---|---|---|
float
|
Make the legend float. Valid values are right , left , and blank.
| |
<color>
|
The meaning of <color> in this context. Available colors are red , orange , yellow , green , teal , blue , and purple .
|
Example
Neutral | |
Crouch |
- The above documentation is from Template:Legend/doc
- Editors should experiment in this template’s sandbox and testcases pages