Difference between revisions of "Template:Clitxt"
m (Removed padding.) |
m (Improved quality of code and description.) |
||
Line 5: | Line 5: | ||
Use it like this: | Use it like this: | ||
− | <nowiki>{{clitxt|fg=#aa0000}}some red text</nowiki> | + | <nowiki>{{clitxt|fg=#aa0000}}some red text</nowiki> |
Passing <code>fg=#aa0000</code> sets the text color to red. | Passing <code>fg=#aa0000</code> sets the text color to red. | ||
Line 11: | Line 11: | ||
If no color code is specified, it sets the text color back to bright white: | If no color code is specified, it sets the text color back to bright white: | ||
− | <nowiki>{{clitxt}}some bright white text</nowiki> | + | <nowiki>{{clitxt}}some bright white text</nowiki> |
− | Use the <nowiki>{{clitxts}}</nowiki> tag (CLI Text Stop) to end the text and return to normal wiki text. | + | Use the <code><nowiki>{{clitxts}}</nowiki></code> tag (CLI Text Stop) to end the text and return to normal wiki text. |
− | </noinclude><code style=" | + | </noinclude><includeonly><code style="color:{{#ifeq:{{{fg|}}}|{{{fg|-}}}|{{{fg}}}|#aaaaaa}};"></includeonly> |
Revision as of 18:12, 12 November 2014
Format Tag for Command-line Text
Use it like this:
{{clitxt|fg=#aa0000}}some red text
Passing fg=#aa0000
sets the text color to red.
If no color code is specified, it sets the text color back to bright white:
{{clitxt}}some bright white text
Use the {{clitxts}}
tag (CLI Text Stop) to end the text and return to normal wiki text.