Difference between revisions of "Template:RootCmdOutput"

update template info
(update template info)
(update template info)
 
Line 5: Line 5:
<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>
Syntax: '''<nowiki>{{UserCmdOutput|command=command|result=<pre>result</pre>}}</nowiki>'''
Syntax: '''<nowiki>{{RootCmdOutput|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
Moderators, translator
424

edits