Changes

Template:GenericCmd

625 bytes added, 12:56, 16 July 2012
Extend to max. 10 lines. Print error message with 11 lines.
<div style="border: 1px solid #8981AA; background-color: #F6F6F6; padding: .3em; margin-top: .4em; margin-bottom: .4em;" class="gw-cmdbox">{{#if: {{{11|}}} | '''Too many parameters. Maximum is 10.''' |<code>{{#if:{{{prompt|}}}|<span style{{=}}"color: {{{color|black}}}; font-weight: bold;"> {{{prompt}}}</span> {{{1}}}{{#if:{{{2|}}}|<br /><span style{{=}}"color: {{{color|black}}}; font-weight: bold;"> {{{prompt}}}</span> {{{2}}}|}}{{#if:{{{3|}}}|<br /><span style{{=}}"color: {{{color|black}}}; font-weight: bold;"> {{{prompt}}}</span> {{{3}}}|}}{{#if:{{{4|}}}|<br /><span style{{=}}"color: {{{color|black}}}; font-weight: bold;"> {{{prompt}}}</span> {{{4}}}|}}{{#if:{{{5|}}}|<br /><span style{{=}}"color: {{{color|black}}}; font-weight: bold;"> {{{prompt}}}</span> {{{5}}}|}}{{#if:{{{6|}}}|<br /code><span style{{=}}"color: {{{color|black}}}; font-weight: bold;"> {{{prompt}}}</span> {{{6}}}|}}{{#if:{{{output7|}}}|<hr br /><span style{{=}}"color:{{{color|black}}}; font-weight: bold;"> {{{prompt}}}</span> {{{7}}}|}}{{#404040if:{{{8|}}}|<br /><span style{{=}}"color: {{{color|black}}}; font-weight: bold;">{{{prompt}}}<tt/span>{{{8}}}|}}{{#if:{{{9|}}}|<br /><span style{{=}}"color: {{{color|black}}}; font-weight: bold;"> {{{prompt}}}</span> {{{9}}}|}}{{#if:{{{10|}}}|<br /><span style{{=}}"color: {{{color|black}}}; font-weight: bold;"> {{{prompt}}}</span> {{{10}}}|}}{{#if:{{{output|}}}|<hr /tt><span style="color:#404040">{{{output}}}</span>|}}|{{{1}}}}}</code>}}</div><noinclude>
{{Documentation}}
</noinclude>
Anonymous user
Astaecker