Difference between revisions of "Template:Cli"

From wiki.emacinc.com
Jump to: navigation, search
m (Improved appearance.)
m (Tweaked)
Line 22: Line 22:
 
----
 
----
 
----
 
----
</noinclude><div style="padding-bottom:2px;padding-top:2px;margin-left:0.8%;margin-right:21.2%;padding-left:3px;padding-right:5px;background-color:#000000;border-radius:2px;box-shadow:1px 1px 1px 0px;">{{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:2px;padding-top:2px;margin-left:0.8%;margin-right:21.2%;padding-left:3px;padding-right:5px;background-color:#000000;border-radius:2px;box-shadow:1px 2px 11px #888;">{{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 21:58, 17 November 2014

The CLI Template

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}}}