Jump to content

Template:Discord: Difference between revisions

added default label and custom label
(Created page with "https://discord.gg/eqDMnkD<noinclude> This template provides a central location for an invite to Discord that won't expire. By transcluding it inside of external link syntax...")
 
(added default label and custom label)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
https://discord.gg/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>