Difference between revisions of "Template:Clio"

From wiki.emacinc.com
Jump to: navigation, search
m (testing)
m (Tweaked.)
 
(13 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
Use it like this:
 
Use it like this:
  
  <nowiki>{{cli | ls -la}}</nowiki>
+
  <nowiki>{{clio | ls -la}}</nowiki>
  
 
Choose the PWD (Present Working Directory) like this:
 
Choose the PWD (Present Working Directory) like this:
  
  <nowiki>{{cli | ls -la | pwd=/home/user}}</nowiki>
+
  <nowiki>{{clio | ls -la | pwd=/home/user}}</nowiki>
  
 
Choose the hostname like this:
 
Choose the hostname like this:
  
  <nowiki>{{cli | ls -la | hostname=desktop}}</nowiki>
+
  <nowiki>{{clio | ls -la | hostname=desktop}}</nowiki>
  
 
Choose the username like this:
 
Choose the username like this:
  
  <nowiki>{{cli | ls -la | username=developer}}</nowiki>
+
  <nowiki>{{clio | ls -la | username=developer}}</nowiki>
  
 
----
 
----
 
----
 
----
</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-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}}}