Difference between revisions of "Template:Cli"
m (Tweaked) |
m (Tweaked) |
||
Line 22: | Line 22: | ||
---- | ---- | ||
---- | ---- | ||
− | </noinclude><div style="padding-bottom:2px;padding-top:2px;margin-left: | + | </noinclude><div style="padding-bottom:2px;padding-top:2px;margin-left:0.3%;margin-right: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> |
Revision as of 00:08, 14 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}}}