Manjaro Difference between revisions of "Template:CommandOutputTemplate"

Difference between revisions of "Template:CommandOutputTemplate"

Template page
(forgot the ps in the code)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
'''<nowiki>{{CommandOutputTemplate|prompt=$|ps1fg=yellow|clibg=black|clifg=white|command=command|result=result
Provide the result inside a set of <nowiki><pre>result</pre></nowiki> tags to ensure it is broken down into lines.
 
'''<nowiki>{{CommandOutputTemplate|ps1=$|ps1fg=yellow|clifg=white|clibg=black|command=command|result=<pre>result
line1
line1
line2
line2
}}</nowiki>'''
line3</pre>}}</nowiki>'''
{{CommandOutputTemplate|prompt=$|ps1fg=yellow|clibg=black|clifg=white|command=command|result=<pre>result
{{CommandOutputTemplate|ps1=$|ps1fg=yellow|clifg=white|clibg=black|command=command|result=<pre>result
line1
line1
line2</pre>}}
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:1px;">
<div style="display:block;border-radius:5px;padding-top:3px;padding-bottom:3px;background-color:{{{clibg}}};font-family:monospace;font-size:16px;">
<span style="background-color:{{{clibg}}};color:{{{ps1fg}}};margin-left:1em;margin-top:0;margin-bottom:0;padding:0;font-weight:bold;">{{{prompt}}}</span> <span style="background-color:{{{clibg}}};color:{{{clifg}}};margin-top:0;margin-bottom:0;padding:0;font-weight:bold;">{{{command}}}</span>
<span style="background-color:{{{clibg}}};color:{{{ps1fg}}};margin-left:1em;margin-top:0;margin-bottom:0;padding:0;font-weight:bold;">{{{ps1}}}</span> <span style="background-color:{{{clibg}}};color:{{{clifg}}};margin-top:0;margin-bottom:0;padding:0;font-weight:bold;">{{{command}}}</span>
<br/>
<br/>
<div style="background-color:{{{clibg}}};color:{{{clifg}}};margin-left:1em;margin-right:1em;margin-top:0;">
<div style="background-color:{{{clibg}}};color:{{{clifg}}};margin-left:1em;margin-right:1em;margin-top:0;">
<span style="font-familiy:monospace;background-color:{{{clibg}}};color:{{{clifg}}}"> {{{result}}}</span>
<span>{{{result}}}</span>
</div>
</div>
</div>
</div>
</includeonly>
</includeonly>

Latest revision as of 07:42, 9 December 2022

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

{{CommandOutputTemplate|ps1=$|ps1fg=yellow|clifg=white|clibg=black|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.