Difference between revisions of "Template:Iclo"

From wiki.emacinc.com
Jump to: navigation, search
(Initial Content.)
 
m (Tweak)
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
== The iCLO Template ==
 
== The iCLO Template ==
  
This template displays the passed argument, <code>cmd</code>, as simulated command line output, inline.
+
This template displays the passed argument, <code>command output</code>, as simulated command line output, inline.
  
 
Use it like this:
 
Use it like this:
  
  To show files, type <nowiki>{{iclo | -rw-r--r--    1 root     root        164769 Nov  6 23:16 all}}</nowiki> in your shell.
+
  <nowiki>The output of the <code>ls -lh</code> command might look like {{iclo |-rw-r--r--    1 root     root        4.7K Jun 22 16:58 wgetrc}}</nowiki> in your shell.
  
 
to produce:
 
to produce:
  
To show files, type {{iclo | -rw-r--r--    1 root     root        164769 Nov  6 23:16 all}} in your shell.
+
The output of the <code>ls -lh</code> command might look like {{iclo |-rw-r--r--    1 root     root        4.7K Jun 22 16:58 wgetrc}} in your shell.
  
  
</noinclude><includeonly><span style="padding-bottom:1px;padding-top:0px;padding-left:3px;padding-right:3px;background-color:#111;border-radius:3px;box-shadow:1px 1px 2px #aaa;">{{clitxt|#aa0000}}root{{clitxts}}{{clitxt|#ffffff}}@{{clitxts}}{{clitxt|#00aaaa}}som9x25{{clitxts}}{{clitxt|#ffffff}}:{{clitxts}}{{clitxt|#54ffff}}~{{clitxts}}{{clitxt|#ffff55}}#{{clitxts}}{{clitxt}} {{{1}}}{{clitxts}}</span></includeonly>
+
</noinclude><includeonly><span style="padding-bottom:1px;padding-top:0px;padding-left:3px;padding-right:3px;background-color:#111;border-radius:3px;box-shadow:1px 1px 2px #aaa;">{{clitxt}}{{{1}}}{{clitxts}}</span></includeonly>

Latest revision as of 13:21, 9 November 2015

The iCLO Template

This template displays the passed argument, command output, as simulated command line output, inline.

Use it like this:

The output of the <code>ls -lh</code> command might look like {{iclo |-rw-r--r--    1 root     root        4.7K Jun 22 16:58 wgetrc}} in your shell.

to produce:

The output of the ls -lh command might look like -rw-r--r-- 1 root root 4.7K Jun 22 16:58 wgetrc in your shell.