Difference between revisions of "Template:CommandOutputTemplate"

From Manjaro
Jump to navigation Jump to search
m
m
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
<pre>{{CommandOutputTemplate|color=yellow|prompt=prompt|command=command|result=result}}</pre>
+
<nowiki>{{CommandOutputTemplate|color=yellow|prompt=prompt|command=command|result=result}}</nowiki>
 
{{CommandOutputTemplate|color=yellow|prompt=prompt|command=command|result=<pre style="margin-left:0.25em;margin-top:0;padding-top:0;margin-bottom:0;border:none;color:white;background-color:black;font-weight:bold;">result line1
 
{{CommandOutputTemplate|color=yellow|prompt=prompt|command=command|result=<pre style="margin-left:0.25em;margin-top:0;padding-top:0;margin-bottom:0;border:none;color:white;background-color:black;font-weight:bold;">result line1
 
result line2</pre>}}
 
result line2</pre>}}
 
</noinclude><includeonly><div style="display:block;border-radius:5px;padding-top:3px;background-color:black;font-family:monospace;font-size:14px">
 
</noinclude><includeonly><div style="display:block;border-radius:5px;padding-top:3px;background-color:black;font-family:monospace;font-size:14px">
<span style="color:{{{color}}};margin-left:1em;margin-top:-2px;margin-bottom:0;padding:0;font-weight:bold;">{{{prompt}}}</span>&nbsp;<span style="color:white;margin-top:0;margin-bottom:0;padding:0;font-weight:bold;">{{{command}}}</span><br/>
+
<span style="color:{{{color}}};margin-left:1em;margin-top:0;margin-bottom:0;padding:0;font-weight:bold;">{{{prompt}}}</span>&nbsp;<span style="color:white;margin-top:0;margin-bottom:0;padding:0;font-weight:bold;">{{{command}}}</span><br/>
{{{result}}}</div></includeonly>
+
{{<pre> {{{result}}}}}</pre></div></includeonly>

Revision as of 19:18, 16 December 2020

{{CommandOutputTemplate|color=yellow|prompt=prompt|command=command|result=result}}

prompt command

{{
 {{{result}}}}}