Difference between revisions of "Template:CommandOutputTemplate"
Template page
Views
Actions
Namespaces
Variants
Tools
(refactor example to show lines) |
(reorder parameters logically) |
||
Line 2: | Line 2: | ||
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| | '''<nowiki>{{CommandOutputTemplate|ps1=$|ps1fg=yellow|clifg=white|clibg=black|command=command|result=<pre>result | ||
line1 | line1 | ||
line2 | line2 | ||
line3</pre>}}</nowiki>''' | line3</pre>}}</nowiki>''' | ||
{{CommandOutputTemplate| | {{CommandOutputTemplate|ps1=$|ps1fg=yellow|clifg=white|clibg=black|command=command|result=<pre>result | ||
line1 | line1 | ||
line2 | line2 |
Revision as of 07:41, 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>}}
{{{prompt}}} command
result line1 line2 line3