Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 22:46, 16 June 2025 by Mnooseman (talk | contribs) (Created page with "{{Documentation header}} {{lua}} {{shortcut|cmd}} This template is used to generate auto-formatted commands. == Arguments == * To remove the forward slash, add <code>|/=0</code> or <code>|slash=0</code> to the template. * To change the command name's link, add <code>|link=<link></code> to the template. * To remove the command name's link, add <code>|link=none</code> to the template. * To add HTML in the command, add <code>|escape=0</code> to the template. It's then yo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is the documentation page. It should be transcluded into Template:Command. See Template:Documentation for more information.
This template uses Module:Command, a script written in Lua.
Shortcut

This template is used to generate auto-formatted commands.

Arguments

  • To remove the forward slash, add |/=0 or |slash=0 to the template.
  • To change the command name's link, add |link=<link> to the template.
  • To remove the command name's link, add |link=none to the template.
  • To add HTML in the command, add |escape=0 to the template. It's then your responsibility to <nowiki> anything that looks like HTML but isn't.
  • If a command is long and may go off the edge of the screen, add |long=1 to the template. This allows the code to wrap as well as displaying it on its own line.

Notes

  • Commands containing equals signs or vertical pipes must be escaped to display correctly. For equals, if using a single argument place 1= at the start of the command, otherwise replace each equals sign with {{=}}. For vertical pipes replace each one with {{!}}.
  • Commands containing braces must be careful not to end with a brace or have two or more next to each other. In a case such as: {{cmd|data {some:"data"}}}, a space can simply be placed at the end of the command: {{cmd|data {some:"data"} }}, or place <nowiki> tags around the problem area.