Editing Template:Is Discord ID/doc
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 4: | Line 4: | ||
<code>{{Is Discord ID|''input to test''|ifNo=''output if no (optional)''|ifYes=''output if yes (optional)''}}</code> | <code>{{Is Discord ID|''input to test''|ifNo=''output if no (optional)''|ifYes=''output if yes (optional)''}}</code> | ||
* <code>''input to test''</code> - Required. What will be checked to see if it is a valid Discord ID. A yes condition will be returned if this | * <code>''input to test''</code> - Required. What will be checked to see if it is a valid Discord ID. A yes condition will be returned if this argument is a string between 6 and 20 characters long that consists only of decimal digits. | ||
* <code>|ifNo=</code> - Optional. What the template will output if the input is not a valid Discord ID. If not specified, an empty string will be returned. | * <code>|ifNo=</code> - Optional. What the template will output if the input is not a valid Discord ID. If not specified, an empty string will be returned. | ||
* <code>|ifYes=</code> - Optional. What the template will output if the input is a valid Discord ID. If not specified or the value is <code>INPUT</code>, the <code>''input to test''</code> will be returned, stripped of any whitespace. | * <code>|ifYes=</code> - Optional. What the template will output if the input is a valid Discord ID. If not specified or the value is <code>INPUT</code>, the <code>''input to test''</code> will be returned, stripped of any whitespace. |