Template:Server invite
(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)}}
{{Server invite|Dogelore}}
outputs https://discord.gg/coal. {{Server invite|Dogelore|text=Dogelore Invite}}
outputs Function: CargoSQLQuery::run Query: SELECT `cargo__discord_servers`.`_pageID` AS `cargo_backlink_page_id_discord_servers`,CONCAT( "[", invite, " Dogelore Invite]"=get FROM `cargo__discord_servers` WHERE `cargo__discord_servers`.`name`="Dogelore" ORDER BY `cargo__discord_servers`.`_pageID`,CONCAT( "[", invite, " Dogelore Invite]"=get LIMIT 100
The name or Discord ID used must match the one used in that server's infobox.
TemplateData
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 |