Template:Discord tag/doc
Outputs the Discord tag or username for a user. The link is pulled (via Cargo) from that user's infobox.
Note: The output will be exactly the same as the entire "Discord tag" field in the infobox. On some pages, this field includes extra formatting, notes, or multiple tags. This is because I haven't yet figured out how to extract only the actual tag.
Usage: {{Discord tag|name or Discord ID}}
Example: {{Discord tag|301164188070576128}}
(which is Cmonster's ID) outputs: (no tag found)
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.
TemplateData
Outputs the Discord tag or username for a user. The tag is pulled verbatim from the Discord tag field of that user's infobox.
Parameter | Description | Type | Status | |
---|---|---|---|---|
User | 1 | The name or Discord ID of the user. 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.
| String | required |
default | default | What to output if no tag could be found.
| String | optional |