Template:Discord: Difference between revisions

From OniGalore
(Discord is now redirecting the .gg link to this URL)
(added default label and custom label)
 
Line 1: Line 1:
https://discord.com/invite/eqDMnkD<noinclude>
<includeonly>{{#ifeq:{{{nice|no}}}|yes|[https://discord.com/invite/eqDMnkD our Discord server]|{{#if:{{{label|}}}|[https://discord.com/invite/eqDMnkD {{{label}}}]|https://discord.com/invite/eqDMnkD}}}}</includeonly><noinclude>


This template provides a central location for an invite to Discord that won't expire. By transcluding it inside of external link syntax like <code><nowiki>[{{Discord}} our Discord server]</nowiki></code>, you have control over how to label the link.
This template provides a central location for an invite to Discord that won't expire. You can invoke the template in one of three ways:
 
<nowiki>{{Discord}}</nowiki><br>
=<br>
{{Discord}}
 
 
<nowiki>{{Discord|nice=yes}}</nowiki><br>
=<br>
{{Discord|nice=yes}}
 
 
<nowiki>{{Discord|label=custom text here}}</nowiki><br>
=<br>
{{Discord|label=custom text here}}


[[Category:Macro templates]]</noinclude>
[[Category:Macro templates]]</noinclude>

Latest revision as of 21:30, 12 November 2025


This template provides a central location for an invite to Discord that won't expire. You can invoke the template in one of three ways:

{{Discord}}
=
https://discord.com/invite/eqDMnkD


{{Discord|nice=yes}}
=
our Discord server


{{Discord|label=custom text here}}
=
custom text here