Difference between revisions of "Template:Clop"
(Test) |
m (Working.) |
||
Line 21: | Line 21: | ||
Will show the output of {{icli|ifconfig eth0}} in shell style. | Will show the output of {{icli|ifconfig eth0}} in shell style. | ||
− | {{clop}} | + | {{clop}}<nowiki> |
eth0 Link encap:Ethernet HWaddr 74:D0:2B:31:E4:6A | eth0 Link encap:Ethernet HWaddr 74:D0:2B:31:E4:6A | ||
inet addr:10.0.5.228 Bcast:10.0.255.255 Mask:255.255.0.0 | inet addr:10.0.5.228 Bcast:10.0.255.255 Mask:255.255.0.0 | ||
Line 30: | Line 30: | ||
collisions:0 txqueuelen:1000 | collisions:0 txqueuelen:1000 | ||
RX bytes:2666 (2.6 KiB) TX bytes:508 (508.0 B) | RX bytes:2666 (2.6 KiB) TX bytes:508 (508.0 B) | ||
− | {{clos}} | + | </nowiki>{{clos}} |
</noinclude><includeonly><div class="shell" style="white-space:pre; background-color:#000000;margin-right:21.2%;color:#aaaaaa;font-family:monospace,Courier;border-radius:2px;box-shadow:1px 2px 11px #888;margin-left:{{#ifeq:{{{indent|}}}|{{{indent|-}}}|{{#expr: -4 + {{{indent}}} * 4}}%|0%}};padding-left:4px;"></includeonly> | </noinclude><includeonly><div class="shell" style="white-space:pre; background-color:#000000;margin-right:21.2%;color:#aaaaaa;font-family:monospace,Courier;border-radius:2px;box-shadow:1px 2px 11px #888;margin-left:{{#ifeq:{{{indent|}}}|{{{indent|-}}}|{{#expr: -4 + {{{indent}}} * 4}}%|0%}};padding-left:4px;"></includeonly> |
Revision as of 16:15, 3 November 2015
Command Line Output
clop:
Use this tag to set the formatting for command line output which has pre-formatted text. Use the {{clos}} tag to end command line output. Use the {{clitxt|fg=color}} tag (See here) tag to change the text color in the middle.
For example:
{{clop}}eth0 Link encap:Ethernet HWaddr 74:D0:2B:31:E4:6A inet addr:10.0.5.228 Bcast:10.0.255.255 Mask:255.255.0.0 inet6 addr: fe80::76d0:2bff:fe31:e46a/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:28 errors:0 dropped:1 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2666 (2.6 KiB) TX bytes:508 (508.0 B) {{clos}}
Will show the output of root
@
som9x25
:
~
#
ifconfig eth0
in shell style.
eth0 Link encap:Ethernet HWaddr 74:D0:2B:31:E4:6A
inet addr:10.0.5.228 Bcast:10.0.255.255 Mask:255.255.0.0
inet6 addr: fe80::76d0:2bff:fe31:e46a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:28 errors:0 dropped:1 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2666 (2.6 KiB) TX bytes:508 (508.0 B)