Difference between revisions of "Template:Color"

From Stoneshard wiki
Jump to navigation Jump to search
(add light brown for keyword highlighting)
(expand active color with new types of active skills that use the same color)
 
Line 24: Line 24:
|red = #c75c5d
|red = #c75c5d
|active
|active
|attack
|attack/charge
|attack/maneuver
|stance
|charge
|maneuver
|spell
|state
|state
|flawless
|flawless

Latest revision as of 11:42, 22 September 2023

Template-info.png Documentation

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