Moderators, translator
455
edits
(updated template to match the new commandoutputtemplate) |
(update template info) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
== RootCmdOutput template == | |||
<p>Template formatting a command entered as root including the resulting output</p> | |||
<p>The result is often more than one line.</p> | <p>The result is often more than one line.</p> | ||
<p>To format the result correctly use a set of '''<nowiki><pre>result</pre></nowiki>''' tags to ensure the result is displayed with multiple lines.</p> | <p>To format the result correctly use a set of '''<nowiki><pre>result</pre></nowiki>''' tags to ensure the result is displayed with multiple lines.</p> | ||
<p> | <p> | ||
'''<nowiki>{{UserCmdOutput|command=command|result=<pre>result</pre>}}</nowiki>''' | Syntax: '''<nowiki>{{UserCmdOutput|command=command|result=<pre>result</pre>}}</nowiki>''' | ||
{{CommandOutputTemplate|ps1=#|ps1fg=red|clifg=black|clibg=lightgrey|command=lsblk|result=<pre>nvme0n1 259:0 0 476,9G 0 disk | {{CommandOutputTemplate|ps1=#|ps1fg=red|clifg=black|clibg=lightgrey|command=lsblk|result=<pre>nvme0n1 259:0 0 476,9G 0 disk | ||
├─nvme0n1p1 259:1 0 300M 0 part /boot/efi | ├─nvme0n1p1 259:1 0 300M 0 part /boot/efi |