Template:Text

From QB64.org wiki
Jump to: navigation, search

This template is used to output text, optionally using a custom color.


Syntax

{{Text|text}}
{{Text|text|color}}


Parameters:

text - the text.
color - the color of the text.


Description

  • In the first syntax, text is output using the default color (gray).
  • In the second syntax, text is output using the color color, which may be a RGB value in the form #rrggbb, or one of the following names:

http://www.w3schools.com/html/html_colornames.asp


Examples

The following MediaWiki markup,
This text has {{Text|red|red}}, {{Text|blue|blue}} and {{Text|green|green}} colors.
produces the following output:
This text has red, blue and green colors.