Template:Discord/doc: Difference between revisions
Jump to navigation
Jump to search
KiwifruitDev (talk | contribs) (Add user link documentation) |
KiwifruitDev (talk | contribs) (Add warning for the user profile links, update Discord ID and username to be the SteamDB bot, and add documentation for the new uselink parameter) |
||
| Line 22: | Line 22: | ||
| style="text-align:center" | {{Code| {{param|2}} }} | | style="text-align:center" | {{Code| {{param|2}} }} | ||
| Alternative name of the link.<br>Use {{Code| {{param}} }} instead if {{Code| {{param|user}} }} is specified. | | Alternative name of the link.<br>Use {{Code| {{param}} }} instead if {{Code| {{param|user}} }} is specified. | ||
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{discord|halflife| | | style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{discord|halflife|Half-Life Discord}}</nowiki>}} | ||
| style="padding:.2em .5em" | {{Capsule| {{discord|halflife| | | style="padding:.2em .5em" | {{Capsule| {{discord|halflife|Half-Life Discord}} }} | ||
|- | |- | ||
| style="text-align:center" | {{Code| {{param|user}} }} | | style="text-align:center" | {{Code| {{param|user}} }} | ||
| Link to a Discord user by ID.<br>Uses {{Code| {{param}} }} as alt text. | | Link to a Discord user by ID.<br>Uses {{Code| {{param}} }} as alt text.{{warning|Users must share a mutual server or friend in order to view your profile.}} | ||
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{discord|user= | | style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{discord|user=780077279857868833|@SteamDB#4745}}</nowiki>}} | ||
| style="padding:.2em .5em" | {{Capsule| {{discord|@ | | style="padding:.2em .5em" | {{Capsule| {{discord|@SteamDB#4745|user=780077279857868833}} }} | ||
|- | |- | ||
| style="text-align:center" | {{Code| {{param|icon}} }} | | style="text-align:center" | {{Code| {{param|icon}} }} | ||
| Line 34: | Line 34: | ||
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{discord|icon=hide}}</nowiki>}} | | style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{discord|icon=hide}}</nowiki>}} | ||
| style="padding:.2em .5em" | {{Capsule| {{discord|icon=hide}} }} | | style="padding:.2em .5em" | {{Capsule| {{discord|icon=hide}} }} | ||
|- | |||
| style="text-align:center" | {{Code| {{param|uselink}} }} | |||
| Add/remove Discord URL for the text.<br>Values: {{code|true}} (default), {{code|false}} | |||
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{discord|uselink=false|@SteamDB#4745}}</nowiki>}} | |||
| style="padding:.2em .5em" | {{Capsule| {{discord|uselink=false|@SteamDB#4745}} }} | |||
|- | |- | ||
|} | |} | ||
Latest revision as of 01:17, 4 December 2025
This is a documentation subpage for Template:Discord.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Link to
Discord server invite, user, or its official website.
Parameters and Examples
| Parameter | Description | Example | Preview |
|---|---|---|---|
| No Parameters | Creates invite link to a Discord server. Without the parameters below will instead leads to Discord official website. | ||
{{{1}}}
|
Set the server link. Functions as alt text if {{{user}}} is specified.
|
||
{{{2}}}
|
Alternative name of the link. Use {{{1}}} instead if {{{user}}} is specified.
|
||
{{{user}}}
|
Link to a Discord user by ID. Uses {{{1}}} as alt text. |
||
{{{icon}}}
|
Hide/shows the icon. Values: show (default), hide
|
||
{{{uselink}}}
|
Add/remove Discord URL for the text. Values: true (default), false
|
See also
| Template | Preview |
|---|---|
| {{wikipedia}} {{wiki}} {{w}} |
|
| {{cow}} | |
| {{l4dwiki}} | |
| {{pcgw}} | |
| {{portalwiki}} | |
| {{sboxwiki}} | |
| {{tfwiki}} | |
| {{twhl}} | |
| {{quakewiki}} | |
| {{cswiki}} |
| Template | Preview |
|---|---|
| {{bluesky}} | |
| {{discord}} | |
| {{reddit}} | |
| {{steam community}} | |
| {{twitch}} | |
| {{twitter}} {{x}} |
|
| {{youtube}} |
| Template | Preview |
|---|---|
| {{steam store}} | |
| {{epic}} {{egs}} |
|
| {{gplay}} | |
| {{gog}} | |
| {{ms store}} (PC, |
|
| {{xbox store}} ( |
|
| {{nintendo store}} |
| Template | Preview |
|---|---|
| {{steam}} | Steam Protocol |
| {{email}} {{e}} |
gaben@valvesoftware.com |
| {{github}} | |
| {{gamebanana}} | |
| {{moddb}} | |
| {{rtsl}} | |
| {{protondb}} | |
| {{steamdb}} {{sdb}} |
|
| {{gdrive}} {{gd}} |
|
| {{fragnet}} {{fn}} |