Template:Discord: Difference between revisions
Jump to navigation
Jump to search
KiwifruitDev (talk | contribs) (Add user link support) |
KiwifruitDev (talk | contribs) (Add support for new link parameter) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
<includeonly> | <includeonly> | ||
<onlyinclude><span style="user-select:none">{{#switch:{{{icon}}}|#default|show=[[File:Icon-Discord.png|16px|link={{#if:{{{user|}}}|https://discord.com/users/{{{user|}}}|{{#if:{{{1|}}}|https://discord.gg/{{{1|}}}|https://discord.com/}}}}|alt=Discord logo]] |no|hide=}}</span>{{#if:{{{user|}}} | <onlyinclude><span style="user-select:none">{{#switch:{{{icon}}}|#default|show=[[File:Icon-Discord.png|16px|link={{#switch:{{{uselink}}}|#default|show|true={{#if:{{{user|}}}|https://discord.com/users/{{{user|}}}|{{#if:{{{1|}}}|https://discord.gg/{{{1|}}}|https://discord.com/}}}}|no|hide|false=}}|alt=Discord logo]] |no|hide=}}</span>{{#switch:{{{uselink}}}|#default|show|true={{#if:{{{user|}}} | ||
|{{#if:{{{1|}}} | |{{#if:{{{1|}}} | ||
|<span class="plainlinks">[https://discord.com/users/{{{user|}}} | |<span class="plainlinks">[https://discord.com/users/{{{user|}}} {{{1}}}]</span> | ||
|<span class="plainlinks">[https://discord.com/users/{{{user|}}} Discord]</span> | |<span class="plainlinks">[https://discord.com/users/{{{user|}}} Discord]</span> | ||
}}|{{#if:{{{1|}}} | }}|{{#if:{{{1|}}} | ||
|<span class="plainlinks">[https://discord.gg/{{{1}}} {{{2|{{{1}}}}}}]</span> | |<span class="plainlinks">[https://discord.gg/{{{1}}} {{{2|{{{1}}}}}}]</span> | ||
|<span class="plainlinks">[https://discord.com/ Discord]</span> | |<span class="plainlinks">[https://discord.com/ Discord]</span> | ||
}}}}|no|hide|false={{#if:{{{1|}}} | |||
|<span>{{{1}}}</span> | |||
|<span>Discord</span> | |||
}}}}</onlyinclude> | }}}}</onlyinclude> | ||
<!-- Add categories to the /doc subpage, not here --> | <!-- Add categories to the /doc subpage, not here --> | ||
</includeonly> | </includeonly> | ||
Latest revision as of 01:07, 4 December 2025
The above documentation is transcluded from Template:Discord/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.