Difference between revisions of "Template:Command box"

From Worms Knowledge Base

Jump to: navigation, search
(template-ize)
 
m (fix text selection)
 
(7 intermediate revisions by 2 users not shown)
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="height: 0px; width: 0px; overflow:hidden; position: absolute; visibility: hidden;">{{#ifeq:{{{1|}}}|AlliedGroup| {{{prefix|/}}}red, {{{prefix|/}}}blue, {{{prefix|/}}}green, {{{prefix|/}}}yellow, {{{prefix|/}}}magenta, or {{{prefix|/}}}cyan | {{{prefix|/}}}{{{1}}} }}</h3><!--
  
--><div style="background-color: #CCDEFF;"><p style="font-size: 125%;"><!--
+
--><div style="background-color: #CCDEFF; line-height: 1.5em;"><!--
  
 
  --NAME AND PARAMS--
 
  --NAME AND PARAMS--
-->{{#ifeq:{{{1|}}}|AlliedGroup|
+
--><span style="font-size: 125%;">{{#ifeq:{{{1|}}}|AlliedGroup|
'''/red'''<!---->'','' '''/blue'''<!---->'','' '''/green'''<!---->'','' '''/yellow'''<!---->'','' '''/magenta'''<!---->'', or'' '''/cyan''' |
+
'''{{{prefix|/}}}red'''<!---->'','' <!--
'''/{{{1}}}'''}} {{{2|}}}<!--
+
-->'''{{{prefix|/}}}blue'''<!---->'','' <!--
 +
-->'''{{{prefix|/}}}green'''<!---->'','' <!--
 +
-->'''{{{prefix|/}}}yellow'''<!---->'','' <!--
 +
-->'''{{{prefix|/}}}magenta'''<!---->'', or'' <!--
 +
-->'''{{{prefix|/}}}cyan''' |
 +
'''{{{prefix|/}}}{{{1}}}'''}} {{#if:1|{{{2|}}}}}</span><!--
  
 
  --FOOTNOTE of command--
 
  --FOOTNOTE of command--
 
-->{{#if:{{{3|}}}|<br/><small>{{{3}}}</small>}}<!--
 
-->{{#if:{{{3|}}}|<br/><small>{{{3}}}</small>}}<!--
  
--></p></div><!--
+
--></div><!--
  
 
  --DESCRIPTION TEXT--
 
  --DESCRIPTION TEXT--
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>

Latest revision as of 13:10, 23 August 2018



/{{{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