Difference between revisions of "Template:RootCmdOutput"

updated template to match the new commandoutputtemplate
m
(updated template to match the new commandoutputtemplate)
Line 1: Line 1:
<noinclude>
<noinclude>
<nowiki>{{RootCmdOutput|command=lsblk|result=result}}</nowiki>
<p>The result is often more than one line.</p>
{{CommandOutputTemplate|color=red|prompt=#|command=lsblk|result=result}}
<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>
</noinclude><includeonly>{{CommandOutputTemplate|color=red|prompt=#|command={{{command}}}|result=<pre>{{{result}}}</pre>}}</includeonly>
<p>
'''<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
├─nvme0n1p1 259:1    0  300M  0 part /boot/efi
├─nvme0n1p2 259:2    0 467,8G  0 part /
└─nvme0n1p3 259:3    0  8,8G  0 part [SWAP]
</pre>}}
</p>
<includeonly>{{CommandOutputTemplate|ps1=#|ps1fg=red|clifg=black|clibg=lightgrey|command={{{command}}}|result={{{result}}}}}</includeonly>
Moderators, translator
455

edits