Difference between revisions of "Template:Command"

From Mibbit Wiki
Jump to: navigation, search
Line 1: Line 1:
<includeonly>'''/{{{name}}}''' ''{{{parameters}}}''{{#if: {{{disabled|}}}|&nbsp;<nowiki>[</nowiki><span style="color:red; font-weight:bold;">{{{disabled}}}</span><nowiki>]</nowiki>|}}{{#if: {{{desc|}}}|<br /><br />:{{{desc}}}|}}{{SMW Client|{{{client|mw}}}}}</includeonly><noinclude>{{Documentation}}</noinclude>
<includeonly>{{SMW Client|{{{client|mw}}}}}'''/{{{name}}}''' ''{{{parameters}}}''{{#if: {{{disabled|}}}|&nbsp;<nowiki>[</nowiki><span style="color:red; font-weight:bold;">{{{disabled}}}</span><nowiki>]</nowiki>|}}{{#if: {{{desc|}}}|:{{{desc}}}|}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 10:38, 10 February 2011

Template documentation (for the above template, sometimes hidden or invisible)

Name Description
name Name of command, without the beginning slash.
parameters Parameters of the command.
desc Description of the command. Optional. Only one line if it doesn't exist, good for Category:Commands
disabled Sometimes commands are disabled for security reasons. If so, this parameter should be used.
client Which clients are allowed to use this command. "m", "w", or "mw"


Normal command

|desc=Outputs <text> to channel without formatting.

Shows as:

{{#set:Client=Widget}}{{#set:Type=}}/says <text>

Outputs <text> to channel without formatting.

Disabled, One-Liner

|parameters=<user> <password>

Shows as:

{{#set:Client=Main}} {{#set:Client=Widget}}{{#set:Type=}}/evil <user> <password> [true]

Visit Template:Command/doc to edit this text! (How does this work?)