Difference between revisions of "Template:CommandOutputTemplate"

From Manjaro
Jump to navigation Jump to search
m
m (experimenting)
 
(45 intermediate revisions by the same user not shown)
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=result line1
+
{{CommandOutputTemplate|color=yellow|prompt=prompt|command=command|result=result}}
result line2}}
+
</noinclude><includeonly><div style="display:block;border-radius:5px;padding-top:3px;padding-bottom:3px;background-color:black;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:white;margin-top:0;margin-bottom:0;padding:0;font-weight:bold;">{{{command}}}</span><br/>
</noinclude><includeonly><div style="display:block;border-radius:5px;margin-bottom:5px;background-color:black;font-family:monospace;font-size:14px"><span style="margin-left:5px;color:{{{color}}};font-weight:bold;">{{{prompt}}}</span>&nbsp;<span style="color:white;background-color:black;font-weight:bold;">{{{command}}}</span><nowiki><pre style="border:none;color:white;background-color:black;font-weight:bold;">{{{result}}}</pre></nowiki></div></includeonly>
+
<div style="color:white;margin-left:1em;margin-right:1em;margin-top:0;">{{{result}}}</div></div>
 +
</includeonly>

Latest revision as of 17:12, 15 March 2021

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

prompt command
result