Difference between revisions of "Template:Color"
Jump to navigation
Jump to search
old>Realpsojed (added new keywords and colors from the list) |
(expand active color with new types of active skills that use the same color) |
||
(8 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><span style="color:{{#switch: {{{1}}} | <includeonly><span style="color:{{#switch: {{lc:{{{1}}}}} | ||
|- | |- | ||
|neg | |neg | ||
| | |negative | ||
| | |physical = #9e1b31 | ||
|+ | |+ | ||
|pos | |pos | ||
| | |positive = #78d199 | ||
| | |magical | ||
| | |rare = #4c7fff | ||
| | |uncommon = #59db4c | ||
| | |unique = #8248bc | ||
| | |cursed = #824858 | ||
| | |epic = #ffb72b | ||
| | |energy = #21b7ec | ||
| | |passive = #a3b719 | ||
| | |white = #ffffff | ||
| | |brown = #95796a | ||
| | |lightbrown | ||
| | |light brown = #d5b292 | ||
| | |orange = #f6bb15 | ||
| | |gray = #9d9a9a | ||
| | |req = #71725e | ||
| | |red = #c75c5d | ||
| | |active | ||
| | |attack | ||
| | |attack/charge | ||
| | |attack/maneuver | ||
| | |stance | ||
| | |charge | ||
| | |maneuver | ||
| | |spell | ||
| | |state | ||
| | |flawless | ||
| | |caustic = #0ed78e | ||
| | |fire = #f28d31 | ||
|#default = #E0E0E0}};white-space: nowrap;">{{{2}}}</span></includeonly><noinclude>{{doc}} | |arcane = #9872ec | ||
|sacred = #fff6b5 | |||
|shock = #fff6b5 | |||
|unholy = #ec4d49 | |||
|poison = #58af13 | |||
|psionic = #504aea | |||
|frost = #73c0de | |||
|ench | |||
|condition | |||
|mental = #27b1ea | |||
|territorial | |||
|uniquetrait | |||
|unique trait = #f28d31 | |||
|#default = #E0E0E0}};{{#if: {{{3|}}}|white-space: nowrap;|}}">{{{2|{{{1|}}}}}}</span></includeonly><noinclude>{{doc}} | |||
[[Category:Formatting templates]]</noinclude> | [[Category:Formatting templates]]</noinclude> |
Latest revision as of 11:42, 22 September 2023
Documentation
[purge]
Colors text based on Stoneshard colors. Shortcut: {{c}}
Usage:
- First parameter is the color keyword. One color can use multiple keywords. For example
{{c|+|Text}}
and{{c|positive|Text}}
both produce Text. See Community portal for a listing of keywords. - Second parameter (optional) is the text you want to colorize. If omitted, the keyword is used. For example
{{c|Orange}}
produces Orange and{{c|Orange|Passive Bonus}}
produces Passive Bonus. - Third parameter (optional) is the white-space: nowrap option. You can enter anything as the third parameter -
{{c|+|Test words|0}}
or{{c|+|Test words|yes}}
produces the same results.
Default text:
<div style="width:50px;border:1px solid;">{{c|+|Test words}}</div>
Test words
Text with nowrap:
<div style="width:50px;border:1px solid;">{{c|+|Test words|f}}</div>
Test words