Difference between revisions of "Template:Clio"

From wiki.emacinc.com
Jump to: navigation, search
m (testing)
m (testing)
Line 24: Line 24:
 
----
 
----
 
----
 
----
</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>
+
</noinclude><div style="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 00:01, 14 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}}}