Difference between revisions of "Template:CommandOutputTemplate"
Template page
Views
Actions
Namespaces
Variants
Tools
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
'''<nowiki>{{CommandOutputTemplate| | '''<nowiki>{{CommandOutputTemplate|prompt=$|ps1fg=yellow|clibg=black|clifg=white|command=command|result=result | ||
{{CommandOutputTemplate| | line1 | ||
</noinclude><includeonly><div style="display:block;border-radius:5px;padding-top:3px;padding-bottom:3px;background-color:{{{ | line2 | ||
<div style="color:{{{color}}};margin-left:1em;margin-right:1em;margin-top:0;">{{{result}}}</div></div> | }}</nowiki>''' | ||
{{CommandOutputTemplate|prompt=$|ps1fg=yellow|clibg=black|clifg=white|command=command|result=result=result | |||
line1 | |||
line2}} | |||
</noinclude><includeonly> | |||
<div style="display:block;border-radius:5px;padding-top:3px;padding-bottom:3px;background-color:{{{clibg}}};font-family:monospace;font-size:14px;"> | |||
<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> | |||
<br/> | |||
<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> | |||
</div> | |||
</div> | |||
</includeonly> | </includeonly> |
Revision as of 07:30, 9 December 2022
{{CommandOutputTemplate|prompt=$|ps1fg=yellow|clibg=black|clifg=white|command=command|result=result line1 line2 }}
$ command
result=result line1 line2