Difference between revisions of "Template:CommandTemplate"
Template page
Views
Actions
Namespaces
Variants
Tools
m (fix) |
m (added border radius) |
||
Line 7: | Line 7: | ||
<pre>{{CommandTemplate|color=green|prompt=user $|command=cat ~/.profile}}</pre> | <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}} | ||
</noinclude><includeonly><div style="display:block;margin-bottom:5px;padding:5px;background-color:black;font-family:monospace;"><span style="color:{{{color}}};font-weight:bold;">{{{prompt}}} > </span><span style="color:white;background-color:black;">{{{command}}}</span></div></includeonly> | </noinclude><includeonly><div style="display:block;border-radius:5px;margin-bottom:5px;padding:5px;background-color:black;font-family:monospace;"><span style="color:{{{color}}};font-weight:bold;">{{{prompt}}} > </span><span style="color:white;background-color:black;">{{{command}}}</span></div></includeonly> |
Revision as of 06:15, 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.
Sample root command
{{CommandTemplate|color=red|prompt=root #|command=systemctl enable --now systemd-timesyncd}}
root # > systemctl enable --now systemd-timesyncd
Sample user command
{{CommandTemplate|color=green|prompt=user $|command=cat ~/.profile}}
user $ > cat ~/.profile