Difference between revisions of "Template:CommandTemplate"

m
no edit summary
m
m
Line 1: Line 1:
<noinclude>
<noinclude>
{{Template}}
{{Template}}
<pre>{{CommandTemplate|color=color|prompt=prompt|command=command|output=output}}</pre>
<pre>{{CommandTemplate|color=color|prompt=prompt|command=command}}</pre>
===Sample root command===
===Sample root command===
{{CommandTemplate|color=red|prompt=root #|command=systemctl enable --now systemd-timesyncd}}
{{CommandTemplate|color=red|prompt=root #|command=systemctl enable --now systemd-timesyncd}}


===Sample user command===
===Sample user command===
{{CommandTemplate|color=lawngreen|prompt=user $|command=cat ~/.profile|
{{CommandTemplate|color=lawngreen|prompt=user $|command=cat ~/.profile}}
output=<pre>1234
</noinclude><includeonly><div style="display:block;border-radius:5px;margin-bottom:5px;padding:5px;background-color:black;font-family:monospace;font-size:14px"><span style="color:{{{color}}};font-weight:bold;">{{{prompt}}} </span><span style="color:white;background-color:black;font-weight:bold;">{{{command}}}</span><br/></div></includeonly>
line2
line3</pre>}}
</noinclude><includeonly><div style="display:block;border-radius:5px;margin-bottom:5px;padding:5px;background-color:black;font-family:monospace;font-size:14px"><span style="color:{{{color}}};font-weight:bold;">{{{prompt}}} </span><span style="color:white;background-color:black;font-weight:bold;">{{{command}}}</span><br/><span style="color:white;background-color:black;font-weight:bold;">{{<pre style="color:white;background-color:black;border:none;padding:0;margin:0">{{{output}}}</pre>}}</span></div></includeonly>
Moderators, translator
455

edits