- 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.
Difference between revisions of "Template:Colortext"
(Created page with "<span style="color:{{{1}}}";>{{{2}}}</span> <noinclude>{{documentation}}</noinclude>") |
|||
Line 1: | Line 1: | ||
− | <span style="color:{{{1}}}";>{{{2}}}</span> | + | <span style="color:{{{1}}}";>{{{2}}}</span><noinclude>{{documentation}}</noinclude> |
− | <noinclude>{{documentation}}</noinclude> |
Latest revision as of 01:01, 4 January 2023
{{{2}}}
(view - edit - history - purge) Documentation
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.