Difference between revisions of "Template:Cliop"

From wiki.emacinc.com
Jump to: navigation, search
m (Tweak)
m (Tweaked.)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
== The CLIO Template ==
+
== The CLIOP Template ==
  
 
'''This version of the CLI template is for use inside <nowiki>{{clo}} and {{clos}}</nowiki> tags.'''
 
'''This version of the CLI template is for use inside <nowiki>{{clo}} and {{clos}}</nowiki> tags.'''
Line 29: Line 29:
 
----
 
----
 
----
 
----
</noinclude><includeonly><div style="padding-right:5px; padding-left:4px; background-color:#000000; margin-top:-3%; margin-bottom:-3%;">{{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></includeonly>
+
</noinclude><includeonly><div style="padding-right:5px; padding-left:4px; margin-left:-4px; background-color:#000000; margin-top:-1.75%; margin-bottom:-1.75%;">{{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></includeonly>

Latest revision as of 11:47, 20 November 2015

The CLIOP 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:

{{clop}}
{{cliop | ls -la}}
file1
file2
{{closp}}

Choose the PWD (Present Working Directory) like this:

root@som9x25:/home/user# ls -la

.fileA .b file1 file2