Difference between revisions of "Template:Cliop"
m (Tweak) |
m (Tweak) |
||
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:-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> |
Revision as of 17:29, 3 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:
{{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