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 10:04, 19 February 2023 by imported>Magic
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]

Template:Documentation header Template:Lua Template: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.

de:Vorlage:Befehl es:Plantilla:Comando ja:テンプレート:Command ko:틀:Command nl:Sjabloon:Opdracht pt:Predefinição:Comando ru:Шаблон:Команда th:แม่แบบ:Command

zh:template:Command
The above text is transcluded from Template:MC/Command/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:MC/Command/doc. (View all subpages of this page.)