Difference between revisions of "Template:Text"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
m
(Created page with "<span style="color:{{{2|gray}}}">{{{1}}}</span>")
 
Line 1: Line 1:
<noinclude>This template is used to output text, optionally using a custom color.
+
<span style="color:{{{2|gray}}}">{{{1}}}</span>
 
 
 
 
{{PageSyntax}}
 
:<code><nowiki>{{</nowiki>Text|''text''<nowiki>}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>Text|''text''|''color''<nowiki>}}</nowiki></code>
 
 
 
 
 
''Parameters:''
 
:{{Parameter|text}} - the text.
 
:{{Parameter|color}} - the color of the text.
 
 
 
 
 
{{PageDescription}}
 
* In the first syntax, {{Parameter|text}} is output using the default color ({{Text|gray|gray}}).
 
* In the second syntax, {{Parameter|text}} is output using the color {{Parameter|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
 
 
 
 
 
{{PageExamples}}
 
:The following MediaWiki markup,
 
::This text has <nowiki>{{Text|red|red}}</nowiki>, <nowiki>{{Text|blue|blue}}</nowiki> and <nowiki>{{Text|green|green}}</nowiki> colors.
 
 
 
:produces the following output:
 
::This text has {{Text|red|red}}, {{Text|blue|blue}} and {{Text|green|green}} colors.
 
</noinclude><includeonly><span style="color:{{{2|gray}}}">{{{1}}}</span></includeonly>
 

Latest revision as of 05:51, 20 February 2020

{{{1}}}