Difference between revisions of "Template:Color"
Jump to navigation
Jump to search
old>Realpsojed (Created page with "<includeonly><span style="color:{{#switch: {{{1}}} |- |neg |Negative |Physical = #9e1b31 |+ |pos |Positive = #78d199 |Magical |Rare = #4c7fff |Uncommon = #59db4c |Unique = #82...") |
old>Realpsojed (removed space) |
||
Line 29: | Line 29: | ||
|Frost = #73c0de | |Frost = #73c0de | ||
|Mental = #27b1ea | |Mental = #27b1ea | ||
|#default = #E0E0E0 | |#default = #E0E0E0}};white-space: nowrap;">{{{2}}}</span></includeonly><noinclude>{{doc}} | ||
}};white-space: nowrap;">{{{2}}}</span> | |||
</includeonly><noinclude>{{doc}} | |||
[[Category:Formatting templates]]</noinclude> | [[Category:Formatting templates]]</noinclude> |
Revision as of 18:31, 28 May 2020
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 {{{2}}} 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