Template:Server invite: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
No edit summary  | 
				No edit summary  | 
				||
| Line 1: | Line 1: | ||
{{#if: {{{text|}}}  | {{#if: {{{text|}}}  | ||
|{{query|table=discord_servers|get=CONCAT( "[", invite, " {{{text|}}}]"|from={{{1|null}}}|default={{{default|(no invite found)}}}|has_html=yes}}  | |{{query|table=discord_servers|get=CONCAT( "[", invite, " {{{text|}}}]" )|from={{{1|null}}}|default={{{default|(no invite found)}}}|has_html=yes}}  | ||
|{{query|table=discord_servers|get=invite|from={{{1|null}}}|default={{{default|(no invite found)}}}|has_html=yes}}  | |{{query|table=discord_servers|get=invite|from={{{1|null}}}|default={{{default|(no invite found)}}}|has_html=yes}}  | ||
}}<noinclude>{{documentation}}</noinclude>  | }}<noinclude>{{documentation}}</noinclude>  | ||
Latest revision as of 05:28, 17 July 2023
(no invite found)
Outputs the invite link for a Discord server. The link is pulled (via Cargo) from that server's infobox.
Usage: {{Server invite|server name or ID|text=link text (optional)}}
Example: {{Server invite|Dogelore}} outputs https://discord.gg/dogelore. {{Server invite|Dogelore|text=Dogelore Invite}} outputs Dogelore Invite.
The name or Discord ID used must match the one used in that server's infobox.
TemplateData
[edit source]Outputs the invite link for a Discord server. The link is pulled from that server's infobox.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Server | 1 | The name or Discord ID of the server. 
  | String | required | 
| Link text | text | The text that will be displayed by the link. If omitted, the full link URL will be displayed. 
  | String | suggested | 
| default | default | What to output if no invite link could be found. 
  | String | optional |