Template:RootCmd/Doc: Difference between revisions

From Peters wiki
Jump to navigation Jump to search
Created page with "This template is for commands which must be run by the root user. For commands which can be entered by any user, use Template:Command. Command output should not be includ..."
 
mNo edit summary
 
Line 4: Line 4:


Example:
Example:
<nowiki> {{Root|emerge --ask -uDNvt @world}} </nowiki>
<nowiki> {{RootCmd|emerge --ask -uDNvt @world}} </nowiki>


Will produce:
Will produce:
{{Root|emerge --ask -uDNvt @world}}
{{RootCmd|emerge --ask -uDNvt @world}}





Latest revision as of 18:53, 3 January 2012

This template is for commands which must be run by the root user. For commands which can be entered by any user, use Template:Command.

Command output should not be included within this template. Use either Template:Codeline (for in-line output usage) or <pre> </pre> (for blocks of output).

Example: {{RootCmd|emerge --ask -uDNvt @world}}

Will produce:

root # emerge --ask -uDNvt @world


If your template comes out with {{{1}}} instead of the parameter value, see the FAQs page.

Note: This template is restricted in width to avoid issues with TOC templates.