Difference between revisions of "Template:GenericCmd"
| (6 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | < | + | <noinclude> |
| − | + | {{Template}} | |
| − | + | ||
| − | + | '''Command executed by regular user.''' | |
| − | + | ||
| + | ==Usage== | ||
| + | |||
| + | {{ic|1=<nowiki>{{GenericCmd|command}}</nowiki>}} | ||
| + | |||
| + | ==Example== | ||
| + | |||
| + | {{GenericCmd|pwd}} | ||
</noinclude> | </noinclude> | ||
| + | <includeonly> | ||
| + | {{#if: {{{1|}}}|<div style="border: 1px solid #ccc; background-color: #f9f9f9; padding: .3em; margin-top: .4em; margin-bottom: .4em; overflow: hidden;" class="gw-cmdbox"> | ||
| + | {{#if:{{{11|}}}|'''Too many parameters. Maximum is 10.'''|<tt> | ||
| + | {{#if:{{{prompt|}}}|<span style{{=}}"color: {{{color|black}}}; font-weight: bold;">{{{prompt}}}</span> </tt><span style="width: 0; height: 0; display: inline-block; overflow: hidden;"><span style="display: block;"></span></span><tt>{{{1}}} | ||
| + | {{#if:{{{2|}}}|<br /><span style{{=}}"color: {{{color|black}}}; font-weight: bold;">{{{prompt}}}</span> </tt><span style="width: 0; height: 0; display: inline-block; overflow: hidden;"><span style="display: block;"></span></span><tt>{{{2}}}|}} | ||
| + | {{#if:{{{3|}}}|<br /><span style{{=}}"color: {{{color|black}}}; font-weight: bold;">{{{prompt}}}</span> </tt><span style="width: 0; height: 0; display: inline-block; overflow: hidden;"><span style="display: block;"></span></span><tt>{{{3}}}|}} | ||
| + | {{#if:{{{4|}}}|<br /><span style{{=}}"color: {{{color|black}}}; font-weight: bold;">{{{prompt}}}</span> </tt><span style="width: 0; height: 0; display: inline-block; overflow: hidden;"><span style="display: block;"></span></span><tt>{{{4}}}|}} | ||
| + | {{#if:{{{5|}}}|<br /><span style{{=}}"color: {{{color|black}}}; font-weight: bold;">{{{prompt}}}</span> </tt><span style="width: 0; height: 0; display: inline-block; overflow: hidden;"><span style="display: block;"></span></span><tt>{{{5}}}|}} | ||
| + | {{#if:{{{6|}}}|<br /><span style{{=}}"color: {{{color|black}}}; font-weight: bold;">{{{prompt}}}</span> </tt><span style="width: 0; height: 0; display: inline-block; overflow: hidden;"><span style="display: block;"></span></span><tt>{{{6}}}|}} | ||
| + | {{#if:{{{7|}}}|<br /><span style{{=}}"color: {{{color|black}}}; font-weight: bold;">{{{prompt}}}</span> </tt><span style="width: 0; height: 0; display: inline-block; overflow: hidden;"><span style="display: block;"></span></span><tt>{{{7}}}|}} | ||
| + | {{#if:{{{8|}}}|<br /><span style{{=}}"color: {{{color|black}}}; font-weight: bold;">{{{prompt}}}</span> </tt><span style="width: 0; height: 0; display: inline-block; overflow: hidden;"><span style="display: block;"></span></span><tt>{{{8}}}|}} | ||
| + | {{#if:{{{9|}}}|<br /><span style{{=}}"color: {{{color|black}}}; font-weight: bold;">{{{prompt}}}</span> </tt><span style="width: 0; height: 0; display: inline-block; overflow: hidden;"><span style="display: block;"></span></span><tt>{{{9}}}|}} | ||
| + | {{#if:{{{10|}}}|<br /><span style{{=}}"color: {{{color|black}}}; font-weight: bold;">{{{prompt}}}</span> </tt><span style="width: 0; height: 0; display: inline-block; overflow: hidden;"><span style="display: block;"></span></span><tt>{{{10}}}|}} | ||
| + | {{#if:{{{output|}}}|<hr /><span style="color:#404040">{{{output}}}</span>|}}|{{{1}}}}}</tt>}}</div>|{{Error|GenericCmd|unnamed}}}} | ||
| + | </includeonly> | ||
Latest revision as of 00:21, 7 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
{{GenericCmd|command}}
Example
{{#if: pwd|