Editing Template:Discord tag/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:


Example: <code><nowiki>{{Discord tag|955229594842185758}}</nowiki></code> (which is [[Cmonster]]'s ID) outputs: {{Discord tag|955229594842185758}}
Example: <code><nowiki>{{Discord tag|955229594842185758}}</nowiki></code> (which is [[Cmonster]]'s ID) outputs: {{Discord tag|955229594842185758}}
It will automatically link to that user's wiki page. If you don't want it to do that, you can set <code>|link=no</code>. Example: <code><nowiki>{{Discord tag|955229594842185758|link=no}}</nowiki></code> which outputs: {{Discord tag|955229594842185758|link=no}}


Using an ID is recommended, as names are more likely to change. If using a name, it must match the name at the very top of the infobox. If using an ID, it must match the first ID in the Discord ID field of the infobox.
Using an ID is recommended, as names are more likely to change. If using a name, it must match the name at the very top of the infobox. If using an ID, it must match the first ID in the Discord ID field of the infobox.
Line 24: Line 22:
"type": "string",
"type": "string",
"default": "(no tag found)"
"default": "(no tag found)"
},
"link": {
"label": "Link?",
"description": "If set to yes (which is the default), the output will also be a link to the user's wiki page.",
"type": "boolean",
"default": "yes",
"suggested": true
}
}
},
},
"description": "Outputs the Discord tag or username for a user. The tag is pulled from the Discord tag field of that user's infobox.",
"description": "Outputs the Discord tag or username for a user. The tag is pulled from the Discord tag field of that user's infobox."
"paramOrder": [
"1",
"link",
"default"
]
}
}
</templatedata>
</templatedata>
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)