Difference between revisions of "Template:CommandOutputTemplate"

refactor example to show lines
(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;">
Moderators, translator
455

edits