Difference between revisions of "Template:GenericCmd"

From
Jump to: navigation, search
Line 3: Line 3:
  
 
'''Command executed by regular user.'''
 
'''Command executed by regular user.'''
</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>|}}
+
 
 +
==Usage==
 +
 
 +
{{ic|1=<nowiki>{{GenericCmd|command}}</nowiki>}}
 +
 
 +
==Example==
 +
 
 +
{{GenericCmd|pwd}}</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>
 
|{{{1}}}}}</tt>}}</div>|{{Error|GenericCmd|unnamed}}}}</includeonly>

Revision as of 16:21, 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

{{GenericCmd|command}}

Example

{{#if: pwd|

{{#if:|Too many parameters. Maximum is 10.| {{#if:|{{{prompt}}} pwd {{#if:|
{{{prompt}}}
{{{2}}}|}} {{#if:|
{{{prompt}}}
{{{3}}}|}} {{#if:|
{{{prompt}}}
{{{4}}}|}} {{#if:|
{{{prompt}}}
{{{5}}}|}} {{#if:|
{{{prompt}}}
{{{6}}}|}} {{#if:|
{{{prompt}}}
{{{7}}}|}} {{#if:|
{{{prompt}}}
{{{8}}}|}} {{#if:|
{{{prompt}}}
{{{9}}}|}} {{#if:|
{{{prompt}}}
{{{10}}}|}}

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

|Template:Error}}