Difference between revisions of "Template:CommandOutputTemplate"

reorder parameters logically
(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|prompt=$|ps1fg=yellow|clibg=black|clifg=white|command=command|result=<pre>result
'''<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|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
line2
Moderators, translator
424

edits