Difference between revisions of "Template:Clitxt"

From wiki.emacinc.com
Jump to: navigation, search
m (Undo revision 3872 by Mdean (talk)Changed the wrong template.)
m (Added the 'pre' style for white-space)
Line 15: Line 15:
 
Use the <code><nowiki>{{clitxts}}</nowiki></code> 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><includeonly><code style="background-color:#000000;color:{{#ifeq:{{{1|}}}|{{{1|-}}}|{{{1}}}|{{#ifeq:{{{fg|}}}|{{{fg|-}}}|{{{fg}}}|#aaaaaa}}}};"></includeonly>
+
</noinclude><includeonly><code style="white-space: pre; background-color:#000000;color:{{#ifeq:{{{1|}}}|{{{1|-}}}|{{{1}}}|{{#ifeq:{{{fg|}}}|{{{fg|-}}}|{{{fg}}}|#aaaaaa}}}};"></includeonly>

Revision as of 16:04, 3 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.