Manjaro Difference between revisions of "Template:CommandTemplate"

Difference between revisions of "Template:CommandTemplate"

Template page
m (font-size)
m
Line 1: Line 1:
<noinclude>
<noinclude>
{{Template}}
{{Template}}
<pre>{{CommandTemplate|color=color|prompt=prompt|command=command|output=output}}</pre>
===Sample root command===
===Sample root command===
<pre>{{CommandTemplate|color=red|prompt=root #|command=systemctl enable --now systemd-timesyncd}}</pre>
{{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===
<pre>{{CommandTemplate|color=green|prompt=user $|command=cat ~/.profile}}</pre>
{{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:1em"><span style="color:{{{color}}};font-weight:bold;">{{{prompt}}} </span><span style="color:white;background-color:black;font-weight:bold;">{{{command}}}</span></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;">{{{output}}}</span></div></includeonly>

Revision as of 11:31, 2 October 2020

This page is a template. It contains no Manjaro Linux-related information, but should be used as part of other articles. For more information, read Help:Template.

Please do not experiment with this template; you could ruin all pages using this template. If you want to edit this template, copy the text to Template:Sandbox, edit and test it there, and copy it back when it works.

Feel free to voice your opinion regarding this template.

{{CommandTemplate|color=color|prompt=prompt|command=command|output=output}}

Sample root command

root # systemctl enable --now systemd-timesyncd
{{{output}}}

Sample user command

user $ cat ~/.profile
1234
line2
line3
Cookies help us deliver our services. By using our services, you agree to our use of cookies.