Difference between revisions of "Template:GenericCmd"

From
Jump to: navigation, search
 
Line 14: Line 14:
 
<includeonly>
 
<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: {{{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:{{{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:{{{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:{{{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}}}|}}

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|

{{#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}}