v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Template:Colortext/doc

From Dwarf Fortress Wiki
< Template:Colortext
Revision as of 08:41, 24 March 2023 by Cali (talk | contribs) (Added missing word)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template is used for creating colored text without the need to use CSS "span" or "div" tags.

Syntax

The syntax of this template must be typed like this:
{{colortext|COLOR|Displayed Text}}

There are two ways to apply color: either by using a color name that is recognized by the HTML in a browser (such as "red", "lime" or "darkgrey"), or by using a hex code such as "#550000" (which is dark red) or "#0000ff" (which is blue). Note that adding another two numbers will have those numbers control the opacity of the text.

Typing the following: {{colortext|#ff0080|This is very noticable fushia text.}}
Will produce this: This is very noticable fushia text.

Note that text can be formatted within the template: {{colortext|#0072ED|'''''This navy blue text has both bolds and italics.'''''}}
Which produces this: This navy blue text has both bolds and italics.