Difference between revisions of "Template:Clio"

From wiki.emacinc.com
Jump to: navigation, search
m (Tweak)
m (Tweaked.)
 
(6 intermediate revisions by the same user not shown)
Line 24: Line 24:
 
----
 
----
 
----
 
----
</noinclude><div style="padding-right:5px;background-color:#000000; margin-top:-1%; margin-bottom:-1%;">{{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-right:5px; background-color:#000; margin-top:-0.4%; margin-bottom:-0.4%;">{{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>

Latest revision as of 13:15, 20 November 2015

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:

{{clio | ls -la}}

Choose the PWD (Present Working Directory) like this:

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

Choose the hostname like this:

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

Choose the username like this:

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


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