Difference between revisions of "Template:Composition histogram"
Jump to navigation
Jump to search
imported>Frietjes (add end, with optional override) |
imported>Frietjes |
||
| Line 1: | Line 1: | ||
| − | {{#switch:{{{2|}}} | + | {{<includeonly>safesubst:</includeonly>#switch:{{{2|}}} |
| = | | = | ||
| 0 = | | 0 = | ||
Revision as of 13:42, 25 July 2015
Usage
{{Composition histogram|colour|number}}
or
{{Composition histogram|colour|number|end}}
Examples
| num | colour | output | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | black | |||||||||||||
| 1 | green |
| ||||||||||||
| 2 | blue |
| ||||||||||||
| 3 | silver |
| ||||||||||||
| 4 | maroon |
| ||||||||||||
| 5 | #ccf |
| ||||||||||||
| 6 | #0000ff |
| ||||||||||||
| 7 | #00ff00 |
| ||||||||||||
| 8 | #ff0000 |
| ||||||||||||
| 9 | #ffff00 |
| ||||||||||||
| 10 | #ff00ff |
| ||||||||||||
| 11 | #00ffff |
| ||||||||||||
| 12 | navy |
| ||||||||||||
| 13 | blue | Composition histogram: Unsupported input | ||||||||||||
| 14 | red | Composition histogram: Unsupported input |
| Input | Output | |||||
|---|---|---|---|---|---|---|
{{Composition histogram|red|2}}
|
| |||||
{{Composition histogram|red|2|end}}
|
|
See also
- {{composition bar}}
| The above documentation is transcluded from Template:Composition histogram/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. |