Editing
Template:Is Discord ID/doc
Jump to navigation
Jump to search
β οΈ
Warning:
You are not logged in.
Your IP address will be publicly visible
if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username instead of your IP, along with other benefits.
Anti-spam check. Do
not
fill this in!
This template tests whether a given input is a valid [https://discord.com/developers/docs/reference#snowflakes Discord Snowflake] (aka ID). This template is intended for use to process arguments in other templates; there isn't really a reason to use it directly in articles. == Usage and behavior == <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 parameter is a string consisting solely of 8-20 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>|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. For example, <code><nowiki>{{Is Discord ID|501310750074077215}}</nowiki></code> will return {{Is Discord ID|501310750074077215}}, while <code><nowiki>{{Is Discord ID|obama|ifNo=false}}</nowiki></code> will return {{Is Discord ID|obama|ifNo=false}}. == TemplateData == <templatedata> { "params": { "1": { "label": "Input", "description": "The string to test whether it's a valid ID.", "example": "501310750074077215", "type": "string", "required": true }, "ifNo": { "description": "What the template would output if it's not a valid Discord ID.", "default": "(empty string)", "type": "string" }, "ifYes": { "description": "What the template would output if it is a valid Discord ID.", "default": "(the ID)", "type": "string" } }, "description": "This template tests whether a given input is a valid Discord Snowflake (aka ID). This template is intended for use to process arguments in other templates; there isn't really a reason to use it directly in articles." } </templatedata>
Summary:
Please note that all contributions to Irony Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
Irony Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Template:Is Discord ID
(
edit
)
Navigation menu
Personal tools
English
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Purge cache
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information
Page values