Difference between revisions of "Template:Command box"
From Worms Knowledge Base
Explorer09 (Talk | contribs) m |
m (fix text selection) |
||
(4 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=" | + | --><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;"><!-- | + | --><div style="background-color: #CCDEFF; line-height: 1.5em;"><!-- |
--NAME AND PARAMS-- | --NAME AND PARAMS-- | ||
− | --><span style="font-size: 125% | + | --><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> | ||
− | + | ---- | |
+ | {{Command box|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}}} | ||
− | + | This is a simple box for command and descriptions. | |
− | <pre>{{ | + | ===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}}}
/{{{1}}} {{{2}}}
{{{3}}}
{{{3}}}
{{{4}}}
This is a simple box for command and descriptions.
Usage
{{Command box |name|param |footnote |description text }}
Optional parameters
- prefix: defaults to
/