Template:Color box templates
Appearance
| Template | Description | Example | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{Color box}} | Color box size with black borders and text color. Standard size. | {{#if: | {{{2}}}| {{{2}}} }} | }} or {{#if:ORANGE | ORANGE| ORANGE }} | }} | ||||||||||
| {{Color box striped}} | Striped color box. Standard size. | {{{3}}} | }} | ||||||||||||||
| {{RouteBox}} | Borderless color box with text color and wikilinks. | ORANGE | ORANGE }} | ||||||||||||||
| {{Colorbull}} | Colored bullet with wikilinks. | [[{{{3}}}|{{#switch:{{{2}}} | circle|r|round = ● | diamond = ◆ | up|uptriangle = ▲ | dn|downtriangle = ▼ | lt|lefttriangle = ◀ | rt|righttriangle = ▶ | #default = ■
}}]]|{{#switch:{{{2}}} |
circle|r|round = ● | diamond = ◆ | up|uptriangle = ▲ | dn|downtriangle = ▼ | lt|lefttriangle = ◀ | rt|righttriangle = ▶ | #default = ■
}}}} |
| {{Legend inline}} | Color box size with black borders. Standard size. | {{#if: | }} | |||||||||||||
| {{Color sample}} | Color box size with black borders. Smaller size. | |||||||||||||||
| {{Swatch inline}} | orange|orange}} | |||||||||||||||
| {{Background color}} | orange{{safesubst:#switch:
{{safesubst:#if:
|
{{{demospace}}} | main | other
}} }} |
{{#ifexpr:1 < 7 OR 10.634053407262 < 7 AND 1.9747879003183 < 7|}}}} | other | #default =
}}{{#switch: {{#if:
|
{{{demospace}}} | Template | template | other
}} }} |
{{#ifexpr:1 < 7 OR 10.634053407262 < 7 AND 1.9747879003183 < 7|}}}} | other | #default =
}} | ||
| {{Rail color box}} | A version with more display options. Part of Module:Adjacent stations | ●, Orange | ||||||||||||||
| {{Diagonal split color box}} | Color box split diagonally. Standard size. | {{#ifexpr:{{#ifeq: |
0}} and {{#if:|1|0}} | {{#ifeq: | {{#if: | {{{4}}}| }} |
{{#if: | {{{4}}}| }} {{#if:|{{{3}}}| }}
|
{{{4}}}|{{#if:| | }}}} {{#if:|{{{3}}}|{{#if:| | }}}} }}}}
|