Manjaro Difference between revisions of "Template:CommandOutputTemplate"

Difference between revisions of "Template:CommandOutputTemplate"

Template page
Line 1: Line 1:
<noinclude>
<noinclude>
'''<nowiki>{{CommandOutputTemplate|color=yellow|bgcolor=black|prompt=prompt|command=command|result=result}}</nowiki>'''
'''<nowiki>{{CommandOutputTemplate|prompt=$|ps1fg=yellow|clibg=black|clifg=white|command=command|result=result
{{CommandOutputTemplate|color=yellow|bgcolor=black|prompt=prompt|command=command|result=result}}
line1
</noinclude><includeonly><div style="display:block;border-radius:5px;padding-top:3px;padding-bottom:3px;background-color:{{{bgcolor}}};font-family:monospace;font-size:14px"><span style="color:{{{color}}};margin-left:1em;margin-top:0;margin-bottom:0;padding:0;font-weight:bold;">{{{prompt}}}</span> <span style="color:{{{color}}};margin-top:0;margin-bottom:0;padding:0;font-weight:bold;">{{{command}}}</span><br/>
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


Cookies help us deliver our services. By using our services, you agree to our use of cookies.