Difference between revisions of "Template:Command box"

From Worms Knowledge Base

Jump to: navigation, search
m (List of chat commands/template moved to Template:Command box: I believe this template could be used somewhere else...)
(update with new parameter: "prefix")
Line 5: Line 5:
  
 
  --HIDDEN SECTION AND ANCHOR--
 
  --HIDDEN SECTION AND ANCHOR--
--><h3 id="{{#ifeq:{{{1|}}}|AlliedGroup| colour | {{anchorencode:{{{1}}}}} }}" style="display: none;">{{#ifeq:{{{1|}}}|AlliedGroup| /red, /blue, /green, /yellow, /magenta, or /cyan | /{{{1}}} }}</h3><!--
+
--><h3 id="{{#ifeq:{{{1|}}}|AlliedGroup| colour | {{anchorencode:{{{1}}}}} }}" style="display: none;">{{#ifeq:{{{1|}}}|AlliedGroup| {{{prefix|/}}}red, {{{prefix|/}}}blue, {{{prefix|/}}}green, {{{prefix|/}}}yellow, {{{prefix|/}}}magenta, or {{{prefix|/}}}cyan | {{{prefix|/}}}{{{1}}} }}</h3><!--
  
 
--><div style="background-color: #CCDEFF; line-height: 1.5em;"><!--
 
--><div style="background-color: #CCDEFF; line-height: 1.5em;"><!--
Line 11: Line 11:
 
  --NAME AND PARAMS--
 
  --NAME AND PARAMS--
 
--><span style="font-size: 125%;">{{#ifeq:{{{1|}}}|AlliedGroup|
 
--><span style="font-size: 125%;">{{#ifeq:{{{1|}}}|AlliedGroup|
'''/red'''<!---->'','' '''/blue'''<!---->'','' '''/green'''<!---->'','' '''/yellow'''<!---->'','' '''/magenta'''<!---->'', or'' '''/cyan''' |
+
'''{{{prefix|/}}}red'''<!---->'','' <!--
'''/{{{1}}}'''}} {{#if:1|{{{2|}}}}}</span><!--
+
-->'''{{{prefix|/}}}blue'''<!---->'','' <!--
 +
-->'''{{{prefix|/}}}green'''<!---->'','' <!--
 +
-->'''{{{prefix|/}}}yellow'''<!---->'','' <!--
 +
-->'''{{{prefix|/}}}magenta'''<!---->'', or'' <!--
 +
-->'''{{{prefix|/}}}cyan''' |
 +
'''{{{prefix|/}}}{{{1}}}'''}} {{#if:1|{{{2|}}}}}</span><!--
  
 
  --FOOTNOTE of command--
 
  --FOOTNOTE of command--
Line 26: Line 31:
 
-->| ERROR: No command name specified.}}</includeonly></onlyinclude>
 
-->| ERROR: No command name specified.}}</includeonly></onlyinclude>
  
Usage:
+
----
 +
{{Command box|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}}}
  
{{:List of chat commands/template|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}}}
+
This is a simple box for command and descriptions.
  
<pre>{{:List of chat commands/template
+
===Usage===
 +
 
 +
<pre>{{Command box
 
|name|param
 
|name|param
 
|footnote
 
|footnote
 
|description text
 
|description text
 
}}</pre>
 
}}</pre>
 +
 +
'''Optional parameters'''
 +
*'''prefix''': defaults to <code>/</code>

Revision as of 12:45, 16 August 2010



/{{{1}}} {{{2}}}
{{{3}}}

{{{4}}}

This is a simple box for command and descriptions.

Usage

{{Command box
|name|param
|footnote
|description text
}}

Optional parameters

  • prefix: defaults to /
Personal tools