Difference between revisions of "Template:Cmd"

From
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
<noinclude>
 +
{{Template}}
 +
 +
'''Command executed by regular user.'''
 +
 +
==Usage==
 +
 +
{{ic|1=<nowiki>{{Cmd|command}}</nowiki>}}
 +
 +
==Example==
 +
 +
{{Cmd|pwd}}
 +
</noinclude>
 
<includeonly>{{#if: {{{1|}}}
 
<includeonly>{{#if: {{{1|}}}
 
|{{#if: {{{11|}}}
 
|{{#if: {{{11|}}}
 
  |{{Error|Cmd|11}}
 
  |{{Error|Cmd|11}}
  |{{GenericCmd|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|{{{9|}}}|{{{10|}}}|{{{11|}}}|prompt={{{prompt|user $}}}|color={{{color|#4E9A06}}}|output={{{output|}}}}}
+
  |{{GenericCmd|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|{{{9|}}}|{{{10|}}}|{{{11|}}}|prompt={{{prompt|user $}}}|color={{{color|#4E9A06}}}|output={{{output|}}}}}
 
  }}
 
  }}
 
|{{Error|Cmd|unnamed}}
 
|{{Error|Cmd|unnamed}}
}}</includeonly><noinclude>
+
}}</includeonly>
{{Documentation}}
 
</noinclude>
 

Latest revision as of 18:08, 3 March 2023

This page is a template. It contains no 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.

Command executed by regular user.

Usage

{{Cmd|command}}

Example

{{#if: pwd |{{#if:

|Template:Error
|

{{#if: pwd|

{{#if:|Too many parameters. Maximum is 10.| {{#if:user $|user $ pwd {{#if:|
user $
|}} {{#if:|
user $
|}} {{#if:|
user $
|}} {{#if:|
user $
|}} {{#if:|
user $
|}} {{#if:|
user $
|}} {{#if:|
user $
|}} {{#if:|
user $
|}} {{#if:|
user $
|}}

{{#if:|
|}}|pwd}}
}}

|Template:Error}}

}}

|Template:Error }}