Difference between revisions of "Template:Clitxt"
m (Fixed white color.) |
m (Tweaked.) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
Use it like this: | Use it like this: | ||
− | <nowiki>{{clitxt| | + | <nowiki>{{clitxt|#aa0000}}some red text</nowiki> |
− | Passing <code> | + | Passing <code>#aa0000</code> sets the text color to red. |
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 | + | <nowiki>{{clitxt}}some normal 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="background-color:#000000;color:{{#ifeq:{{{fg|}}}|{{{fg|-}}}|{{{fg}}}|#aaaaaa}} | + | </noinclude><includeonly><code style="white-space: pre; font-family:Courier,monospace; font-weight:800 important!; line-height:1.3; background-color:#000000;color:{{#ifeq:{{{1|}}}|{{{1|-}}}|{{{1}}}|{{#ifeq:{{{fg|}}}|{{{fg|-}}}|{{{fg}}}|#aaaaaa}}}};"></includeonly> |
Latest revision as of 12:09, 20 November 2015
Format Tag for Command-line Text
Use it like this:
{{clitxt|#aa0000}}some red text
Passing #aa0000
sets the text color to red.
If no color code is specified, it sets the text color back to bright white:
{{clitxt}}some normal white text
Use the {{clitxts}}
tag (CLI Text Stop) to end the text and return to normal wiki text.