Manjaro Difference between revisions of "Template:CommandOutputTemplate"

Difference between revisions of "Template:CommandOutputTemplate"

Template page
(Added comment on usage)
(refactor example to show lines)
Line 1: Line 1:
<noinclude>
<noinclude>
Provide the result inside a set of <nowiki><pre>result</pre></nowiki> tags to ensure it is broken down into lines.
Provide the result inside a set of <nowiki><pre>result</pre></nowiki> tags to ensure it is broken down into lines.
'''<nowiki>{{CommandOutputTemplate|prompt=$|ps1fg=yellow|clibg=black|clifg=white|command=command|result=result}}</nowiki>'''
 
{{CommandOutputTemplate|prompt=$|ps1fg=yellow|clibg=black|clifg=white|command=command|result=result}}
'''<nowiki>{{CommandOutputTemplate|prompt=$|ps1fg=yellow|clibg=black|clifg=white|command=command|result=<pre>result
line1
line2
line3</pre>}}</nowiki>'''
{{CommandOutputTemplate|prompt=$|ps1fg=yellow|clibg=black|clifg=white|command=command|result=<pre>result
line1
line2
line3</pre>}}
</noinclude><includeonly>
</noinclude><includeonly>
<div style="display:block;border-radius:5px;padding-top:3px;padding-bottom:3px;background-color:{{{clibg}}};font-family:monospace;font-size:16px;">
<div style="display:block;border-radius:5px;padding-top:3px;padding-bottom:3px;background-color:{{{clibg}}};font-family:monospace;font-size:16px;">

Revision as of 07:38, 9 December 2022

Provide the result inside a set of <pre>result</pre> tags to ensure it is broken down into lines.

{{CommandOutputTemplate|prompt=$|ps1fg=yellow|clibg=black|clifg=white|command=command|result=<pre>result line1 line2 line3</pre>}}

$ command

result
line1
line2
line3


Cookies help us deliver our services. By using our services, you agree to our use of cookies.