Difference between revisions of "Template:Clio"
m (Improved appearance.) |
m (Fixed description's examples.) |
||
Line 8: | Line 8: | ||
Use it like this: | Use it like this: | ||
− | <nowiki>{{ | + | <nowiki>{{clio | ls -la}}</nowiki> |
Choose the PWD (Present Working Directory) like this: | Choose the PWD (Present Working Directory) like this: | ||
− | <nowiki>{{ | + | <nowiki>{{clio | ls -la | pwd=/home/user}}</nowiki> |
Choose the hostname like this: | Choose the hostname like this: | ||
− | <nowiki>{{ | + | <nowiki>{{clio | ls -la | hostname=desktop}}</nowiki> |
Choose the username like this: | Choose the username like this: | ||
− | <nowiki>{{ | + | <nowiki>{{clio | ls -la | username=developer}}</nowiki> |
---- | ---- | ||
---- | ---- | ||
</noinclude><div style="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:#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 11:00, 6 October 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}}}