# /substitute

## Syntax

**/substitute list**\
\&#xNAN;**/substitute \[** ***orig*** **delete|*****new*** **]**

## Description

Allows you to create custom midline substitutions. They can be called from any alias or commandline by using the percent sign (%).

* Substitutions do not currently work in macros.
* You don't use the percent signs when creating the substitutions or editing your config file.
* You can use MQ's substitutions without spaces around them (unlike EQ's!).
* You can use EQ's wildcards (ie: %t) within your substitutions, however, you have to leave spaces around them (yes,

  they suck).
* You cannot CURRENTLY replace EQ wildcards with MQ substitutions (eg. you can't make a replacement for %m).

## Example

```
/substitute mom Mother
/substitute omg Oh my god!
/substitute k "%omg, kill %t before I tell your %mom"
```

If you typed "/say %k", it would produce:

```
Oh my god!, kill targetname before I tell your Mother
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://macroquest.gitbook.io/macroquest/commands/slash-commands/substitute.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
