Difference between revisions of "Template:Clio"

From wiki.emacinc.com
Jump to: navigation, search
(Created)
 
m (testing)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
== The CLI Template ==
+
== The CLIO Template ==
 +
 
 +
'''This version of the CLI template is for use inside <nowiki>{{clo}} and {{clos}}</nowiki> tags.'''
  
 
This template displays the passed argument, <code>cmd</code>, at a simulated command line.
 
This template displays the passed argument, <code>cmd</code>, at a simulated command line.
Line 22: Line 24:
 
----
 
----
 
----
 
----
</noinclude><div style="padding-bottom:2px;padding-top:2px;margin-left:2%;margin-right:2%;padding-left:3px;padding-right:5px;background-color:#000000;">{{clitxt|{{#ifeq:{{{username|}}}|{{{username|-}}}|#00aa00|#aa0000}}}}{{#ifeq:{{{username|}}}|{{{username|-}}}|{{{username}}}|root}}{{clitxts}}{{clitxt|#ffffff}}@{{clitxts}}{{clitxt|#00aaaa}}{{#ifeq:{{{hostname|}}}|{{{hostname|-}}}|{{{hostname}}}|som9x25}}{{clitxts}}{{clitxt|#ffffff}}:{{clitxts}}{{clitxt|#54ffff}}{{#ifeq:{{{pwd|}}}|{{{pwd|-}}}|{{{pwd}}}|~}}{{clitxts}}{{clitxt|#ffff55}}#{{clitxts}}{{clitxt}} {{{1}}}{{clitxts}}</div>
+
</noinclude><div style="padding-bottom:1px;padding-top:1px;padding-left:3px;padding-right:5px;background-color:#000000;">{{clitxt|{{#ifeq:{{{username|}}}|{{{username|-}}}|#00aa00|#aa0000}}}}{{#ifeq:{{{username|}}}|{{{username|-}}}|{{{username}}}|root}}{{clitxts}}{{clitxt|#ffffff}}@{{clitxts}}{{clitxt|#00aaaa}}{{#ifeq:{{{hostname|}}}|{{{hostname|-}}}|{{{hostname}}}|som9x25}}{{clitxts}}{{clitxt|#ffffff}}:{{clitxts}}{{clitxt|#54ffff}}{{#ifeq:{{{pwd|}}}|{{{pwd|-}}}|{{{pwd}}}|~}}{{clitxts}}{{clitxt|#ffff55}}#{{clitxts}}{{clitxt}} {{{1}}}{{clitxts}}</div>

Revision as of 23:59, 13 November 2014

The CLIO Template

This version of the CLI template is for use inside {{clo}} and {{clos}} tags.

This template displays the passed argument, cmd, at a simulated command line.

Use it like this:

{{cli | ls -la}}

Choose the PWD (Present Working Directory) like this:

{{cli | ls -la | pwd=/home/user}}

Choose the hostname like this:

{{cli | ls -la | hostname=desktop}}

Choose the username like this:

{{cli | ls -la | username=developer}}


root@som9x25:~# {{{1}}}